[gimp] libgimpwidgets: stop using GTK_TYPE_HSCALE
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpwidgets: stop using GTK_TYPE_HSCALE
- Date: Fri, 9 Sep 2016 19:52:57 +0000 (UTC)
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]