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:
@ -32,6 +32,7 @@
|
||||
#include "gimppixmap.h"
|
||||
#include "gimpquerybox.h"
|
||||
#include "gimpsizeentry.h"
|
||||
#include "gimpspinbutton.h"
|
||||
#include "gimpwidgets.h"
|
||||
|
||||
#include "libgimp/libgimp-intl.h"
|
||||
@ -340,7 +341,7 @@ gimp_query_int_box (const gchar *title,
|
||||
|
||||
adjustment = (GtkAdjustment *)
|
||||
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);
|
||||
@ -404,7 +405,7 @@ gimp_query_double_box (const gchar *title,
|
||||
|
||||
adjustment = (GtkAdjustment *)
|
||||
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);
|
||||
|
Reference in New Issue
Block a user