aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 22:42:17 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 22:42:17 +0800
commit89c2a14e5eba2921b4ee6264f2a218eb3d93717f (patch)
tree3a4c81d7a3812fb89fc25ea95c10a7c782525a00 /src
parentea092fdf3fd0a50acaa77c3768478169a7da589d (diff)
downloadgsoc2013-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.c5
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);