From 5ab040341e11bb1922de57553a94c8d620c768e5 Mon Sep 17 00:00:00 2001 From: Danielle Madeley Date: Wed, 9 May 2012 15:18:52 +1000 Subject: Remove view history action It doesn't make sense to have this anyway. You can still have history even though you have no accounts configured. --- src/empathy-roster-window.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src') diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c index 2a4bc27f4..7a45df6a4 100644 --- a/src/empathy-roster-window.c +++ b/src/empathy-roster-window.c @@ -140,7 +140,6 @@ struct _EmpathyRosterWindowPriv { GtkRadioAction *compact_size; GtkUIManager *ui_manager; - GtkAction *view_history; GMenu *rooms_section; GMenu *balance_section; GAction *view_credit_action; @@ -2239,15 +2238,6 @@ roster_window_account_removed_cb (TpAccountManager *manager, TpAccount *account, EmpathyRosterWindow *self) { - GList *a; - - a = tp_account_manager_get_valid_accounts (manager); - - gtk_action_set_sensitive (self->priv->view_history, - g_list_length (a) > 0); - - g_list_free (a); - /* remove errors if any */ roster_window_remove_error (self, account); @@ -2480,10 +2470,6 @@ account_manager_prepared_cb (GObject *source_object, roster_window_update_status (self); - /* Disable the "Previous Conversations" menu entry if there is no account */ - gtk_action_set_sensitive (self->priv->view_history, - g_list_length (accounts) > 0); - set_notebook_page (self); g_list_free (accounts); -- cgit v1.2.3