[gimp] app: misc cleanup in prop-gui range creation



commit ca351d352034e90286d62d3974860b5463926602
Author: Ell <ell_se yahoo com>
Date:   Wed Jun 3 10:13:50 2020 +0300

    app: misc cleanup in prop-gui range creation

 app/propgui/gimppropgui-generic.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/propgui/gimppropgui-generic.c b/app/propgui/gimppropgui-generic.c
index 5aed3ecd81..4098730dd9 100644
--- a/app/propgui/gimppropgui-generic.c
+++ b/app/propgui/gimppropgui-generic.c
@@ -225,17 +225,17 @@ _gimp_prop_gui_new_generic (GObject                  *config,
             &label_str);
           gtk_widget_show (spin_scale);
 
+          g_object_set_data_full (G_OBJECT (vbox),
+                                  "gimp-underlying-widget",
+                                  g_object_ref_sink (spin_scale),
+                                  g_object_unref);
+
           range_label_str = gegl_param_spec_get_property_key (pspec,
                                                               "range-label");
 
           if (range_label_str)
             label_str = range_label_str;
 
-          g_object_set_data_full (G_OBJECT (vbox),
-                                  "gimp-underlying-widget",
-                                  g_object_ref_sink (spin_scale),
-                                  g_object_unref);
-
           gtk_spin_button_get_increments (GTK_SPIN_BUTTON (spin_scale),
                                           &step_increment, &page_increment);
 


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