summaryrefslogtreecommitdiff
path: root/gtk/gtkcontainer.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-11-18 09:50:52 +0100
committerTimm Bäder <mail@baedert.org>2017-01-07 16:44:01 +0100
commit8ef73660e41f78442da7ab270469ff5acc876054 (patch)
treefc624b38127d807d8e11587c2094e1d59af1105e /gtk/gtkcontainer.c
parentb15b9e028f7c3422f9924673ded55d346ce998e3 (diff)
downloadgtk+-8ef73660e41f78442da7ab270469ff5acc876054.tar.gz
widget: Implement map/unmap with child widgets
Once again, do what GtkContainer did before.
Diffstat (limited to 'gtk/gtkcontainer.c')
-rw-r--r--gtk/gtkcontainer.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 91a155a8d1..39fc7c44e3 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -326,8 +326,6 @@ static gint gtk_container_draw (GtkWidget *widget,
cairo_t *cr);
static void gtk_container_snapshot (GtkWidget *widget,
GtkSnapshot *snapshot);
-static void gtk_container_map (GtkWidget *widget);
-static void gtk_container_unmap (GtkWidget *widget);
static GtkSizeRequestMode gtk_container_get_request_mode (GtkWidget *widget);
static GtkWidgetPath * gtk_container_real_get_path_for_child (GtkContainer *container,
@@ -464,8 +462,6 @@ gtk_container_class_init (GtkContainerClass *class)
widget_class->compute_expand = gtk_container_compute_expand;
widget_class->snapshot = gtk_container_snapshot;
widget_class->draw = gtk_container_draw;
- widget_class->map = gtk_container_map;
- widget_class->unmap = gtk_container_unmap;
widget_class->focus = gtk_container_focus;
widget_class->get_request_mode = gtk_container_get_request_mode;
@@ -3087,36 +3083,6 @@ gtk_container_snapshot (GtkWidget *widget,
snapshot);
}
-static void
-gtk_container_map_child (GtkWidget *child,
- gpointer client_data)
-{
- if (_gtk_widget_get_visible (child) &&
- _gtk_widget_get_child_visible (child) &&
- !_gtk_widget_get_mapped (child))
- gtk_widget_map (child);
-}
-
-static void
-gtk_container_map (GtkWidget *widget)
-{
- GTK_WIDGET_CLASS (parent_class)->map (widget);
-
- gtk_container_forall (GTK_CONTAINER (widget),
- gtk_container_map_child,
- NULL);
-}
-
-static void
-gtk_container_unmap (GtkWidget *widget)
-{
- GTK_WIDGET_CLASS (parent_class)->unmap (widget);
-
- gtk_container_forall (GTK_CONTAINER (widget),
- (GtkCallback)gtk_widget_unmap,
- NULL);
-}
-
static gboolean
gtk_container_should_propagate_draw (GtkContainer *container,
GtkWidget *child,