aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-05 20:08:18 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-05 20:49:57 +0800
commit424ded372a1884c12d9dce47199be00b3de531e4 (patch)
treeda5e2682c3db091e3507f17bf2e1b064942a448a /src
parent85e5ade1f6c54dfac5d45011c299e49bf21a1bdb (diff)
downloadgsoc2013-empathy-424ded372a1884c12d9dce47199be00b3de531e4.tar
gsoc2013-empathy-424ded372a1884c12d9dce47199be00b3de531e4.tar.gz
gsoc2013-empathy-424ded372a1884c12d9dce47199be00b3de531e4.tar.bz2
gsoc2013-empathy-424ded372a1884c12d9dce47199be00b3de531e4.tar.lz
gsoc2013-empathy-424ded372a1884c12d9dce47199be00b3de531e4.tar.xz
gsoc2013-empathy-424ded372a1884c12d9dce47199be00b3de531e4.tar.zst
gsoc2013-empathy-424ded372a1884c12d9dce47199be00b3de531e4.zip
ensure that the "Previous Conversations" menu entry stays sensitive if there are valid accounts
We have to wait until the account manager is ready before checking if there are valid accounts (#600798).
Diffstat (limited to 'src')
-rw-r--r--src/empathy-main-window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 6d26dec5b..3ac36ae52 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1209,6 +1209,11 @@ account_manager_prepared_cb (GObject *source_object,
G_CALLBACK (main_window_connection_changed_cb),
window);
}
+
+ /* Disable the "Previous Conversations" menu entry if there is no account */
+ gtk_action_set_sensitive (window->view_history,
+ g_list_length (accounts) > 0);
+
g_list_free (accounts);
}
@@ -1400,7 +1405,6 @@ empathy_main_window_show (void)
g_signal_connect (window->account_manager, "account-removed",
G_CALLBACK (main_window_account_removed_cb),
window);
- main_window_account_removed_cb (window->account_manager, NULL, window);
l = empathy_event_manager_get_events (window->event_manager);
while (l) {