mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-07 11:20:09 +00:00
GtkWindow: Trivial cleanup
This commit is contained in:
parent
8677446fe0
commit
05cabd3557
@ -2761,12 +2761,7 @@ gtk_window_set_modal (GtkWindow *window,
|
||||
|
||||
/* adjust desired modality state */
|
||||
if (gtk_widget_get_realized (widget))
|
||||
{
|
||||
if (priv->modal)
|
||||
gdk_window_set_modal_hint (gtk_widget_get_window (widget), TRUE);
|
||||
else
|
||||
gdk_window_set_modal_hint (gtk_widget_get_window (widget), FALSE);
|
||||
}
|
||||
gdk_window_set_modal_hint (gtk_widget_get_window (widget), priv->modal);
|
||||
|
||||
if (gtk_widget_get_visible (widget))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user