aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 22:10:24 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 22:10:57 +0800
commitb93ebf9d9f42e4de478b63b9219efcdf516e630e (patch)
tree2c4e4607a9fb9f3e449f8c9ecbbf32433e75a7c9
parent33fec6ea1836eaa5ba39bd233a5b81e4f6998a18 (diff)
downloadgsoc2013-empathy-b93ebf9d9f42e4de478b63b9219efcdf516e630e.tar
gsoc2013-empathy-b93ebf9d9f42e4de478b63b9219efcdf516e630e.tar.gz
gsoc2013-empathy-b93ebf9d9f42e4de478b63b9219efcdf516e630e.tar.bz2
gsoc2013-empathy-b93ebf9d9f42e4de478b63b9219efcdf516e630e.tar.lz
gsoc2013-empathy-b93ebf9d9f42e4de478b63b9219efcdf516e630e.tar.xz
gsoc2013-empathy-b93ebf9d9f42e4de478b63b9219efcdf516e630e.tar.zst
gsoc2013-empathy-b93ebf9d9f42e4de478b63b9219efcdf516e630e.zip
theme-adium: use empathy_context_menu_new() and remove our hack
It ensures that the popup is destroyed as soon as we're done with it. (#642461)
-rw-r--r--libempathy-gtk/empathy-theme-adium.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index bdc5ea556..6844f9ac2 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -752,7 +752,7 @@ theme_adium_context_menu_for_event (EmpathyThemeAdium *theme, GdkEventButton *ev
g_object_get (G_OBJECT (hit_test_result), "context", &context, NULL);
/* The menu */
- menu = gtk_menu_new ();
+ menu = empathy_context_menu_new (GTK_WIDGET (view));
/* Select all item */
item = gtk_image_menu_item_new_from_stock (GTK_STOCK_SELECT_ALL, NULL);
@@ -813,8 +813,6 @@ theme_adium_context_menu_for_event (EmpathyThemeAdium *theme, GdkEventButton *ev
gtk_widget_show_all (menu);
gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL,
event->button, event->time);
- g_object_ref_sink (menu);
- g_object_unref (menu);
}
static gboolean