mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
window: Avoid unnecessary attach-widget resets
This commit is contained in:
parent
9b6ae2e9d5
commit
f01cef05c8
@ -2651,6 +2651,9 @@ gtk_window_set_attached_to (GtkWindow *window,
|
||||
|
||||
priv = window->priv;
|
||||
|
||||
if (priv->attach_widget == attach_widget)
|
||||
return;
|
||||
|
||||
remove_attach_widget (window);
|
||||
|
||||
priv->attach_widget = attach_widget;
|
||||
|
Loading…
Reference in New Issue
Block a user