layout: remove map implementation
authorTimm Bäder <mail@baedert.org>
Sat, 17 Mar 2018 10:09:33 +0000 (11:09 +0100)
committerTimm Bäder <mail@baedert.org>
Sat, 17 Mar 2018 11:09:30 +0000 (12:09 +0100)
gtk_widget_real_map already maps all the child widgets.

gtk/gtklayout.c

index 52639ccd36fb9af5c81ccc1d42181180755166c4..60e132714f8848f72c501cad5b4ad3937260f98f 100644 (file)
@@ -113,7 +113,6 @@ static void gtk_layout_set_property       (GObject        *object,
                                            const GValue   *value,
                                            GParamSpec     *pspec);
 static void gtk_layout_finalize           (GObject        *object);
-static void gtk_layout_map                (GtkWidget      *widget);
 static void gtk_layout_measure (GtkWidget *widget,
                                 GtkOrientation  orientation,
                                 int             for_size,
@@ -555,7 +554,6 @@ gtk_layout_class_init (GtkLayoutClass *class)
                                                     G_MAXINT,
                                                     100,
                                                     GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
-  widget_class->map = gtk_layout_map;
   widget_class->measure = gtk_layout_measure;
   widget_class->size_allocate = gtk_layout_size_allocate;
 
@@ -720,29 +718,6 @@ gtk_layout_init (GtkLayout *layout)
   priv->freeze_count = 0;
 }
 
-static void
-gtk_layout_map (GtkWidget *widget)
-{
-  GtkLayout *layout = GTK_LAYOUT (widget);
-  GtkLayoutPrivate *priv = layout->priv;
-  GList *tmp_list;
-
-  GTK_WIDGET_CLASS (gtk_layout_parent_class)->map (widget);
-
-  tmp_list = priv->children;
-  while (tmp_list)
-    {
-      GtkLayoutChild *child = tmp_list->data;
-      tmp_list = tmp_list->next;
-
-      if (gtk_widget_get_visible (child->widget))
-       {
-         if (!gtk_widget_get_mapped (child->widget))
-           gtk_widget_map (child->widget);
-       }
-    }
-}
-
 static void
 gtk_layout_measure (GtkWidget *widget,
                     GtkOrientation  orientation,