mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-10-02 03:57:36 +00:00
Allow setting type hints on unmapped windows
We set the hint on map, so it makes sense to check for GTK_WIDGET_MAPPED, not GTK_WIDGET_VISIBLE as the code currently does.
This commit is contained in:
parent
4ff709c24b
commit
0f78a6c89a
@ -2414,7 +2414,7 @@ gtk_window_set_type_hint (GtkWindow *window,
|
||||
GtkWindowPrivate *priv;
|
||||
|
||||
g_return_if_fail (GTK_IS_WINDOW (window));
|
||||
g_return_if_fail (!GTK_WIDGET_VISIBLE (window));
|
||||
g_return_if_fail (!GTK_WIDGET_MAPPED (window));
|
||||
|
||||
priv = GTK_WINDOW_GET_PRIVATE (window);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user