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 06:55:58 -05:00
parent 633f6c1f94
commit 2dad85b84f
51 changed files with 119 additions and 115 deletions

View File

@ -200,7 +200,7 @@ convert_indexed_dialog_new (GimpImage *image,
adjustment = (GtkAdjustment *)
gtk_adjustment_new (private->max_colors, 2, 256, 1, 8, 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_label_set_mnemonic_widget (GTK_LABEL (label), spinbutton);
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);

View File

@ -264,7 +264,7 @@ layer_options_dialog_new (GimpImage *image,
/* The size sizeentry */
adjustment = (GtkAdjustment *)
gtk_adjustment_new (1, 1, 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);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
@ -328,7 +328,7 @@ layer_options_dialog_new (GimpImage *image,
/* The offset sizeentry */
adjustment = (GtkAdjustment *)
gtk_adjustment_new (0, 1, 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);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);

View File

@ -170,7 +170,7 @@ offset_dialog_new (GimpDrawable *drawable,
adjustment = (GtkAdjustment *)
gtk_adjustment_new (1, 1, 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);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);

View File

@ -158,12 +158,12 @@ print_size_dialog_new (GimpImage *image,
/* the print size entry */
adj = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
width = gtk_spin_button_new (adj, 1.0, 2);
width = gimp_spin_button_new (adj, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (width), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (width), SB_WIDTH);
adj = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
height = gtk_spin_button_new (adj, 1.0, 2);
height = gimp_spin_button_new (adj, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (height), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (height), SB_WIDTH);
@ -224,12 +224,12 @@ print_size_dialog_new (GimpImage *image,
/* the resolution entry */
adj = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
width = gtk_spin_button_new (adj, 1.0, 2);
width = gimp_spin_button_new (adj, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (width), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (width), SB_WIDTH);
adj = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
height = gtk_spin_button_new (adj, 1.0, 2);
height = gimp_spin_button_new (adj, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (height), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (height), SB_WIDTH);

View File

@ -237,7 +237,7 @@ resize_dialog_new (GimpViewable *viewable,
/* the offset sizeentry */
adjustment = (GtkAdjustment *) gtk_adjustment_new (1, 1, 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);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), SB_WIDTH);

View File

@ -157,7 +157,7 @@ gimp_display_shell_rotate_dialog (GimpDisplayShell *shell)
data->rotate_adj = (GtkAdjustment *)
gtk_adjustment_new (shell->rotate_angle, 0.0, 360.0, 1, 15, 0);
spin = gtk_spin_button_new (data->rotate_adj, 1.0, 2);
spin = gimp_spin_button_new (data->rotate_adj, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin), TRUE);
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (spin), TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (spin), TRUE);

View File

@ -166,7 +166,7 @@ gimp_display_shell_scale_dialog (GimpDisplayShell *shell)
data->num_adj = (GtkAdjustment *)
gtk_adjustment_new (num, 1, 256, 1, 8, 0);
spin = gtk_spin_button_new (data->num_adj, 1.0, 0);
spin = gimp_spin_button_new (data->num_adj, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin), TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (spin), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), spin, TRUE, TRUE, 0);
@ -178,7 +178,7 @@ gimp_display_shell_scale_dialog (GimpDisplayShell *shell)
data->denom_adj = (GtkAdjustment *)
gtk_adjustment_new (denom, 1, 256, 1, 8, 0);
spin = gtk_spin_button_new (data->denom_adj, 1.0, 0);
spin = gimp_spin_button_new (data->denom_adj, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin), TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (spin), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), spin, TRUE, TRUE, 0);
@ -193,7 +193,7 @@ gimp_display_shell_scale_dialog (GimpDisplayShell *shell)
gtk_adjustment_new (fabs (shell->other_scale) * 100,
100.0 / 256.0, 25600.0,
10, 50, 0);
spin = gtk_spin_button_new (data->scale_adj, 1.0, 2);
spin = gimp_spin_button_new (data->scale_adj, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin), TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (spin), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), spin, TRUE, TRUE, 0);

View File

@ -1296,7 +1296,7 @@ gimp_gradient_tool_editor_init_endpoint_gui (GimpGradientTool *gradient_tool)
gtk_widget_show (label);
/* the position size entry */
spinbutton = gtk_spin_button_new_with_range (0.0, 0.0, 1.0);
spinbutton = gimp_spin_button_new_with_range (0.0, 0.0, 1.0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 6);

View File

@ -790,7 +790,7 @@ gimp_rectangle_options_prop_dimension_frame_new (GObject *config,
gtk_widget_show (hbox);
adjustment = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 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_width_chars (GTK_ENTRY (spinbutton), SB_WIDTH);

View File

@ -274,7 +274,7 @@ gimp_rotate_tool_dialog (GimpTransformGridTool *tg_tool)
rotate->angle_adj = (GtkAdjustment *)
gtk_adjustment_new (0, -180, 180, 0.1, 15, 0);
button = gtk_spin_button_new (rotate->angle_adj, 1.0, 2);
button = gimp_spin_button_new (rotate->angle_adj, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (button), TRUE);
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (button), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (button), SB_WIDTH);
@ -293,7 +293,7 @@ gimp_rotate_tool_dialog (GimpTransformGridTool *tg_tool)
gtk_widget_show (scale);
adj = (GtkAdjustment *) gtk_adjustment_new (0, -1, 1, 1, 10, 0);
button = gtk_spin_button_new (adj, 1.0, 2);
button = gimp_spin_button_new (adj, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (button), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (button), SB_WIDTH);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2, _("Center _X:"),

