[gimp/gimp-2-10] app: run gtk_widget_show() on the new checkbox.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: run gtk_widget_show() on the new checkbox.
- Date: Thu, 2 Apr 2020 16:26:39 +0000 (UTC)
commit c3f93e5fefb9bc3091753836d9a9f03cddfffe78
Author: Jehan <jehan girinstud io>
Date: Thu Apr 2 18:23:48 2020 +0200
app: run gtk_widget_show() on the new checkbox.
It was unneeded on master, surely because there must be a
gtk_widget_show_all() run somewhere down the line.
Also reuse the button widget (not so important, but while I'm at it).
app/tools/gimpcropoptions.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/tools/gimpcropoptions.c b/app/tools/gimpcropoptions.c
index b2112498c0..24c5dabf6c 100644
--- a/app/tools/gimpcropoptions.c
+++ b/app/tools/gimpcropoptions.c
@@ -203,7 +203,6 @@ gimp_crop_options_gui (GimpToolOptions *tool_options)
GtkWidget *vbox = gimp_tool_options_gui (tool_options);
GtkWidget *vbox_rectangle;
GtkWidget *button;
- GtkWidget *button2;
GtkWidget *combo;
GtkWidget *frame;
@@ -213,11 +212,12 @@ gimp_crop_options_gui (GimpToolOptions *tool_options)
gtk_widget_show (button);
/* delete pixels toggle */
- button2 = gimp_prop_check_button_new (config, "delete-pixels", NULL);
- gtk_box_pack_start (GTK_BOX (vbox), button2, FALSE, FALSE, 0);
+ button = gimp_prop_check_button_new (config, "delete-pixels", NULL);
+ gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
+ gtk_widget_show (button);
g_object_bind_property (G_OBJECT (config), "layer-only",
- G_OBJECT (button2), "sensitive",
+ G_OBJECT (button), "sensitive",
G_BINDING_SYNC_CREATE |
G_BINDING_INVERT_BOOLEAN);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]