[gimp] app: use gtk_widget_get_preferred_size() in gimp_tool_gui_canvas_resized()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use gtk_widget_get_preferred_size() in gimp_tool_gui_canvas_resized()
- Date: Sun, 20 May 2018 19:31:55 +0000 (UTC)
commit 4c68fb70d4bcf6b3551e8961ac4c4398e605f4e8
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]