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); |