window: Avoid unnecessary attach-widget resets

This commit is contained in:
Benjamin Otte 2012-01-30 14:41:05 +01:00
parent 9b6ae2e9d5
commit f01cef05c8

View File

@ -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;