gtkwindow: remove headerbar after disposing parent
Widgets such as gtkfilechooser may be saving their size and position on the unmap callback, if the client-side decoration header bar is removed first, the reported size will be wrong. https://bugzilla.gnome.org/show_bug.cgi?id=756618
This commit is contained in:
@@ -3119,12 +3119,12 @@ gtk_window_dispose (GObject *object)
|
||||
GtkWindow *window = GTK_WINDOW (object);
|
||||
GtkWindowPrivate *priv = window->priv;
|
||||
|
||||
unset_titlebar (window);
|
||||
gtk_window_set_focus (window, NULL);
|
||||
gtk_window_set_default (window, NULL);
|
||||
remove_attach_widget (window);
|
||||
|
||||
G_OBJECT_CLASS (gtk_window_parent_class)->dispose (object);
|
||||
unset_titlebar (window);
|
||||
|
||||
while (priv->popovers)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user