diff options
author | Travis Reitter <treitter@gmail.com> | 2010-06-16 09:29:03 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-21 07:12:35 +0800 |
commit | c75319eb432d4d815bf07ee30396f958b021abed (patch) | |
tree | ccce09b121fa0924690606e2639e2b8b41f87820 /libempathy-gtk/empathy-individual-view.c | |
parent | cdd2409d9048d1ffc7794713de52810ef0d18ebb (diff) | |
download | gsoc2013-empathy-c75319eb432d4d815bf07ee30396f958b021abed.tar gsoc2013-empathy-c75319eb432d4d815bf07ee30396f958b021abed.tar.gz gsoc2013-empathy-c75319eb432d4d815bf07ee30396f958b021abed.tar.bz2 gsoc2013-empathy-c75319eb432d4d815bf07ee30396f958b021abed.tar.lz gsoc2013-empathy-c75319eb432d4d815bf07ee30396f958b021abed.tar.xz gsoc2013-empathy-c75319eb432d4d815bf07ee30396f958b021abed.tar.zst gsoc2013-empathy-c75319eb432d4d815bf07ee30396f958b021abed.zip |
Re-implement the context menu for Individuals
Diffstat (limited to 'libempathy-gtk/empathy-individual-view.c')
-rw-r--r-- | libempathy-gtk/empathy-individual-view.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index 83b01964b..b6df6d7c9 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -770,20 +770,17 @@ individual_view_popup_menu_idle_cb (gpointer user_data) GtkWidget *menu; menu = empathy_individual_view_get_individual_menu (data->view); - if (!menu) - { - menu = empathy_individual_view_get_group_menu (data->view); - } + if (menu == NULL) + menu = empathy_individual_view_get_group_menu (data->view); - if (menu) + if (menu != NULL) { - g_signal_connect (menu, "deactivate", - G_CALLBACK (gtk_menu_detach), NULL); - gtk_menu_attach_to_widget (GTK_MENU (menu), - GTK_WIDGET (data->view), NULL); + g_signal_connect (menu, "deactivate", G_CALLBACK (gtk_menu_detach), NULL); + gtk_menu_attach_to_widget (GTK_MENU (menu), GTK_WIDGET (data->view), + NULL); gtk_widget_show (menu); - gtk_menu_popup (GTK_MENU (menu), - NULL, NULL, NULL, NULL, data->button, data->time); + gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, data->button, + data->time); g_object_ref_sink (menu); g_object_unref (menu); } @@ -2064,8 +2061,7 @@ empathy_individual_view_get_individual_menu (EmpathyIndividualView *view) } flags = empathy_individual_view_get_flags (view); - /* TODO: implement (create the menu here */ - DEBUG ("individual menu not implemented"); + menu = empathy_individual_menu_new (individual, priv->individual_features); /* Remove contact */ if (priv->view_features & |