From f6d4ca61424a0325d7eb6352fb18831bb2560ff9 Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Tue, 7 Jan 2014 14:28:32 -0500 Subject: [PATCH] * #38044: gnome: buddy list should be accessible even with notifications off This way you can modify the buddy list without actively sending notifications. --- gnome/src/uimanager.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/gnome/src/uimanager.c b/gnome/src/uimanager.c index 09250aad5f..6ac07ff326 100644 --- a/gnome/src/uimanager.c +++ b/gnome/src/uimanager.c @@ -1649,19 +1649,7 @@ create_menus(GtkUIManager *ui, SFLPhoneClient *client) gtk_action_set_sensitive(get_action(ui, "/MenuBar/ViewMenu/Toolbar"), FALSE); #ifdef SFL_PRESENCE - // Should the buddy list be available? - // find at least one account with presence feature enabled - account_t * account; - gboolean global_presence_enabled = FALSE; - - for (guint i = 0; i < account_list_get_size(); i++){ - account = account_list_get_nth(i); - g_assert(account); - if(g_strcmp0(account_lookup(account, CONFIG_PRESENCE_ENABLED), "true") == 0) - global_presence_enabled = TRUE; - } - - gtk_action_set_sensitive(get_action(ui, "/MenuBar/ViewMenu/Buddies"), global_presence_enabled); + gtk_action_set_sensitive(get_action(ui, "/MenuBar/ViewMenu/Buddies"), TRUE); #endif /* Add the loading icon at the right of the toolbar. It is used for addressbook searches. */ -- GitLab