From 424ded372a1884c12d9dce47199be00b3de531e4 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 5 Nov 2009 12:08:18 +0000 Subject: ensure that the "Previous Conversations" menu entry stays sensitive if there are valid accounts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We have to wait until the account manager is ready before checking if there are valid accounts (#600798). --- src/empathy-main-window.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3