forked from AuroraMiddleware/gtk
window: Chain up in show/hide
This commit is contained in:
parent
cabe39862b
commit
863f4d13ff
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user