View File

@ -202,8 +202,8 @@ gimp_colormap_editor_init (GimpColormapEditor *editor)
editor->index_adjustment = (GtkAdjustment *)
gtk_adjustment_new (0, 0, 0, 1, 10, 0);
editor->index_spinbutton = gtk_spin_button_new (editor->index_adjustment,
1.0, 0);
editor->index_spinbutton = gimp_spin_button_new (editor->index_adjustment,
1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (editor->index_spinbutton),
TRUE);

View File

@ -143,7 +143,7 @@ gimp_histogram_box_init (GimpHistogramBox *box)
/* low spinbutton */
box->low_adj = (GtkAdjustment *)
gtk_adjustment_new (0.0, 0.0, 255.0, 1.0, 16.0, 0.0);
box->low_spinbutton = gtk_spin_button_new (box->low_adj, 1.0, 0);
box->low_spinbutton = gimp_spin_button_new (box->low_adj, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (box->low_spinbutton), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), box->low_spinbutton, FALSE, FALSE, 0);
gtk_widget_show (box->low_spinbutton);
@ -158,7 +158,7 @@ gimp_histogram_box_init (GimpHistogramBox *box)
/* high spinbutton */
box->high_adj = (GtkAdjustment *)
gtk_adjustment_new (255.0, 0.0, 255.0, 1.0, 16.0, 0.0);
box->high_spinbutton = gtk_spin_button_new (box->high_adj, 1.0, 0);
box->high_spinbutton = gimp_spin_button_new (box->high_adj, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (box->high_spinbutton), TRUE);
gtk_box_pack_end (GTK_BOX (hbox), box->high_spinbutton, FALSE, FALSE, 0);
gtk_widget_show (box->high_spinbutton);

View File

@ -261,7 +261,7 @@ gimp_palette_editor_init (GimpPaletteEditor *editor)
editor->columns_adj = (GtkAdjustment *)
gtk_adjustment_new (0, 0, 64, 1, 4, 0);
spinbutton = gtk_spin_button_new (editor->columns_adj, 1.0, 0);
spinbutton = gimp_spin_button_new (editor->columns_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);

View File

@ -130,7 +130,7 @@ static void gimp_spin_scale_setup_mnemonic (GimpSpinScale *scale,
G_DEFINE_TYPE_WITH_PRIVATE (GimpSpinScale, gimp_spin_scale,
GTK_TYPE_SPIN_BUTTON)
GIMP_TYPE_SPIN_BUTTON)
#define parent_class gimp_spin_scale_parent_class

View File

@ -35,12 +35,12 @@ typedef struct _GimpSpinScaleClass GimpSpinScaleClass;
struct _GimpSpinScale
{
GtkSpinButton parent_instance;
GimpSpinButton parent_instance;
};
struct _GimpSpinScaleClass
{
GtkSpinButtonClass parent_class;
GimpSpinButtonClass parent_class;
};

View File

@ -182,12 +182,12 @@ gimp_template_editor_constructed (GObject *object)
gtk_widget_show (table);
adjustment = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
width = gtk_spin_button_new (adjustment, 1.0, 2);
width = gimp_spin_button_new (adjustment, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (width), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (width), SB_WIDTH);
adjustment = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
height = gtk_spin_button_new (adjustment, 1.0, 2);
height = gimp_spin_button_new (adjustment, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (height), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (height), SB_WIDTH);
@ -311,12 +311,12 @@ gimp_template_editor_constructed (GObject *object)
gtk_widget_show (table);
adjustment = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
xres = gtk_spin_button_new (adjustment, 1.0, 2);
xres = gimp_spin_button_new (adjustment, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (xres), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (xres), SB_WIDTH);
adjustment = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
yres = gtk_spin_button_new (adjustment, 1.0, 2);
yres = gimp_spin_button_new (adjustment, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (yres), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (yres), SB_WIDTH);

View File

@ -263,8 +263,8 @@ gimp_text_style_editor_init (GimpTextStyleEditor *editor)
editor->kerning_adjustment =
GTK_ADJUSTMENT (gtk_adjustment_new (0.0, -1000.0, 1000.0, 1.0, 10.0, 0.0));
editor->kerning_spinbutton = gtk_spin_button_new (editor->kerning_adjustment,
1.0, 1);
editor->kerning_spinbutton =
gimp_spin_button_new (editor->kerning_adjustment, 1.0, 1);
gtk_entry_set_width_chars (GTK_ENTRY (editor->kerning_spinbutton), 5);
gtk_box_pack_end (GTK_BOX (editor->lower_hbox), editor->kerning_spinbutton,
FALSE, FALSE, 0);
@ -279,8 +279,8 @@ gimp_text_style_editor_init (GimpTextStyleEditor *editor)
editor->baseline_adjustment =
GTK_ADJUSTMENT (gtk_adjustment_new (0.0, -1000.0, 1000.0, 1.0, 10.0, 0.0));
editor->baseline_spinbutton = gtk_spin_button_new (editor->baseline_adjustment,
1.0, 1);
editor->baseline_spinbutton =
gimp_spin_button_new (editor->baseline_adjustment, 1.0, 1);
gtk_entry_set_width_chars (GTK_ENTRY (editor->baseline_spinbutton), 5);
gtk_box_pack_end (GTK_BOX (editor->lower_hbox), editor->baseline_spinbutton,
FALSE, FALSE, 0);

