]> git.0d.be Git - empathy.git/commitdiff
individual-menu: remove 'block' item from personas sub menus
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 23 Jun 2014 13:33:11 +0000 (15:33 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 23 Jun 2014 13:36:25 +0000 (15:36 +0200)
Blocking a specific persona from an individual is a very uncommon operation.
Either you want to block the full individual or the personas shouldn't be
linked together.
There is not much point cluttering the menu with it.

https://bugzilla.gnome.org/show_bug.cgi?id=732100

libempathy-gtk/empathy-individual-menu.c

index ae489a77ae71e76be123c79ac75918e18920a664..3c3cb5646d10e2d5b5132f44884291537c6ff590 100644 (file)
@@ -255,20 +255,6 @@ individual_menu_add_personas (EmpathyIndividualMenu *self,
       gtk_menu_shell_append (GTK_MENU_SHELL (contact_submenu), action);
       gtk_widget_show (action);
 
-      /* Block */
-      if (features & EMPATHY_INDIVIDUAL_FEATURE_BLOCK &&
-          (item = block_menu_item_new_individual (single_individual))
-          != NULL) {
-        GtkWidget *sep;
-
-        sep = gtk_separator_menu_item_new ();
-        gtk_menu_shell_append (GTK_MENU_SHELL (contact_submenu), sep);
-        gtk_widget_show (sep);
-
-        gtk_menu_shell_append (GTK_MENU_SHELL (contact_submenu), item);
-        gtk_widget_show (item);
-      }
-
       gtk_menu_shell_append (GTK_MENU_SHELL (menu), contact_item);
       gtk_widget_show (contact_item);