libgimpwidgets, app, plug-ins: use GimpSpinButton everywhere

Replace all direct uses of GtkSpinButton with GimpSpinButton, so
that its modified behavior extends to all our spin buttons.
This commit is contained in:
Ell
2019-03-09 07:25:19 -05:00
parent 0a1e688c1f
commit 8954d1f386
53 changed files with 116 additions and 121 deletions

View File

@ -458,7 +458,7 @@ gimp_random_seed_new (guint *seed,
*seed = g_random_int ();
adj = gtk_adjustment_new (*seed, 0, (guint32) -1, 1, 10, 0);
spinbutton = gtk_spin_button_new (adj, 1.0, 0);
spinbutton = gimp_spin_button_new (adj, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
gtk_widget_show (spinbutton);
@ -694,7 +694,7 @@ gimp_coordinates_new (GimpUnit unit,
GtkWidget *chainbutton;
adjustment = gtk_adjustment_new (1, 0, 1, 1, 10, 0);
spinbutton = gtk_spin_button_new (adjustment, 1.0, 2);
spinbutton = gimp_spin_button_new (adjustment, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
if (spinbutton_width > 0)