View File

@ -27,6 +27,7 @@
#include "gimpwidgetstypes.h"
#include "gimpmemsizeentry.h"
#include "gimpspinbutton.h"
#include "gimpwidgets.h"
#include "libgimp/libgimp-intl.h"
@ -200,7 +201,7 @@ gimp_memsize_entry_new (guint64 value,
CAST (upper >> shift),
1, 8, 0);
entry->spinbutton = gtk_spin_button_new (adj, 1.0, 0);
entry->spinbutton = gimp_spin_button_new (adj, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (entry->spinbutton), TRUE);
#undef CAST

View File

@ -34,6 +34,7 @@
#undef GIMP_DISABLE_DEPRECATED
#include "gimpoldwidgets.h"
#include "gimppropwidgets.h"
#include "gimpspinbutton.h"
#include "gimpunitmenu.h"
#define GIMP_DISABLE_DEPRECATED
@ -1281,7 +1282,7 @@ gimp_prop_spin_button_new (GObject *config,
gtk_adjustment_new (value, lower, upper,
step_increment, page_increment, 0);
spinbutton = gtk_spin_button_new (adjustment, step_increment, digits);
spinbutton = gimp_spin_button_new (adjustment, step_increment, digits);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
set_param_spec (G_OBJECT (adjustment), spinbutton, param_spec);

View File

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

View File

@ -28,6 +28,7 @@
#include "libgimpmath/gimpmath.h"
#include "libgimpbase/gimpbase.h"
#include "gimpspinbutton.h"
#include "gimpwidgets.h"
@ -159,7 +160,7 @@ gimp_scale_entry_new_internal (gboolean color_scale,
G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE);
spinbutton = gtk_spin_button_new (spin_adjustment, step_increment, digits);
spinbutton = gimp_spin_button_new (spin_adjustment, step_increment, digits);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_widget_show (spinbutton);

View File

@ -450,8 +450,8 @@ gimp_spin_button_new (GtkObject **adjustment, /* return value */
*adjustment = gtk_adjustment_new (value, lower, upper,
step_increment, page_increment, 0);
spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (*adjustment),
climb_rate, digits);
spinbutton = gimp_spin_button_new (GTK_ADJUSTMENT (*adjustment),
climb_rate, digits);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
@ -508,7 +508,7 @@ gimp_random_seed_new (guint *seed,
adj = (GtkAdjustment *)
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);
@ -741,7 +741,7 @@ gimp_coordinates_new (GimpUnit unit,
GtkWidget *chainbutton;
adjustment = (GtkAdjustment *) 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)

View File

@ -1326,7 +1326,7 @@ bender_new_dialog (GimpDrawable *drawable)
cd->rotate_data = GTK_ADJUSTMENT (gtk_adjustment_new (0, 0.0, 360.0, 1, 45, 0));
gtk_adjustment_set_value (cd->rotate_data, cd->rotation);
spinbutton = gtk_spin_button_new (cd->rotate_data, 0.5, 1);
spinbutton = gimp_spin_button_new (cd->rotate_data, 0.5, 1);
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);

View File

