summaryrefslogtreecommitdiff
path: root/gtk/gtkbox.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-11-07 20:23:44 +0100
committerBenjamin Otte <otte@redhat.com>2015-11-09 01:48:14 +0100
commitbed3ff27370a08d6bf18020c729de406661affcb (patch)
tree08f80c3b2a58487c475702a6e488ec432f28a71b /gtk/gtkbox.c
parentd55628cd9f0fccc3be0cc00378bc85d2da9192b3 (diff)
downloadgtk+-bed3ff27370a08d6bf18020c729de406661affcb.tar.gz
box: Don't track children visibility
It's not necessary anymore with css nodes.
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r--gtk/gtkbox.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index f85459c353..413c59ce44 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -1480,16 +1480,6 @@ gtk_box_direction_changed (GtkWidget *widget,
gtk_box_invalidate_order (GTK_BOX (widget));
}
-static void
-box_child_visibility_notify_cb (GObject *obj,
- GParamSpec *pspec,
- gpointer user_data)
-{
- GtkBox *box = user_data;
-
- gtk_box_invalidate_order (box);
-}
-
static GtkBoxChild *
gtk_box_pack (GtkBox *box,
GtkWidget *child,
@@ -1520,9 +1510,6 @@ gtk_box_pack (GtkBox *box,
gtk_widget_set_parent (child, GTK_WIDGET (box));
gtk_box_invalidate_order (box);
- g_signal_connect (child, "notify::visible",
- G_CALLBACK (box_child_visibility_notify_cb), box);
-
gtk_container_child_notify_by_pspec (container, child, child_props[CHILD_PROP_EXPAND]);
gtk_container_child_notify_by_pspec (container, child, child_props[CHILD_PROP_FILL]);
gtk_container_child_notify_by_pspec (container, child, child_props[CHILD_PROP_PADDING]);
@@ -2535,10 +2522,6 @@ gtk_box_remove (GtkContainer *container,
if (priv->center == child)
priv->center = NULL;
- g_signal_handlers_disconnect_by_func (widget,
- box_child_visibility_notify_cb,
- box);
-
was_visible = _gtk_widget_get_visible (widget);
gtk_widget_unparent (widget);