[gimp/gtk3-port: 257/262] app: get rid of GtkHSeparator and GtkHScale



commit 5078c896a4057a4937b963c3306943401789ebdf
Author: Michael Natterer <mitch gimp org>
Date:   Sun Apr 29 17:33:42 2018 +0200

    app: get rid of GtkHSeparator and GtkHScale

 app/tools/gimpgradienttool-editor.c |    4 ++--
 app/widgets/gimpiconsizescale.c     |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimpgradienttool-editor.c b/app/tools/gimpgradienttool-editor.c
index cba74d0..f4dc8b3 100644
--- a/app/tools/gimpgradienttool-editor.c
+++ b/app/tools/gimpgradienttool-editor.c
@@ -1463,7 +1463,7 @@ gimp_gradient_tool_editor_init_stop_gui (GimpGradientTool *gradient_tool)
   row += 2;
 
   /* the action buttons separator */
-  separator = gtk_hseparator_new ();
+  separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
   gtk_table_attach (GTK_TABLE (table), separator, 0, 2, row, row + 1,
                     GTK_SHRINK | GTK_FILL | GTK_EXPAND,
                     GTK_SHRINK | GTK_FILL,
@@ -1574,7 +1574,7 @@ gimp_gradient_tool_editor_init_midpoint_gui (GimpGradientTool *gradient_tool)
   row++;
 
   /* the action buttons separator */
-  separator = gtk_hseparator_new ();
+  separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
   gtk_table_attach (GTK_TABLE (table), separator, 0, 2, row, row + 1,
                     GTK_SHRINK | GTK_FILL | GTK_EXPAND,
                     GTK_SHRINK | GTK_FILL,
diff --git a/app/widgets/gimpiconsizescale.c b/app/widgets/gimpiconsizescale.c
index 541eaa7..4004d59 100644
--- a/app/widgets/gimpiconsizescale.c
+++ b/app/widgets/gimpiconsizescale.c
@@ -129,7 +129,8 @@ gimp_icon_size_scale_init (GimpIconSizeScale *object)
   gtk_box_pack_start (GTK_BOX (box), private->combo, FALSE, FALSE, 0);
   gtk_widget_show (box);
 
-  private->scale = gtk_hscale_new_with_range (0.0, 3.0, 1.0);
+  private->scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL,
+                                             0.0, 3.0, 1.0);
   /* 'draw_value' updates round_digits. So set it first. */
   gtk_scale_set_draw_value (GTK_SCALE (private->scale), FALSE);
   gtk_range_set_round_digits (GTK_RANGE (private->scale), 0.0);


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