@ -337,7 +337,7 @@ save_dialog (void)
info.description);
adj = (GtkAdjustment *) gtk_adjustment_new (info.spacing, 1, 1000, 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_entry_set_activates_default (GTK_ENTRY (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,

View File

@ -558,7 +558,7 @@ gih_save_dialog (gint32 image_ID)
*/
adjustment = (GtkAdjustment *) gtk_adjustment_new (info.spacing,
1, 1000, 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);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("Spacing (percent):"), 0.0, 0.5,
@ -576,7 +576,7 @@ gih_save_dialog (gint32 image_ID)
adjustment = (GtkAdjustment *)
gtk_adjustment_new (gihparams.cellwidth,
2, gimp_image_width (image_ID), 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_box_pack_start (GTK_BOX (box), spinbutton, FALSE, FALSE, 0);
gtk_widget_show (spinbutton);
@ -600,7 +600,7 @@ gih_save_dialog (gint32 image_ID)
adjustment = (GtkAdjustment *)
gtk_adjustment_new (gihparams.cellheight,
2, gimp_image_height (image_ID), 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_box_pack_start (GTK_BOX (box), spinbutton, FALSE, FALSE, 0);
gtk_widget_show (spinbutton);
@ -631,7 +631,7 @@ gih_save_dialog (gint32 image_ID)
*/
adjustment = (GtkAdjustment *)
gtk_adjustment_new (gihparams.ncells, 1, 1000, 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);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 3,
_("Number of cells:"), 0.0, 0.5,
@ -692,7 +692,7 @@ gih_save_dialog (gint32 image_ID)
*/
adjustment = (GtkAdjustment *)
gtk_adjustment_new (gihparams.dim, 1, GIMP_PIXPIPE_MAXDIM, 1, 1, 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);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 5,
_("Dimension:"), 0.0, 0.5,
@ -714,7 +714,7 @@ gih_save_dialog (gint32 image_ID)
adjustment = (GtkAdjustment *)
gtk_adjustment_new (gihparams.rank[i], 1, 100, 1, 1, 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_table_attach (GTK_TABLE (dimtable), spinbutton, 0, 1, i, i + 1,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);

View File

@ -626,7 +626,7 @@ save_dialog (gint32 image_ID)
adj = (GtkAdjustment *) gtk_adjustment_new (gtmvals.border,
0, 1000, 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);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("_Border:"), 0.0, 0.5,
@ -674,7 +674,7 @@ save_dialog (gint32 image_ID)
adj = (GtkAdjustment *) gtk_adjustment_new (gtmvals.cellpadding,
0, 1000, 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);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 3,
_("Cell-_padding:"), 0.0, 0.5,
@ -689,7 +689,7 @@ save_dialog (gint32 image_ID)
adj = (GtkAdjustment *) gtk_adjustment_new (gtmvals.cellspacing,
0, 1000, 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);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 4,
_("Cell-_spacing:"), 0.0, 0.5,

View File

@ -1532,7 +1532,7 @@ mng_save_dialog (gint32 image_id)
spinbutton_adj = (GtkAdjustment *)
gtk_adjustment_new (mng_data.default_delay,
0, 65000, 10, 100, 0);
spinbutton = gtk_spin_button_new (spinbutton_adj, 1.0, 0);
spinbutton = gimp_spin_button_new (spinbutton_adj, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
g_signal_connect (spinbutton_adj, "value-changed",

View File

@ -1552,8 +1552,8 @@ gimp_resolution_entry_field_init (GimpResolutionEntry *gre,
gref->min_value,
gref->max_value,
1.0, 10.0, 0.0);
gref->spinbutton = gtk_spin_button_new (gref->adjustment,
1.0, digits);
gref->spinbutton = gimp_spin_button_new (gref->adjustment,
1.0, digits);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (gref->spinbutton), TRUE);
if (spinbutton_width > 0)

View File

@ -3451,7 +3451,7 @@ load_dialog (const gchar *filename)
adj = (GtkAdjustment *) gtk_adjustment_new (plvals.resolution,
MIN_RESOLUTION, MAX_RESOLUTION,
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);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("Resolution:"), 0.0, 0.5,
@ -3467,7 +3467,7 @@ load_dialog (const gchar *filename)
adj = (GtkAdjustment *) gtk_adjustment_new (plvals.width,
1, GIMP_MAX_IMAGE_SIZE,
1, 10, 0);
ps_width_spinbutton = gtk_spin_button_new (adj, 1.0, 0);
ps_width_spinbutton = gimp_spin_button_new (adj, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("_Width:"), 0.0, 0.5,
@ -3480,7 +3480,7 @@ load_dialog (const gchar *filename)
adj = (GtkAdjustment *) gtk_adjustment_new (plvals.height,
1, GIMP_MAX_IMAGE_SIZE,
1, 10, 0);
ps_height_spinbutton = gtk_spin_button_new (adj, 1.0, 0);
ps_height_spinbutton = gimp_spin_button_new (adj, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
_("_Height:"), 0.0, 0.5,
@ -3672,7 +3672,7 @@ save_dialog (void)
vals->adjustment[0] = (GtkAdjustment *)
gtk_adjustment_new (psvals.width,
1e-5, GIMP_MAX_IMAGE_SIZE, 1, 10, 0);
spinbutton = gtk_spin_button_new (vals->adjustment[0], 1.0, 2);
spinbutton = gimp_spin_button_new (vals->adjustment[0], 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("_Width:"), 0.0, 0.5,
@ -3684,7 +3684,7 @@ save_dialog (void)
vals->adjustment[1] = (GtkAdjustment *)
gtk_adjustment_new (psvals.height,
1e-5, GIMP_MAX_IMAGE_SIZE, 1, 10, 0);
spinbutton = gtk_spin_button_new (vals->adjustment[1], 1.0, 2);
spinbutton = gimp_spin_button_new (vals->adjustment[1], 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("_Height:"), 0.0, 0.5,
@ -3696,7 +3696,7 @@ save_dialog (void)
vals->adjustment[2] = (GtkAdjustment *)
gtk_adjustment_new (psvals.x_offset,
0.0, GIMP_MAX_IMAGE_SIZE, 1, 10, 0);
spinbutton = gtk_spin_button_new (vals->adjustment[2], 1.0, 2);
spinbutton = gimp_spin_button_new (vals->adjustment[2], 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
_("_X offset:"), 0.0, 0.5,
@ -3708,7 +3708,7 @@ save_dialog (void)
vals->adjustment[3] = (GtkAdjustment *)
gtk_adjustment_new (psvals.y_offset,
0.0, GIMP_MAX_IMAGE_SIZE, 1, 10, 0);
spinbutton = gtk_spin_button_new (vals->adjustment[3], 1.0, 2);
spinbutton = gimp_spin_button_new (vals->adjustment[3], 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 3,
_("_Y offset:"), 0.0, 0.5,
@ -3809,7 +3809,7 @@ save_dialog (void)
adj = (GtkAdjustment *) gtk_adjustment_new (psvals.preview_size,
0, 1024, 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);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("Preview _size:"), 1.0, 0.5,

View File

@ -802,7 +802,7 @@ load_dialog (const gchar *filename,
gtk_widget_show (hbox);
adj = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
spinbutton = gtk_spin_button_new (adj, 1.0, 2);
spinbutton = gimp_spin_button_new (adj, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
@ -856,7 +856,7 @@ load_dialog (const gchar *filename,
(gdouble) GIMP_MIN_IMAGE_SIZE / (gdouble) svg_width,
(gdouble) GIMP_MAX_IMAGE_SIZE / (gdouble) svg_width,
0.01, 0.1, 0);
spinbutton = gtk_spin_button_new (xadj, 0.01, 4);
spinbutton = gimp_spin_button_new (xadj, 0.01, 4);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
gtk_table_attach_defaults (GTK_TABLE (table2), spinbutton, 0, 1, 0, 1);
@ -878,7 +878,7 @@ load_dialog (const gchar *filename,
(gdouble) GIMP_MIN_IMAGE_SIZE / (gdouble) svg_height,
(gdouble) GIMP_MAX_IMAGE_SIZE / (gdouble) svg_height,
0.01, 0.1, 0);
spinbutton = gtk_spin_button_new (yadj, 0.01, 4);
spinbutton = gimp_spin_button_new (yadj, 0.01, 4);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
gtk_table_attach_defaults (GTK_TABLE (table2), spinbutton, 0, 1, 1, 2);

View File

@ -596,7 +596,7 @@ load_dialog (const gchar *filename)
gtk_widget_show (hbox);
adj = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
spinbutton = gtk_spin_button_new (adj, 1.0, 2);
spinbutton = gimp_spin_button_new (adj, 1.0, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
@ -650,7 +650,7 @@ load_dialog (const gchar *filename)
(gdouble) GIMP_MIN_IMAGE_SIZE / (gdouble) wmf_width,
(gdouble) GIMP_MAX_IMAGE_SIZE / (gdouble) wmf_width,
0.01, 0.1, 0);
spinbutton = gtk_spin_button_new (xadj, 0.01, 4);
spinbutton = gimp_spin_button_new (xadj, 0.01, 4);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
gtk_table_attach_defaults (GTK_TABLE (table2), spinbutton, 0, 1, 0, 1);
@ -672,7 +672,7 @@ load_dialog (const gchar *filename)
(gdouble) GIMP_MIN_IMAGE_SIZE / (gdouble) wmf_height,
(gdouble) GIMP_MAX_IMAGE_SIZE / (gdouble) wmf_height,
0.01, 0.1, 0);
spinbutton = gtk_spin_button_new (yadj, 0.01, 4);
spinbutton = gimp_spin_button_new (yadj, 0.01, 4);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
gtk_table_attach_defaults (GTK_TABLE (table2), spinbutton, 0, 1, 1, 2);

View File

@ -1325,7 +1325,7 @@ save_dialog (gint32 drawable_ID)
gtk_adjustment_new (xsvals.x_hot, 0,
gimp_drawable_width (drawable_ID) - 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);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("Hot spot _X:"), 0.0, 0.5,
@ -1339,7 +1339,7 @@ save_dialog (gint32 drawable_ID)
gtk_adjustment_new (xsvals.y_hot, 0,
gimp_drawable_height (drawable_ID) - 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);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("Hot spot _Y:"), 0.0, 0.5,

View File

@ -1094,7 +1094,7 @@ save_dialog (const gint32 image_ID,
adjustment = (GtkAdjustment *)
gtk_adjustment_new (xmcparas.x, x1, x2, 1, 5, 0);
tmpwidget = gtk_spin_button_new (adjustment, 1.0, 0);
tmpwidget = gimp_spin_button_new (adjustment, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (tmpwidget), TRUE);
g_value_set_double (&val, 1.0);
g_object_set_property (G_OBJECT (tmpwidget), "xalign", &val);/* align right*/
@ -1117,7 +1117,7 @@ save_dialog (const gint32 image_ID,
adjustment = (GtkAdjustment *)
gtk_adjustment_new (xmcparas.y, y1, y2, 1, 5, 0);
tmpwidget = gtk_spin_button_new (adjustment, 1.0, 0);
tmpwidget = gimp_spin_button_new (adjustment, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (tmpwidget), TRUE);
g_value_set_double (&val, 1.0);
g_object_set_property (G_OBJECT (tmpwidget), "xalign", &val);/* align right*/
@ -1223,7 +1223,7 @@ save_dialog (const gint32 image_ID,
adjustment = (GtkAdjustment *)
gtk_adjustment_new (xmcvals.delay, CURSOR_MINIMUM_DELAY,
CURSOR_MAX_DELAY, 1, 5, 0);
tmpwidget = gtk_spin_button_new (adjustment, 1.0, 0);
tmpwidget = gimp_spin_button_new (adjustment, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (tmpwidget), TRUE);
g_value_set_double (&val, 1.0);
g_object_set_property (G_OBJECT (tmpwidget), "xalign", &val);/* align right*/

View File

@ -1001,7 +1001,7 @@ create_selection_tab (GtkWidget *notebook,
/* Film height */
adj = GTK_ADJUSTMENT (gtk_adjustment_new (filmvals.film_height, 10,
GIMP_MAX_IMAGE_SIZE, 1, 10, 0));
spinbutton = gtk_spin_button_new (adj, 1, 0);
spinbutton = gimp_spin_button_new (adj, 1, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
@ -1060,7 +1060,7 @@ create_selection_tab (GtkWidget *notebook,
/* Startindex */
adj = GTK_ADJUSTMENT (gtk_adjustment_new (filmvals.number_start, 0,
GIMP_MAX_IMAGE_SIZE, 1, 10, 0));
spinbutton = gtk_spin_button_new (adj, 1, 0);
spinbutton = gimp_spin_button_new (adj, 1, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
label = gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,

View File

@ -1568,7 +1568,7 @@ smp_dialog (void)
data = gtk_adjustment_new ((gfloat)g_values.lvl_in_min, 0.0, 254.0, 1, 10, 0);
g_di.adj_lvl_in_min = GTK_ADJUSTMENT (data);
spinbutton = gtk_spin_button_new (g_di.adj_lvl_in_min, 0.5, 0);
spinbutton = gimp_spin_button_new (g_di.adj_lvl_in_min, 0.5, 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);
@ -1581,7 +1581,7 @@ smp_dialog (void)
data = gtk_adjustment_new ((gfloat)g_values.lvl_in_gamma, 0.1, 10.0, 0.02, 0.2, 0);
g_di.adj_lvl_in_gamma = GTK_ADJUSTMENT (data);
spinbutton = gtk_spin_button_new (g_di.adj_lvl_in_gamma, 0.5, 2);
spinbutton = gimp_spin_button_new (g_di.adj_lvl_in_gamma, 0.5, 2);
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);
@ -1594,7 +1594,7 @@ smp_dialog (void)
data = gtk_adjustment_new ((gfloat)g_values.lvl_in_max, 1.0, 255.0, 1, 10, 0);
g_di.adj_lvl_in_max = GTK_ADJUSTMENT (data);
spinbutton = gtk_spin_button_new (g_di.adj_lvl_in_max, 0.5, 0);
spinbutton = gimp_spin_button_new (g_di.adj_lvl_in_max, 0.5, 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);
@ -1619,7 +1619,7 @@ smp_dialog (void)
data = gtk_adjustment_new ((gfloat)g_values.lvl_out_min, 0.0, 254.0, 1, 10, 0);
g_di.adj_lvl_out_min = GTK_ADJUSTMENT (data);
spinbutton = gtk_spin_button_new (g_di.adj_lvl_out_min, 0.5, 0);
spinbutton = gimp_spin_button_new (g_di.adj_lvl_out_min, 0.5, 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);
@ -1632,7 +1632,7 @@ smp_dialog (void)
data = gtk_adjustment_new ((gfloat)g_values.lvl_out_max, 0.0, 255.0, 1, 10, 0);
g_di.adj_lvl_out_max = GTK_ADJUSTMENT (data);
spinbutton = gtk_spin_button_new (g_di.adj_lvl_out_max, 0.5, 0);
spinbutton = gimp_spin_button_new (g_di.adj_lvl_out_max, 0.5, 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);

View File

@ -471,7 +471,7 @@ dialog (gint32 drawable_id)
adj = GTK_ADJUSTMENT (gtk_adjustment_new (config.ntries,
1, 1024, 1, 10, 0));
spinbutton = gtk_spin_button_new (adj, 1, 0);
spinbutton = gimp_spin_button_new (adj, 1, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (sizeentry), 0, 2,

View File

@ -241,7 +241,7 @@ new_unit_dialog (GtkWidget *main_dialog,
gimp_unit_get_factor (template) : 1.0,
GIMP_MIN_RESOLUTION, GIMP_MAX_RESOLUTION,
0.01, 0.1, 0.0);
spinbutton = gtk_spin_button_new (factor_adj, 0.01, 5);
spinbutton = gimp_spin_button_new (factor_adj, 0.01, 5);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("_Factor:"), 0.0, 0.5,
@ -253,7 +253,7 @@ new_unit_dialog (GtkWidget *main_dialog,
gtk_adjustment_new ((template != GIMP_UNIT_PIXEL) ?
gimp_unit_get_digits (template) : 2.0,
0, 5, 1, 1, 0);
spinbutton = gtk_spin_button_new (digits_adj, 0, 0);
spinbutton = gimp_spin_button_new (digits_adj, 0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
_("_Digits:"), 0.0, 0.5,

View File

@ -294,7 +294,7 @@ webpage_dialog (void)
adjustment = (GtkAdjustment *)
gtk_adjustment_new (webpagevals.width,
1, 8192, 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_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
gtk_widget_show (spinbutton);

View File

@ -2006,7 +2006,7 @@ save_dialog (gint32 image_id,
G_CALLBACK (transindex_clicked), 0);
gtk_widget_show (check);
spin = gtk_spin_button_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 255, 1, 1, 0)), 1, 0);
spin = gimp_spin_button_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 255, 1, 1, 0)), 1, 0);
gtk_box_pack_start (GTK_BOX (hbox), spin, 1, 1, 0);
gtk_spin_button_set_update_policy (GTK_SPIN_BUTTON (spin),
GTK_UPDATE_IF_VALID);
@ -2154,7 +2154,7 @@ save_dialog (gint32 image_id,
(GtkAttachOptions)(0), 0, 0);
gtk_misc_set_alignment (GTK_MISC (label), 1, 0.5);
spin = gtk_spin_button_new (GTK_ADJUSTMENT (gtk_adjustment_new (dds_write_vals.gamma, 1e-05, 100, 0.1, 0.5, 0)), 1, 1);
spin = gimp_spin_button_new (GTK_ADJUSTMENT (gtk_adjustment_new (dds_write_vals.gamma, 1e-05, 100, 0.1, 0.5, 0)), 1, 1);
gtk_table_attach (GTK_TABLE (table), spin, 1, 2, 4, 5,
(GtkAttachOptions)(GTK_EXPAND | GTK_FILL),
(GtkAttachOptions)(GTK_EXPAND), 0, 0);
@ -2183,7 +2183,7 @@ save_dialog (gint32 image_id,
(GtkAttachOptions)(0), 0, 0);
gtk_misc_set_alignment (GTK_MISC (label), 1, 0.5);
spin = gtk_spin_button_new (GTK_ADJUSTMENT (gtk_adjustment_new (dds_write_vals.alpha_test_threshold, 0, 1, 0.01, 0.1, 0)), 1, 2);
spin = gimp_spin_button_new (GTK_ADJUSTMENT (gtk_adjustment_new (dds_write_vals.alpha_test_threshold, 0, 1, 0.01, 0.1, 0)), 1, 2);
gtk_table_attach (GTK_TABLE (table), spin, 1, 2, 6, 7,
(GtkAttachOptions)(GTK_EXPAND | GTK_FILL),
(GtkAttachOptions)(GTK_EXPAND), 0, 0);

View File

@ -897,7 +897,7 @@ load_dialog (const gchar *filename)
* But for now you can set a start- and a end-frame:
*/
adj = (GtkAdjustment *) gtk_adjustment_new (from_frame, 1, nframes, 1, 10, 0);
spinbutton = gtk_spin_button_new (adj, 1, 0);
spinbutton = gimp_spin_button_new (adj, 1, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
C_("frame-range", "From:"), 0.0, 0.5,
@ -907,7 +907,7 @@ load_dialog (const gchar *filename)
&from_frame);
adj = (GtkAdjustment *) gtk_adjustment_new (to_frame, 1, nframes, 1, 10, 0);
spinbutton = gtk_spin_button_new (adj, 1, 0);
spinbutton = gimp_spin_button_new (adj, 1, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
C_("frame-range", "To:"), 0.0, 0.5,
@ -955,7 +955,7 @@ save_dialog (gint32 image_id)
* But for now you can set a start- and a end-frame:
*/
adj = (GtkAdjustment *) gtk_adjustment_new (from_frame, 1, nframes, 1, 10, 0);
spinbutton = gtk_spin_button_new (adj, 1, 0);
spinbutton = gimp_spin_button_new (adj, 1, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
C_("frame-range", "From:"), 0.0, 0.5,
@ -965,7 +965,7 @@ save_dialog (gint32 image_id)
&from_frame);
adj = (GtkAdjustment *) gtk_adjustment_new (to_frame, 1, nframes, 1, 10, 0);
spinbutton = gtk_spin_button_new (adj, 1, 0);
spinbutton = gimp_spin_button_new (adj, 1, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
C_("frame-range", "To:"), 0.0, 0.5,

View File

@ -1016,7 +1016,7 @@ save_dialog (void)
DEFAULT_RESTART_MCU_ROWS : jsvals.restart),
1.0, 64.0, 1.0, 1.0, 0);
pg.restart = restart_markers_scale = spinbutton =
gtk_spin_button_new (pg.scale_data, 1.0, 0);
gimp_spin_button_new (pg.scale_data, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_table_attach (GTK_TABLE (table), spinbutton, 5, 6, 1, 2,
GTK_FILL, GTK_FILL, 0, 0);

View File

@ -279,7 +279,7 @@ save_dialog (WebPSaveParams *params,
adj_kf = (GtkAdjustment *) gtk_adjustment_new (params->kf_distance,
0.0, 10000.0,
1.0, 10.0, 0.0);
kf_distance = gtk_spin_button_new (adj_kf, 1, 0);
kf_distance = gimp_spin_button_new (adj_kf, 1, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (kf_distance), TRUE);
gtk_box_pack_start (GTK_BOX (hbox_kf), kf_distance, FALSE, FALSE, 0);
gtk_widget_show (kf_distance);
@ -336,7 +336,7 @@ save_dialog (WebPSaveParams *params,
/* default delay */
adj = (GtkAdjustment *) gtk_adjustment_new (params->delay,
1, 10000, 1, 10, 0);
delay = gtk_spin_button_new (adj, 1, 0);
delay = gimp_spin_button_new (adj, 1, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (delay), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), delay, FALSE, FALSE, 0);
gtk_widget_show (delay);

View File

@ -2108,7 +2108,7 @@ value_pair_create (gpointer data,
(upper - lower) / 100,
(upper - lower) / 10,
0.0);
value_pair->spin = gtk_spin_button_new (value_pair->adjustment, 1.0, 3);
value_pair->spin = gimp_spin_button_new (value_pair->adjustment, 1.0, 3);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (value_pair->spin), TRUE);
gtk_widget_set_size_request (value_pair->spin, 72, -1);

View File

@ -40,7 +40,7 @@ create_spin_button_in_table(GtkWidget *table, GtkWidget *label,
int row, int col, int value, int min, int max)
{
GtkObject *adj = gtk_adjustment_new(value, min, max, 1, 10, 0);
GtkWidget *button = gtk_spin_button_new(GTK_ADJUSTMENT(adj), 1, 0);
GtkWidget *button = gimp_spin_button_new(GTK_ADJUSTMENT(adj), 1, 0);
gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(button), TRUE);
if (label)
gtk_label_set_mnemonic_widget(GTK_LABEL(label), button);

View File

@ -1548,8 +1548,8 @@ spin_button_new (GtkAdjustment **adjustment, /* return value */
gtk_adjustment_new (value, lower, upper,
step_increment, page_increment, 0);
spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (*adjustment),
climb_rate, digits);
spinbutton = gimp_spin_button_new (GTK_ADJUSTMENT (*adjustment),
climb_rate, digits);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);

View File

@ -404,8 +404,8 @@ spin_button_new (GtkAdjustment **adjustment, /* return value */
gtk_adjustment_new (value, lower, upper,
step_increment, page_increment, 0);
spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (*adjustment),
climb_rate, digits);
spinbutton = gimp_spin_button_new (GTK_ADJUSTMENT (*adjustment),
climb_rate, digits);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);

View File

@ -271,7 +271,7 @@ print_size_frame (PrintData *data,
gtk_table_set_col_spacing (GTK_TABLE (entry), 2, 6);
adj = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
height = gtk_spin_button_new (adj, 1, 2);
height = gimp_spin_button_new (adj, 1, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (height), TRUE);
gimp_size_entry_add_field (GIMP_SIZE_ENTRY (entry),
GTK_SPIN_BUTTON (height), NULL);
@ -315,7 +315,7 @@ print_size_frame (PrintData *data,
gtk_table_set_col_spacing (GTK_TABLE (entry), 2, 6);
adj = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
height = gtk_spin_button_new (adj, 1, 2);
height = gimp_spin_button_new (adj, 1, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (height), TRUE);
gimp_size_entry_add_field (GIMP_SIZE_ENTRY (entry),
GTK_SPIN_BUTTON (height), NULL);
@ -402,7 +402,7 @@ print_offset_frame (PrintData *data,
/* left */
info.left_adj = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
spinner = gtk_spin_button_new (info.left_adj, 1, 2);
spinner = gimp_spin_button_new (info.left_adj, 1, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinner), TRUE);
gimp_size_entry_add_field (GIMP_SIZE_ENTRY (entry),
@ -419,7 +419,7 @@ print_offset_frame (PrintData *data,
/* right */
info.right_adj = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
spinner = gtk_spin_button_new (info.right_adj, 1, 2);
spinner = gimp_spin_button_new (info.right_adj, 1, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinner), TRUE);
g_signal_connect (info.right_adj, "value-changed",
@ -439,7 +439,7 @@ print_offset_frame (PrintData *data,
/* top */
info.top_adj = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
spinner = gtk_spin_button_new (info.top_adj, 1, 2);
spinner = gimp_spin_button_new (info.top_adj, 1, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinner), TRUE);
gimp_size_entry_add_field (GIMP_SIZE_ENTRY (entry),
@ -456,7 +456,7 @@ print_offset_frame (PrintData *data,
/* bottom */
info.bottom_adj = (GtkAdjustment *) gtk_adjustment_new (1, 1, 1, 1, 10, 0);
spinner = gtk_spin_button_new (info.bottom_adj, 1, 2);
spinner = gimp_spin_button_new (info.bottom_adj, 1, 2);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinner), TRUE);
g_signal_connect (info.bottom_adj, "value-changed",

View File

@ -697,7 +697,7 @@ shoot_dialog (GdkScreen **screen)
adj = (GtkAdjustment *)
gtk_adjustment_new (shootvals.select_delay,
0.0, 100.0, 1.0, 5.0, 0.0);
spinner = gtk_spin_button_new (adj, 0, 0);
spinner = gimp_spin_button_new (adj, 0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinner), TRUE);
gtk_table_attach (GTK_TABLE (table), spinner, 1, 2, 0, 1,
GTK_SHRINK, GTK_SHRINK, 0, 0);
@ -760,7 +760,7 @@ shoot_dialog (GdkScreen **screen)
adj = (GtkAdjustment *)
gtk_adjustment_new (shootvals.screenshot_delay,
0.0, 100.0, 1.0, 5.0, 0.0);
spinner = gtk_spin_button_new (adj, 0, 0);
spinner = gimp_spin_button_new (adj, 0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinner), TRUE);
gtk_table_attach (GTK_TABLE (table), spinner, 1, 2, 0, 1,
GTK_SHRINK, GTK_SHRINK, 0, 0);

View File

@ -437,9 +437,9 @@ script_fu_interface (SFScript *script,
arg->default_value.sfa_adjustment.step,
arg->default_value.sfa_adjustment.page,
0);
widget = gtk_spin_button_new (arg->value.sfa_adjustment.adj,
arg->default_value.sfa_adjustment.step,
arg->default_value.sfa_adjustment.digits);
widget = gimp_spin_button_new (arg->value.sfa_adjustment.adj,
arg->default_value.sfa_adjustment.step,
arg->default_value.sfa_adjustment.digits);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (widget), TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (widget), TRUE);
break;

View File

@ -167,7 +167,7 @@
</packing>
</child>
<child>
<object class="GtkSpinButton" id="delay-spin">
<object class="GimpSpinButton" id="delay-spin">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">&#x25CF;</property>

View File

@ -157,7 +157,7 @@
</packing>
</child>
<child>
<object class="GtkSpinButton" id="compression-level-spin">
<object class="GimpSpinButton" id="compression-level-spin">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_tooltip">True</property>