diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-16 22:42:17 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-16 22:42:17 +0800 |
commit | 89c2a14e5eba2921b4ee6264f2a218eb3d93717f (patch) | |
tree | 3a4c81d7a3812fb89fc25ea95c10a7c782525a00 /src | |
parent | ea092fdf3fd0a50acaa77c3768478169a7da589d (diff) | |
download | gsoc2013-empathy-89c2a14e5eba2921b4ee6264f2a218eb3d93717f.tar gsoc2013-empathy-89c2a14e5eba2921b4ee6264f2a218eb3d93717f.tar.gz gsoc2013-empathy-89c2a14e5eba2921b4ee6264f2a218eb3d93717f.tar.bz2 gsoc2013-empathy-89c2a14e5eba2921b4ee6264f2a218eb3d93717f.tar.lz gsoc2013-empathy-89c2a14e5eba2921b4ee6264f2a218eb3d93717f.tar.xz gsoc2013-empathy-89c2a14e5eba2921b4ee6264f2a218eb3d93717f.tar.zst gsoc2013-empathy-89c2a14e5eba2921b4ee6264f2a218eb3d93717f.zip |
debug-window: use empathy_context_menu_new()
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-debug-window.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c index 837c8022e..f09cbd5ff 100644 --- a/src/empathy-debug-window.c +++ b/src/empathy-debug-window.c @@ -32,6 +32,7 @@ #include <libempathy-gtk/empathy-account-chooser.h> #include <libempathy-gtk/empathy-geometry.h> +#include <libempathy-gtk/empathy-ui-utils.h> #include <telepathy-glib/dbus.h> #include <telepathy-glib/interfaces.h> @@ -1026,7 +1027,7 @@ debug_window_show_menu (gpointer user_data) GtkWidget *menu, *item; GtkMenuShell *shell; - menu = gtk_menu_new (); + menu = empathy_context_menu_new (GTK_WIDGET (data->debug_window)); shell = GTK_MENU_SHELL (menu); item = gtk_image_menu_item_new_from_stock (GTK_STOCK_COPY, NULL); @@ -1039,8 +1040,6 @@ debug_window_show_menu (gpointer user_data) gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, data->button, data->time); - g_object_ref_sink (menu); - g_object_unref (menu); g_slice_free (MenuPopupData, user_data); |