app: get rid of GtkHSeparator and GtkHScale

This commit is contained in:
Michael Natterer 2018-04-29 17:33:42 +02:00
parent 5ece7a8d1f
commit f34b879a2d
2 changed files with 4 additions and 3 deletions

View File

@ -1466,7 +1466,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,
@ -1577,7 +1577,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,

View File

@ -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);