[empathy/gnome-2-34] individual_view_popup_menu_idle_cb: remove useless sink/unref
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-34] individual_view_popup_menu_idle_cb: remove useless sink/unref
- Date: Thu, 3 Feb 2011 10:48:35 +0000 (UTC)
commit 087abca96d4dcf3a00eeab826678060090656cb4
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Feb 3 10:53:43 2011 +0100
individual_view_popup_menu_idle_cb: remove useless sink/unref
gtk_menu_attach_to_widget() takes the floating ref so this code is useless.
libempathy-gtk/empathy-individual-view.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index dedded0..b721ea2 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -850,8 +850,6 @@ individual_view_popup_menu_idle_cb (gpointer user_data)
gtk_widget_show (menu);
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, data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]