[gtk+/wip/action-helper] GtkActionHelper work: a couple of small fixes
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/action-helper] GtkActionHelper work: a couple of small fixes
- Date: Sun, 17 Jun 2012 03:09:01 +0000 (UTC)
commit 395b46bddce87e56ae23dc98828f9cf865998ff5
Author: William Hua <william attente ca>
Date: Sat Jun 16 23:08:46 2012 -0400
GtkActionHelper work: a couple of small fixes
gtk/gtkactionhelper.c | 1 +
gtk/gtkmodelmenu-quartz.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkactionhelper.c b/gtk/gtkactionhelper.c
index c22816f..b5dff1c 100644
--- a/gtk/gtkactionhelper.c
+++ b/gtk/gtkactionhelper.c
@@ -536,6 +536,7 @@ gtk_action_helper_finalize (GObject *object)
if (helper->application)
{
+ g_signal_handlers_disconnect_by_data (helper->application, helper);
g_object_unref (helper->application);
if (helper->widget)
diff --git a/gtk/gtkmodelmenu-quartz.c b/gtk/gtkmodelmenu-quartz.c
index 17c9c24..31dbfdb 100644
--- a/gtk/gtkmodelmenu-quartz.c
+++ b/gtk/gtkmodelmenu-quartz.c
@@ -409,6 +409,7 @@ gtk_quartz_action_helper_changed (GObject *object,
gchar *action;
GVariant *target;
+ action = NULL;
g_menu_model_get_item_attribute (model, index, G_MENU_ATTRIBUTE_ACTION, "s", &action);
target = g_menu_model_get_item_attribute_value (model, index, G_MENU_ATTRIBUTE_TARGET, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]