]> git.0d.be Git - empathy.git/commitdiff
Remove view history action
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Wed, 9 May 2012 05:18:52 +0000 (15:18 +1000)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Tue, 15 May 2012 10:40:27 +0000 (20:40 +1000)
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

index 2a4bc27f44fbfa9e30c490e2854c8785c72acb89..7a45df6a48db3dc8d68475c99a83b35dfcb7440b 100644 (file)
@@ -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);