window: Chain up in show/hide

This commit is contained in:
Benjamin Otte 2019-05-29 16:33:45 +02:00
parent cabe39862b
commit 863f4d13ff

View File

@ -4954,14 +4954,14 @@ gtk_window_show (GtkWidget *widget)
GtkWindow *window = GTK_WINDOW (widget);
GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
_gtk_widget_set_visible_flag (widget, TRUE);
gtk_css_node_validate (gtk_widget_get_css_node (widget));
gtk_widget_realize (widget);
gtk_window_check_resize (window);
GTK_WIDGET_CLASS (gtk_window_parent_class)->show (widget);
gtk_widget_map (widget);
if (!priv->focus_widget)
@ -4982,8 +4982,7 @@ gtk_window_hide (GtkWidget *widget)
GtkWindow *window = GTK_WINDOW (widget);
GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
_gtk_widget_set_visible_flag (widget, FALSE);
gtk_widget_unmap (widget);
GTK_WIDGET_CLASS (gtk_window_parent_class)->hide (widget);
if (priv->modal)
gtk_grab_remove (widget);