[gimp] libgimpwidgets: stop using GTK_TYPE_HSCALE



commit 57d0c898188328d90e54333d0aea36f88f1658cc
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 9 21:52:09 2016 +0200

    libgimpwidgets: stop using GTK_TYPE_HSCALE
    
    Use GTK_TYPE_SCALE with orientation = HORIZONTAL instead.

 libgimpwidgets/gimppropwidgets.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libgimpwidgets/gimppropwidgets.c b/libgimpwidgets/gimppropwidgets.c
index 9f9a3b3..85da9f8 100644
--- a/libgimpwidgets/gimppropwidgets.c
+++ b/libgimpwidgets/gimppropwidgets.c
@@ -1286,9 +1286,10 @@ gimp_prop_hscale_new (GObject     *config,
   adjustment = gtk_adjustment_new (value, lower, upper,
                                    step_increment, page_increment, 0.0);
 
-  scale = g_object_new (GTK_TYPE_HSCALE,
-                        "adjustment", adjustment,
-                        "digits",     digits,
+  scale = g_object_new (GTK_TYPE_SCALE,
+                        "orientation", GTK_ORIENTATION_HORIZONTAL,
+                        "adjustment",  adjustment,
+                        "digits",      digits,
                         NULL);
 
   set_param_spec (G_OBJECT (adjustment), scale, param_spec);


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