mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
window: Allow setting type hint on mapped windows
This commit is contained in:
parent
8a238c7886
commit
7a16039c2d
@ -3503,13 +3503,15 @@ gtk_window_set_type_hint (GtkWindow *window,
|
||||
GtkWindowPrivate *priv;
|
||||
|
||||
g_return_if_fail (GTK_IS_WINDOW (window));
|
||||
g_return_if_fail (!gtk_widget_get_mapped (GTK_WIDGET (window)));
|
||||
|
||||
priv = window->priv;
|
||||
|
||||
priv->type_hint = hint;
|
||||
|
||||
priv->reset_type_hint = TRUE;
|
||||
if (gtk_widget_get_mapped (GTK_WIDGET (window)))
|
||||
gdk_window_set_type_hint (gtk_widget_get_window (GTK_WIDGET (window)), hint);
|
||||
else
|
||||
priv->reset_type_hint = TRUE;
|
||||
|
||||
update_window_buttons (window);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user