[balsa/gtk3] Do not ref-sink and unref popup menus
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Do not ref-sink and unref popup menus
- Date: Mon, 3 Oct 2011 04:04:43 +0000 (UTC)
commit d1d28dcb7e42dac7e0c110d93e43a477ada433a1
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Oct 2 21:28:42 2011 -0400
Do not ref-sink and unref popup menus
* src/pref-manager.c (address_book_add_cb), (server_add_cb): do
not ref-sink and unref popup menus.
ChangeLog | 5 +++++
src/pref-manager.c | 7 ++-----
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 424f55d..93b0775 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2011-10-02 Peter Bloomfield
+ * src/pref-manager.c (address_book_add_cb), (server_add_cb): do
+ not ref-sink and unref popup menus.
+
+2011-10-02 Peter Bloomfield
+
* src/save-restore.c (config_defclient_save): do not use
uninitialized GError.
diff --git a/src/pref-manager.c b/src/pref-manager.c
index 16ea591..67770c1 100644
--- a/src/pref-manager.c
+++ b/src/pref-manager.c
@@ -3094,9 +3094,8 @@ address_book_add_cb(void)
GTK_WINDOW(property_box));
gtk_widget_show_all(menu);
- g_object_ref_sink(menu);
- gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, 0);
- g_object_unref(menu);
+ gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0,
+ gtk_get_current_event_time());
}
static void
@@ -3155,9 +3154,7 @@ server_add_cb(void)
gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
gtk_widget_show(menuitem);
gtk_widget_show(menu);
- g_object_ref_sink(menu);
gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, 0);
- g_object_unref(menu);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]