app: don't set a permanent size request on the canvas

Reset the canvas size request from gimp_display_shell_constructed() in
gimp_display_shell_canvas_size_allocate() so the image window can be
made smaller again. GTK+ 3.x always respects size requests.
This commit is contained in:
Michael Natterer 2018-05-29 21:09:44 +02:00
parent ce02f4ad05
commit 0ecf0818a5
1 changed files with 3 additions and 0 deletions

View File

@ -213,6 +213,9 @@ gimp_display_shell_canvas_size_allocate (GtkWidget *widget,
/* Reset */
shell->size_allocate_from_configure_event = FALSE;
}
/* undo size request from gimp_display_shell_constructed() */
gtk_widget_set_size_request (widget, -1, -1);
}
gboolean