[empathy] debug-window: use empathy_context_menu_new()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] debug-window: use empathy_context_menu_new()
- Date: Wed, 16 Feb 2011 14:50:13 +0000 (UTC)
commit 89c2a14e5eba2921b4ee6264f2a218eb3d93717f
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Feb 16 15:42:17 2011 +0100
debug-window: use empathy_context_menu_new()
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 837c802..f09cbd5 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]