diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-08-21 14:24:38 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-08-21 14:24:38 -0500 |
commit | c0af3f554befb151128beb21119c0f621222fe14 (patch) | |
tree | 15a3c3e863d1abe1f5601892659786d3ec0af94f | |
parent | 0f1f31d9925cbce92b176c0acc74e3a162450d5c (diff) | |
download | ayatana-ido-c0af3f554befb151128beb21119c0f621222fe14.tar.gz ayatana-ido-c0af3f554befb151128beb21119c0f621222fe14.tar.bz2 ayatana-ido-c0af3f554befb151128beb21119c0f621222fe14.zip |
don't keep the GBinding pointer around, it'll be destroyed automatically when the menuitem's destroyed
-rw-r--r-- | src/idoswitchmenuitem.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/idoswitchmenuitem.c b/src/idoswitchmenuitem.c index a85ecc6..6a0be34 100644 --- a/src/idoswitchmenuitem.c +++ b/src/idoswitchmenuitem.c @@ -31,7 +31,6 @@ struct _IdoSwitchMenuItemPrivate GtkWidget * box; GtkWidget * content_area; GtkWidget * switch_w; - GBinding * active_binding; }; /*** @@ -46,8 +45,6 @@ ido_switch_menu_item_dispose (GObject *object) IdoSwitchMenuItem * self = IDO_SWITCH_MENU_ITEM(object); IdoSwitchMenuItemPrivate *p = self->priv; - g_clear_object (&p->active_binding); - G_OBJECT_CLASS (ido_switch_menu_item_parent_class)->dispose (object); } @@ -84,9 +81,9 @@ ido_switch_menu_item_init (IdoSwitchMenuItem *item) gtk_container_add (GTK_CONTAINER (item), priv->box); gtk_widget_show_all (priv->box); - priv->active_binding = g_object_bind_property (item, "active", - priv->switch_w, "active", - G_BINDING_SYNC_CREATE); + g_object_bind_property (item, "active", + priv->switch_w, "active", + G_BINDING_SYNC_CREATE); } /*** |