diff options
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r-- | gtk/gtkwidget.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index dc15025a9e..00188ec662 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -946,22 +946,6 @@ gtk_widget_real_snapshot (GtkWidget *widget, } static void -gtk_widget_real_show_all (GtkWidget *widget) -{ - GtkWidget *p; - - for (p = gtk_widget_get_first_child (widget); - p != NULL; - p = gtk_widget_get_next_sibling (p)) - { - if (!GTK_IS_POPOVER (p)) - gtk_widget_show_all (p); - } - - gtk_widget_show (widget); -} - -static void gtk_widget_class_init (GtkWidgetClass *klass) { static GObjectNotifyContext cpn_context = { 0, NULL, NULL }; @@ -1009,7 +993,6 @@ gtk_widget_class_init (GtkWidgetClass *klass) klass->activate_signal = 0; klass->dispatch_child_properties_changed = gtk_widget_dispatch_child_properties_changed; klass->show = gtk_widget_real_show; - klass->show_all = gtk_widget_real_show_all; klass->hide = gtk_widget_real_hide; klass->map = gtk_widget_real_map; klass->unmap = gtk_widget_real_unmap; @@ -4411,17 +4394,7 @@ gtk_widget_hide_on_delete (GtkWidget *widget) void gtk_widget_show_all (GtkWidget *widget) { - GtkWidgetClass *class; - - g_return_if_fail (GTK_IS_WIDGET (widget)); - - if (gtk_widget_get_no_show_all (widget)) - return; - - class = GTK_WIDGET_GET_CLASS (widget); - - if (class->show_all) - class->show_all (widget); + gtk_widget_show (widget); } /** |