[gimp/gtk3-port: 276/454] app: use gtk_widget_get_preferred_size() in gimp_tool_gui_canvas_resized()



commit 09a5dc9413329c76f6bc56e490ab6962b5f7257b
Author: Michael Natterer <mitch gimp org>
Date:   Wed May 2 00:43:35 2018 +0200

    app: use gtk_widget_get_preferred_size() in gimp_tool_gui_canvas_resized()

 app/display/gimptoolgui.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimptoolgui.c b/app/display/gimptoolgui.c
index f24bfe9..d974613 100644
--- a/app/display/gimptoolgui.c
+++ b/app/display/gimptoolgui.c
@@ -932,7 +932,7 @@ gimp_tool_gui_canvas_resized (GtkWidget     *canvas,
       GtkAllocation  allocation;
       gboolean       overlay = FALSE;
 
-      gtk_widget_size_request (private->vbox, &requisition);
+      gtk_widget_get_preferred_size (private->vbox, &requisition, NULL);
       gtk_widget_get_allocation (canvas, &allocation);
 
       if (allocation.width  > 2 * requisition.width &&


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]