aboutsummaryrefslogtreecommitdiff
path: root/src/ui/accounts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/accounts.c')
-rw-r--r--src/ui/accounts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/accounts.c b/src/ui/accounts.c
index 16cd621..8acc438 100644
--- a/src/ui/accounts.c
+++ b/src/ui/accounts.c
@@ -51,6 +51,7 @@ _show_messenger_main_window(gpointer user_data)
51{ 51{
52 MESSENGER_Application *app = (MESSENGER_Application*) user_data; 52 MESSENGER_Application *app = (MESSENGER_Application*) user_data;
53 53
54 // Refresh the account list
54 ui_messenger_refresh(app, &(app->ui.messenger)); 55 ui_messenger_refresh(app, &(app->ui.messenger));
55 56
56 gtk_widget_show(GTK_WIDGET(app->ui.messenger.main_window)); 57 gtk_widget_show(GTK_WIDGET(app->ui.messenger.main_window));
@@ -64,6 +65,7 @@ handle_accounts_listbox_row_activated(UNUSED GtkListBox* listbox,
64{ 65{
65 MESSENGER_Application *app = (MESSENGER_Application*) user_data; 66 MESSENGER_Application *app = (MESSENGER_Application*) user_data;
66 67
68 // Drop activations of rows which do not contain accounts
67 if (!gtk_list_box_row_get_selectable(row)) 69 if (!gtk_list_box_row_get_selectable(row))
68 { 70 {
69 app->ui.accounts.show_queued = g_idle_add( 71 app->ui.accounts.show_queued = g_idle_add(
@@ -80,6 +82,7 @@ handle_accounts_listbox_row_activated(UNUSED GtkListBox* listbox,
80 if (!account) 82 if (!account)
81 goto close_dialog; 83 goto close_dialog;
82 84
85 // Handle the GUI swap asyncronously
83 if (!gtk_widget_is_visible(GTK_WIDGET(app->ui.messenger.main_window))) 86 if (!gtk_widget_is_visible(GTK_WIDGET(app->ui.messenger.main_window)))
84 app->ui.accounts.show_queued = g_idle_add( 87 app->ui.accounts.show_queued = g_idle_add(
85 G_SOURCE_FUNC(_show_messenger_main_window), app 88 G_SOURCE_FUNC(_show_messenger_main_window), app