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

@ -26,11 +26,6 @@
#include "libgimpbase/gimpbase.h"
#include "gimpwidgetstypes.h"
#include "gimpdialog.h"
#include "gimpquerybox.h"
#include "gimpsizeentry.h"
#include "gimpwidgets.h"
#include "libgimp/libgimp-intl.h"
@ -338,7 +333,7 @@ gimp_query_int_box (const gchar *title,
return NULL;
adjustment = gtk_adjustment_new (initial, lower, upper, 1, 10, 0);
spinbutton = gtk_spin_button_new (adjustment, 1.0, 0);
spinbutton = gimp_spin_button_new (adjustment, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (spinbutton), TRUE);
gtk_box_pack_start (GTK_BOX (query_box->vbox), spinbutton, FALSE, FALSE, 0);
@ -401,7 +396,7 @@ gimp_query_double_box (const gchar *title,
return NULL;
adjustment = gtk_adjustment_new (initial, lower, upper, 1, 10, 0);
spinbutton = gtk_spin_button_new (adjustment, 1.0, 0);
spinbutton = gimp_spin_button_new (adjustment, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (spinbutton), TRUE);
gtk_box_pack_start (GTK_BOX (query_box->vbox), spinbutton, FALSE, FALSE, 0);