[empathy] ensure that the "Previous Conversations" menu entry stays sensitive if there are valid accounts
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] ensure that the "Previous Conversations" menu entry stays sensitive if there are valid accounts
- Date: Thu, 5 Nov 2009 12:50:27 +0000 (UTC)
commit 424ded372a1884c12d9dce47199be00b3de531e4
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Nov 5 12:08:18 2009 +0000
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).
src/empathy-main-window.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 6d26dec..3ac36ae 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]