[gimp/gtk3-port: 276/336] 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/gtk3-port: 276/336] app: use gtk_widget_get_preferred_size() in gimp_tool_gui_canvas_resized()
- Date: Fri, 4 May 2018 10:11:35 +0000 (UTC)
commit f018e28dbed5689835f0829a47cb5afd5e312499
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]