aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/idoswitchmenuitem.c9
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);
}
/***