From 22c59503b5e8f397b441a0c7b15c7d4854e4e3e0 Mon Sep 17 00:00:00 2001 From: Cheesequake Date: Sun, 9 Jun 2024 15:02:48 +0000 Subject: [PATCH] app/tools: Fix Filter GUI when expanding vertically, Resolves #11656 Since e4b1f37e, Filter Tool widgets above the Blend Mode frame do not expand vertically when the dialogue is resized. This especially impacts GeglGraph, as you can no longer increase the text area to see more graph code. This patch resolves the issue by adding a GtkExpander to the GUI so that it allows the inner area to resize vertically. --- app/tools/gimpfiltertool.c | 1 + app/tools/gimpoperationtool.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/tools/gimpfiltertool.c b/app/tools/gimpfiltertool.c index 9459a42cc5..a9a44beea3 100644 --- a/app/tools/gimpfiltertool.c +++ b/app/tools/gimpfiltertool.c @@ -1248,6 +1248,7 @@ gimp_filter_tool_update_dialog_operation_settings (GimpFilterTool *filter_tool) expander = gtk_expander_new (_("Blending Options")); gtk_box_pack_start (GTK_BOX (vbox), expander, FALSE, FALSE, 0); + gtk_expander_set_resize_toplevel (GTK_EXPANDER (expander), TRUE); gtk_widget_show (expander); g_object_bind_property (options, "blending-options-expanded", diff --git a/app/tools/gimpoperationtool.c b/app/tools/gimpoperationtool.c index 6dd2fff1a1..f427ee9019 100644 --- a/app/tools/gimpoperationtool.c +++ b/app/tools/gimpoperationtool.c @@ -266,7 +266,7 @@ gimp_operation_tool_dialog (GimpFilterTool *filter_tool) gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (options_sw), GTK_POLICY_NEVER, GTK_POLICY_NEVER); gtk_box_pack_start (GTK_BOX (main_vbox), options_sw, - FALSE, FALSE, 0); + TRUE, TRUE, 0); gtk_widget_show (options_sw); /* The options vbox */