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:
Matthias Clasen 2009-10-28 12:13:58 -04:00
parent 4ff709c24b
commit 0f78a6c89a

View File

@ -2414,7 +2414,7 @@ gtk_window_set_type_hint (GtkWindow *window,
GtkWindowPrivate *priv; GtkWindowPrivate *priv;
g_return_if_fail (GTK_IS_WINDOW (window)); 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); priv = GTK_WINDOW_GET_PRIVATE (window);