Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 691304
Collapse All | Expand All

(-)a/src/DefaultTimeline.vala (-1 / +1 lines)
Lines 47-53 Link Here
47
  private double last_value = 0.0;
47
  private double last_value = 0.0;
48
48
49
49
50
  public DefaultTimeline (int id) {
50
  protected DefaultTimeline (int id) {
51
    this.id = id;
51
    this.id = id;
52
    this.hscrollbar_policy = Gtk.PolicyType.NEVER;
52
    this.hscrollbar_policy = Gtk.PolicyType.NEVER;
53
    this.scrolled_to_start.connect (handle_scrolled_to_start);
53
    this.scrolled_to_start.connect (handle_scrolled_to_start);
(-)a/src/MainWindow.vala (-1 / +1 lines)
Lines 435-441 Link Here
435
    if (account == null)
435
    if (account == null)
436
      return Gdk.EVENT_PROPAGATE;
436
      return Gdk.EVENT_PROPAGATE;
437
437
438
    unowned GLib.List<weak Gtk.Window> ws = this.application.get_windows ();
438
    unowned GLib.List<Gtk.Window> ws = this.application.get_windows ();
439
    debug("Windows: %u", ws.length ());
439
    debug("Windows: %u", ws.length ());
440
440
441
    string[] startup_accounts = Settings.get ().get_strv ("startup-accounts");
441
    string[] startup_accounts = Settings.get ().get_strv ("startup-accounts");
(-)a/src/Corebird.vala (-3 / +3 lines)
Lines 396-402 Link Here
396
   */
396
   */
397
  public bool is_window_open_for_screen_name (string screen_name,
397
  public bool is_window_open_for_screen_name (string screen_name,
398
                                              out MainWindow? window = null) {
398
                                              out MainWindow? window = null) {
399
    unowned GLib.List<weak Gtk.Window> windows = this.get_windows ();
399
    unowned GLib.List<Gtk.Window> windows = this.get_windows ();
400
    foreach (Gtk.Window win in windows) {
400
    foreach (Gtk.Window win in windows) {
401
      if (win is MainWindow) {
401
      if (win is MainWindow) {
402
        if (((MainWindow)win).account.screen_name == screen_name) {
402
        if (((MainWindow)win).account.screen_name == screen_name) {
Lines 411-417 Link Here
411
411
412
  public bool is_window_open_for_user_id (int64 user_id,
412
  public bool is_window_open_for_user_id (int64 user_id,
413
                                          out MainWindow? window = null) {
413
                                          out MainWindow? window = null) {
414
    unowned GLib.List<weak Gtk.Window> windows = this.get_windows ();
414
    unowned GLib.List<Gtk.Window> windows = this.get_windows ();
415
    foreach (Gtk.Window win in windows) {
415
    foreach (Gtk.Window win in windows) {
416
      if (win is MainWindow) {
416
      if (win is MainWindow) {
417
        if (((MainWindow)win).account.id == user_id) {
417
        if (((MainWindow)win).account.id == user_id) {
Lines 428-434 Link Here
428
   * Quits the application, saving all open windows and their geometries.
428
   * Quits the application, saving all open windows and their geometries.
429
   */
429
   */
430
  private void quit_application () {
430
  private void quit_application () {
431
    unowned GLib.List<weak Gtk.Window> windows = this.get_windows ();
431
    unowned GLib.List<Gtk.Window> windows = this.get_windows ();
432
    string[] startup_accounts = Settings.get ().get_strv ("startup-accounts");
432
    string[] startup_accounts = Settings.get ().get_strv ("startup-accounts");
433
    if (startup_accounts.length == 1 && startup_accounts[0] == "")
433
    if (startup_accounts.length == 1 && startup_accounts[0] == "")
434
      startup_accounts.resize (0);
434
      startup_accounts.resize (0);

Return to bug 691304