[gtk/wip/baedert/for-master] shortcutssection: Remove (un)map implementation



commit d4b29831561819f191735bb5ba4e65247a6a25f7
Author: Timm Bäder <mail baedert org>
Date:   Sun Nov 10 10:09:32 2019 +0100

    shortcutssection: Remove (un)map implementation
    
    This is done by GtkWidget automatically these days.

 gtk/gtkshortcutssection.c | 33 ---------------------------------
 1 file changed, 33 deletions(-)
---
diff --git a/gtk/gtkshortcutssection.c b/gtk/gtkshortcutssection.c
index 0bb55fee01..2791b4af6d 100644
--- a/gtk/gtkshortcutssection.c
+++ b/gtk/gtkshortcutssection.c
@@ -165,37 +165,6 @@ gtk_shortcuts_section_forall (GtkContainer *container,
     }
 }
 
-static void
-map_child (GtkWidget *child)
-{
-  if (_gtk_widget_get_visible (child) &&
-      _gtk_widget_get_child_visible (child) &&
-      !_gtk_widget_get_mapped (child))
-    gtk_widget_map (child);
-}
-
-static void
-gtk_shortcuts_section_map (GtkWidget *widget)
-{
-  GtkShortcutsSection *self = GTK_SHORTCUTS_SECTION (widget);
-
-  GTK_WIDGET_CLASS (gtk_shortcuts_section_parent_class)->map (widget);
-
-  map_child (GTK_WIDGET (self->stack));
-  map_child (GTK_WIDGET (self->footer));
-}
-
-static void
-gtk_shortcuts_section_unmap (GtkWidget *widget)
-{
-  GtkShortcutsSection *self = GTK_SHORTCUTS_SECTION (widget);
-
-  GTK_WIDGET_CLASS (gtk_shortcuts_section_parent_class)->unmap (widget);
-
-  gtk_widget_unmap (GTK_WIDGET (self->footer));
-  gtk_widget_unmap (GTK_WIDGET (self->stack));
-}
-
 static void
 gtk_shortcuts_section_destroy (GtkWidget *widget)
 {
@@ -313,8 +282,6 @@ gtk_shortcuts_section_class_init (GtkShortcutsSectionClass *klass)
   object_class->get_property = gtk_shortcuts_section_get_property;
   object_class->set_property = gtk_shortcuts_section_set_property;
 
-  widget_class->map = gtk_shortcuts_section_map;
-  widget_class->unmap = gtk_shortcuts_section_unmap;
   widget_class->destroy = gtk_shortcuts_section_destroy;
 
   container_class->add = gtk_shortcuts_section_add;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]