gimp r26778 - in trunk: . app/dialogs app/display app/tools app/widgets libgimpwidgets plug-ins/common plug-ins/file-jpeg plug-ins/lighting plug-ins/map-object
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26778 - in trunk: . app/dialogs app/display app/tools app/widgets libgimpwidgets plug-ins/common plug-ins/file-jpeg plug-ins/lighting plug-ins/map-object
- Date: Tue, 26 Aug 2008 19:32:14 +0000 (UTC)
Author: martinn
Date: Tue Aug 26 19:32:14 2008
New Revision: 26778
URL: http://svn.gnome.org/viewvc/gimp?rev=26778&view=rev
Log:
2008-08-26 Martin Nordholts <martinn svn gnome org>
* libgimpwidgets/gimpwidgets.c
* plug-ins/common/file-xbm.c
* plug-ins/common/file-wmf.c
* plug-ins/common/file-svg.c
* plug-ins/common/file-gih.c
* plug-ins/common/blur-motion.c
* plug-ins/file-jpeg/jpeg-save.c
* plug-ins/lighting/lighting-ui.c
* plug-ins/map-object/map-object-ui.c
* app/tools/gimpsheartool.c
* app/tools/gimpaligntool.c
* app/tools/gimprotatetool.c
* app/tools/gimplevelstool.c
* app/dialogs/resize-dialog.c
* app/dialogs/offset-dialog.c
* app/widgets/gimppaletteeditor.c
* app/widgets/gimpcolormapeditor.c
* app/dialogs/layer-options-dialog.c
* app/display/gimpdisplayshell-scale-dialog.c: Pass page_size = 0
to gimp_spin_button_new() to adapt to new and correct value
clamping in GTK+.
Modified:
trunk/ChangeLog
trunk/app/dialogs/layer-options-dialog.c
trunk/app/dialogs/offset-dialog.c
trunk/app/dialogs/resize-dialog.c
trunk/app/display/gimpdisplayshell-scale-dialog.c
trunk/app/tools/gimpaligntool.c
trunk/app/tools/gimplevelstool.c
trunk/app/tools/gimprotatetool.c
trunk/app/tools/gimpsheartool.c
trunk/app/widgets/gimpcolormapeditor.c
trunk/app/widgets/gimppaletteeditor.c
trunk/libgimpwidgets/gimpwidgets.c
trunk/plug-ins/common/blur-motion.c
trunk/plug-ins/common/file-gih.c
trunk/plug-ins/common/file-svg.c
trunk/plug-ins/common/file-wmf.c
trunk/plug-ins/common/file-xbm.c
trunk/plug-ins/file-jpeg/jpeg-save.c
trunk/plug-ins/lighting/lighting-ui.c
trunk/plug-ins/map-object/map-object-ui.c
Modified: trunk/app/dialogs/layer-options-dialog.c
==============================================================================
--- trunk/app/dialogs/layer-options-dialog.c (original)
+++ trunk/app/dialogs/layer-options-dialog.c Tue Aug 26 19:32:14 2008
@@ -150,7 +150,7 @@
/* The size sizeentry */
spinbutton = gimp_spin_button_new (&adjustment,
- 1, 1, 1, 1, 10, 1,
+ 1, 1, 1, 1, 10, 0,
1, 2);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
Modified: trunk/app/dialogs/offset-dialog.c
==============================================================================
--- trunk/app/dialogs/offset-dialog.c (original)
+++ trunk/app/dialogs/offset-dialog.c Tue Aug 26 19:32:14 2008
@@ -162,7 +162,7 @@
gtk_widget_show (vbox);
spinbutton = gimp_spin_button_new (&adjustment,
- 1, 1, 1, 1, 10, 1,
+ 1, 1, 1, 1, 10, 0,
1, 2);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
Modified: trunk/app/dialogs/resize-dialog.c
==============================================================================
--- trunk/app/dialogs/resize-dialog.c (original)
+++ trunk/app/dialogs/resize-dialog.c Tue Aug 26 19:32:14 2008
@@ -204,7 +204,7 @@
/* the offset sizeentry */
spinbutton = gimp_spin_button_new (&adjustment,
- 1, 1, 1, 1, 10, 1,
+ 1, 1, 1, 1, 10, 0,
1, 2);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), SB_WIDTH);
Modified: trunk/app/display/gimpdisplayshell-scale-dialog.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-scale-dialog.c (original)
+++ trunk/app/display/gimpdisplayshell-scale-dialog.c Tue Aug 26 19:32:14 2008
@@ -163,7 +163,7 @@
spin = gimp_spin_button_new (&data->num_adj,
num, 1, 256,
- 1, 8, 1, 1, 0);
+ 1, 8, 0, 1, 0);
gtk_entry_set_activates_default (GTK_ENTRY (spin), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), spin, TRUE, TRUE, 0);
gtk_widget_show (spin);
@@ -174,7 +174,7 @@
spin = gimp_spin_button_new (&data->denom_adj,
denom, 1, 256,
- 1, 8, 1, 1, 0);
+ 1, 8, 0, 1, 0);
gtk_entry_set_activates_default (GTK_ENTRY (spin), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), spin, TRUE, TRUE, 0);
gtk_widget_show (spin);
Modified: trunk/app/tools/gimpaligntool.c
==============================================================================
--- trunk/app/tools/gimpaligntool.c (original)
+++ trunk/app/tools/gimpaligntool.c Tue Aug 26 19:32:14 2008
@@ -884,9 +884,9 @@
spinbutton = gimp_spin_button_new (&align_tool->horz_offset_adjustment,
0,
- -100000.,
- 100000.,
- 1., 20., 20., 1., 0);
+ -100000,
+ 100000,
+ 1, 20, 0, 1, 0);
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
g_signal_connect (align_tool->horz_offset_adjustment, "value-changed",
G_CALLBACK (gimp_double_adjustment_update),
Modified: trunk/app/tools/gimplevelstool.c
==============================================================================
--- trunk/app/tools/gimplevelstool.c (original)
+++ trunk/app/tools/gimplevelstool.c Tue Aug 26 19:32:14 2008
@@ -509,7 +509,7 @@
/* input gamma spin */
spinbutton = gimp_spin_button_new (&data,
config->gamma[config->channel],
- 0.1, 10, 0.01, 0.1, 1, 0.5, 2);
+ 0.1, 10, 0.01, 0.1, 0, 0.5, 2);
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, TRUE, FALSE, 0);
gimp_help_set_help_data (spinbutton, _("Gamma"), NULL);
gtk_widget_show (spinbutton);
Modified: trunk/app/tools/gimprotatetool.c
==============================================================================
--- trunk/app/tools/gimprotatetool.c (original)
+++ trunk/app/tools/gimprotatetool.c Tue Aug 26 19:32:14 2008
@@ -199,7 +199,7 @@
GTK_EXPAND | GTK_FILL, GTK_SHRINK, 0, 0);
gtk_widget_show (scale);
- button = gimp_spin_button_new (&adj, 0, -1, 1, 1, 10, 1, 1, 2);
+ button = gimp_spin_button_new (&adj, 0, -1, 1, 1, 10, 0, 1, 2);
gtk_entry_set_width_chars (GTK_ENTRY (button), SB_WIDTH);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2, _("Center _X:"),
0.0, 0.5, button, 1, TRUE);
Modified: trunk/app/tools/gimpsheartool.c
==============================================================================
--- trunk/app/tools/gimpsheartool.c (original)
+++ trunk/app/tools/gimpsheartool.c Tue Aug 26 19:32:14 2008
@@ -129,7 +129,7 @@
gtk_widget_show (table);
button = gimp_spin_button_new (&shear->x_adj,
- 0, -65536, 65536, 1, 15, 1, 1, 0);
+ 0, -65536, 65536, 1, 15, 0, 1, 0);
gtk_entry_set_width_chars (GTK_ENTRY (button), SB_WIDTH);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0, _("Shear magnitude _X:"),
0.0, 0.5, button, 1, TRUE);
@@ -139,7 +139,7 @@
tr_tool);
button = gimp_spin_button_new (&shear->y_adj,
- 0, -65536, 65536, 1, 15, 1, 1, 0);
+ 0, -65536, 65536, 1, 15, 0, 1, 0);
gtk_entry_set_width_chars (GTK_ENTRY (button), SB_WIDTH);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1, _("Shear magnitude _Y:"),
0.0, 0.5, button, 1, TRUE);
Modified: trunk/app/widgets/gimpcolormapeditor.c
==============================================================================
--- trunk/app/widgets/gimpcolormapeditor.c (original)
+++ trunk/app/widgets/gimpcolormapeditor.c Tue Aug 26 19:32:14 2008
@@ -219,7 +219,7 @@
gtk_widget_show (table);
editor->index_spinbutton = gimp_spin_button_new (&adj,
- 0, 0, 0, 1, 10, 10, 1.0, 0);
+ 0, 0, 0, 1, 10, 0, 1.0, 0);
editor->index_adjustment = GTK_ADJUSTMENT (adj);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("Color index:"), 0.0, 0.5,
Modified: trunk/app/widgets/gimppaletteeditor.c
==============================================================================
--- trunk/app/widgets/gimppaletteeditor.c (original)
+++ trunk/app/widgets/gimppaletteeditor.c Tue Aug 26 19:32:14 2008
@@ -264,7 +264,7 @@
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
- spinbutton = gimp_spin_button_new (&adj, 0, 0, 64, 1, 4, 4, 1, 0);
+ spinbutton = gimp_spin_button_new (&adj, 0, 0, 64, 1, 4, 0, 1, 0);
editor->columns_data = GTK_ADJUSTMENT (adj);
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
gtk_widget_show (spinbutton);
Modified: trunk/libgimpwidgets/gimpwidgets.c
==============================================================================
--- trunk/libgimpwidgets/gimpwidgets.c (original)
+++ trunk/libgimpwidgets/gimpwidgets.c Tue Aug 26 19:32:14 2008
@@ -728,7 +728,7 @@
GtkWidget *sizeentry;
GtkWidget *chainbutton;
- spinbutton = gimp_spin_button_new (&adjustment, 1, 0, 1, 1, 10, 1, 1, 2);
+ spinbutton = gimp_spin_button_new (&adjustment, 1, 0, 1, 1, 10, 0, 1, 2);
if (spinbutton_width > 0)
{
Modified: trunk/plug-ins/common/blur-motion.c
==============================================================================
--- trunk/plug-ins/common/blur-motion.c (original)
+++ trunk/plug-ins/common/blur-motion.c Tue Aug 26 19:32:14 2008
@@ -1082,7 +1082,7 @@
G_CALLBACK (gimp_preview_invalidate),
preview);
- spinbutton = gimp_spin_button_new (&adj, 1, 0, 1, 1, 10, 1, 1, 2);
+ spinbutton = gimp_spin_button_new (&adj, 1, 0, 1, 1, 10, 0, 1, 2);
gimp_size_entry_add_field (GIMP_SIZE_ENTRY (entry),
GTK_SPIN_BUTTON (spinbutton), NULL);
gtk_table_attach_defaults (GTK_TABLE (entry), spinbutton, 1, 2, 0, 1);
Modified: trunk/plug-ins/common/file-gih.c
==============================================================================
--- trunk/plug-ins/common/file-gih.c (original)
+++ trunk/plug-ins/common/file-gih.c Tue Aug 26 19:32:14 2008
@@ -906,7 +906,7 @@
* Spacing: __
*/
spinbutton = gimp_spin_button_new (&adjustment, info.spacing,
- 1, 1000, 1, 10, 10, 1, 0);
+ 1, 1000, 1, 10, 0, 1, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("Spacing (percent):"), 0.0, 0.5,
spinbutton, 1, TRUE);
@@ -936,7 +936,7 @@
spinbutton = gimp_spin_button_new (&adjustment,
gihparams.cellwidth,
- 2, gimp_image_width (image_ID), 1, 1, 1,
+ 2, gimp_image_width (image_ID), 1, 1, 0,
1, 0);
gtk_box_pack_start (GTK_BOX (box), spinbutton, FALSE, FALSE, 0);
gtk_widget_show (spinbutton);
@@ -959,7 +959,7 @@
spinbutton = gimp_spin_button_new (&adjustment,
gihparams.cellheight,
- 2, gimp_image_height (image_ID), 1, 1, 1,
+ 2, gimp_image_height (image_ID), 1, 1, 0,
1, 0);
gtk_box_pack_start (GTK_BOX (box), spinbutton, FALSE, FALSE, 0);
gtk_widget_show (spinbutton);
@@ -989,7 +989,7 @@
* Number of cells: ___
*/
spinbutton = gimp_spin_button_new (&adjustment,
- gihparams.ncells, 1, 1000, 1, 10, 10,
+ gihparams.ncells, 1, 1000, 1, 10, 0,
1, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 3,
_("Number of cells:"), 0.0, 0.5,
@@ -1049,7 +1049,7 @@
* Dimension: ___
*/
spinbutton = gimp_spin_button_new (&adjustment, gihparams.dim,
- 1, GIMP_PIXPIPE_MAXDIM, 1, 1, 1, 1, 0);
+ 1, GIMP_PIXPIPE_MAXDIM, 1, 1, 0, 1, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 5,
_("Dimension:"), 0.0, 0.5,
spinbutton, 1, TRUE);
@@ -1069,7 +1069,7 @@
gint j;
spinbutton = gimp_spin_button_new (&adjustment,
- gihparams.rank[i], 1, 100, 1, 1, 1,
+ gihparams.rank[i], 1, 100, 1, 1, 0,
1, 0);
gtk_table_attach (GTK_TABLE (dimtable), spinbutton, 0, 1, i, i + 1,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
Modified: trunk/plug-ins/common/file-svg.c
==============================================================================
--- trunk/plug-ins/common/file-svg.c (original)
+++ trunk/plug-ins/common/file-svg.c Tue Aug 26 19:32:14 2008
@@ -809,7 +809,7 @@
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
gtk_widget_show (hbox);
- spinbutton = gimp_spin_button_new (&adj, 1, 1, 1, 1, 10, 1, 1, 2);
+ spinbutton = gimp_spin_button_new (&adj, 1, 1, 1, 1, 10, 0, 1, 2);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
gtk_widget_show (spinbutton);
@@ -862,7 +862,7 @@
ratio_x,
(gdouble) GIMP_MIN_IMAGE_SIZE / (gdouble) svg_width,
(gdouble) GIMP_MAX_IMAGE_SIZE / (gdouble) svg_width,
- 0.01, 0.1, 1,
+ 0.01, 0.1, 0,
0.01, 4);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
gtk_table_attach_defaults (GTK_TABLE (table2), spinbutton, 0, 1, 0, 1);
@@ -884,7 +884,7 @@
ratio_y,
(gdouble) GIMP_MIN_IMAGE_SIZE / (gdouble) svg_height,
(gdouble) GIMP_MAX_IMAGE_SIZE / (gdouble) svg_height,
- 0.01, 0.1, 1,
+ 0.01, 0.1, 0,
0.01, 4);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
gtk_table_attach_defaults (GTK_TABLE (table2), spinbutton, 0, 1, 1, 2);
Modified: trunk/plug-ins/common/file-wmf.c
==============================================================================
--- trunk/plug-ins/common/file-wmf.c (original)
+++ trunk/plug-ins/common/file-wmf.c Tue Aug 26 19:32:14 2008
@@ -585,7 +585,7 @@
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
gtk_widget_show (hbox);
- spinbutton = gimp_spin_button_new (&adj, 1, 1, 1, 1, 10, 1, 1, 2);
+ spinbutton = gimp_spin_button_new (&adj, 1, 1, 1, 1, 10, 0, 1, 2);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
gtk_widget_show (spinbutton);
@@ -638,7 +638,7 @@
ratio_x,
(gdouble) GIMP_MIN_IMAGE_SIZE / (gdouble) wmf_width,
(gdouble) GIMP_MAX_IMAGE_SIZE / (gdouble) wmf_width,
- 0.01, 0.1, 1,
+ 0.01, 0.1, 0,
0.01, 4);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
gtk_table_attach_defaults (GTK_TABLE (table2), spinbutton, 0, 1, 0, 1);
@@ -660,7 +660,7 @@
ratio_y,
(gdouble) GIMP_MIN_IMAGE_SIZE / (gdouble) wmf_height,
(gdouble) GIMP_MAX_IMAGE_SIZE / (gdouble) wmf_height,
- 0.01, 0.1, 1,
+ 0.01, 0.1, 0,
0.01, 4);
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), 10);
gtk_table_attach_defaults (GTK_TABLE (table2), spinbutton, 0, 1, 1, 2);
Modified: trunk/plug-ins/common/file-xbm.c
==============================================================================
--- trunk/plug-ins/common/file-xbm.c (original)
+++ trunk/plug-ins/common/file-xbm.c Tue Aug 26 19:32:14 2008
@@ -1272,7 +1272,7 @@
spinbutton = gimp_spin_button_new (&adj, xsvals.x_hot, 0,
gimp_drawable_width (drawable_ID) - 1,
- 1, 1, 1, 0, 0);
+ 1, 1, 0, 0, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("Hot spot _X:"), 0.0, 0.5,
spinbutton, 1, TRUE);
@@ -1282,7 +1282,7 @@
spinbutton = gimp_spin_button_new (&adj, xsvals.y_hot, 0,
gimp_drawable_height (drawable_ID) - 1,
- 1, 1, 1, 0, 0);
+ 1, 1, 0, 0, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("Hot spot _Y:"), 0.0, 0.5,
spinbutton, 1, TRUE);
Modified: trunk/plug-ins/file-jpeg/jpeg-save.c
==============================================================================
--- trunk/plug-ins/file-jpeg/jpeg-save.c (original)
+++ trunk/plug-ins/file-jpeg/jpeg-save.c Tue Aug 26 19:32:14 2008
@@ -942,7 +942,7 @@
pg.restart = restart_markers_scale = spinbutton =
gimp_spin_button_new (&pg.scale_data,
(jsvals.restart == 0) ? 1 : jsvals.restart,
- 1.0, 64.0, 1.0, 1.0, 64.0, 1.0, 0);
+ 1.0, 64.0, 1.0, 1.0, 0, 1.0, 0);
gtk_table_attach (GTK_TABLE (table), spinbutton, 5, 6, 1, 2,
GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (spinbutton);
Modified: trunk/plug-ins/lighting/lighting-ui.c
==============================================================================
--- trunk/plug-ins/lighting/lighting-ui.c (original)
+++ trunk/plug-ins/lighting/lighting-ui.c Tue Aug 26 19:32:14 2008
@@ -451,7 +451,7 @@
spin_intensity = gimp_spin_button_new (&adj,
mapvals.lightsource[k].intensity,
0.0, 100.0,
- 0.01, 0.1, 1.0, 0.0, 2);
+ 0.01, 0.1, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 3,
_("_Intensity:"), 0.0, 0.5,
spin_intensity, 1, TRUE);
@@ -472,7 +472,7 @@
spin_pos_x = gimp_spin_button_new (&adj,
mapvals.lightsource[k].position.x,
-100.0, 100.0,
- 0.1, 1.0, 1.0, 0.0, 2);
+ 0.1, 1.0, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 2, 1,
_("_X:"), 0.0, 0.5,
spin_pos_x, 1, TRUE);
@@ -487,7 +487,7 @@
spin_pos_y = gimp_spin_button_new (&adj,
mapvals.lightsource[k].position.y,
-100.0, 100.0,
- 0.1, 1.0, 1.0, 0.0, 2);
+ 0.1, 1.0, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 2, 2,
_("_Y:"), 0.0, 0.5,
spin_pos_y, 1, TRUE);
@@ -502,7 +502,7 @@
spin_pos_z = gimp_spin_button_new (&adj,
mapvals.lightsource[k].position.z,
-100.0, 100.0,
- 0.1, 1.0, 1.0, 0.0, 2);
+ 0.1, 1.0, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 2, 3,
_("_Z:"), 0.0, 0.5,
spin_pos_z, 1, TRUE);
@@ -522,7 +522,7 @@
spin_dir_x = gimp_spin_button_new (&adj,
mapvals.lightsource[k].direction.x,
- -100.0, 100.0, 0.1, 1.0, 1.0, 0.0, 2);
+ -100.0, 100.0, 0.1, 1.0, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 4, 1,
_("X:"), 0.0, 0.5,
spin_dir_x, 1, TRUE);
@@ -536,7 +536,7 @@
spin_dir_y = gimp_spin_button_new (&adj,
mapvals.lightsource[k].direction.y,
- -100.0, 100.0, 0.1, 1.0, 1.0, 0.0, 2);
+ -100.0, 100.0, 0.1, 1.0, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 4, 2,
_("Y:"), 0.0, 0.5,
spin_dir_y, 1, TRUE);
@@ -550,7 +550,7 @@
spin_dir_z = gimp_spin_button_new (&adj,
mapvals.lightsource[k].direction.z,
- -100.0, 100.0, 0.1, 1.0, 1.0, 0.0, 2);
+ -100.0, 100.0, 0.1, 1.0, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 4, 3,
_("Z:"), 0.0, 0.5,
spin_dir_z, 1, TRUE);
@@ -641,7 +641,7 @@
gtk_size_group_add_widget (group, label);
spinbutton = gimp_spin_button_new (&adj, mapvals.material.ambient_int,
- 0, G_MAXFLOAT, 0.01, 0.1, 1.0, 0.0, 2);
+ 0, G_MAXFLOAT, 0.01, 0.1, 0.0, 0.0, 2);
gtk_table_attach (GTK_TABLE (table), spinbutton, 2, 3, 0, 1,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
gtk_widget_show (spinbutton);
@@ -674,7 +674,7 @@
gtk_size_group_add_widget (group, label);
spinbutton = gimp_spin_button_new (&adj, mapvals.material.diffuse_int,
- 0, G_MAXFLOAT, 0.01, 0.1, 1.0, 0.0, 2);
+ 0, G_MAXFLOAT, 0.01, 0.1, 0.0, 0.0, 2);
gtk_table_attach (GTK_TABLE (table), spinbutton, 2, 3, 1, 2,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
gtk_widget_show (spinbutton);
@@ -707,7 +707,7 @@
gtk_size_group_add_widget (group, label);
spinbutton = gimp_spin_button_new (&adj, mapvals.material.specular_ref,
- 0, G_MAXFLOAT, 0.01, 0.1, 1.0, 0.0, 2);
+ 0, G_MAXFLOAT, 0.01, 0.1, 0.0, 0.0, 2);
gtk_table_attach (GTK_TABLE (table), spinbutton, 2, 3, 2, 3,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
gtk_widget_show (spinbutton);
@@ -739,7 +739,7 @@
gtk_size_group_add_widget (group, label);
spinbutton = gimp_spin_button_new (&adj, mapvals.material.highlight,
- 0, G_MAXFLOAT, 0.01, 0.1, 1.0, 0.0, 2);
+ 0, G_MAXFLOAT, 0.01, 0.1, 0.0, 0.0, 2);
gtk_table_attach (GTK_TABLE (table), spinbutton, 2, 3, 3, 4,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
gtk_widget_show (spinbutton);
@@ -855,7 +855,7 @@
_("Cu_rve:"), 0.0, 0.5, combo, 1, FALSE);
spinbutton = gimp_spin_button_new (&adj, mapvals.bumpmax,
- 0, G_MAXFLOAT, 0.01, 0.1, 1.0, 0.0, 2);
+ 0, G_MAXFLOAT, 0.01, 0.1, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
_("Ma_ximum height:"), 0.0, 0.5,
spinbutton, 1, TRUE);
Modified: trunk/plug-ins/map-object/map-object-ui.c
==============================================================================
--- trunk/plug-ins/map-object/map-object-ui.c (original)
+++ trunk/plug-ins/map-object/map-object-ui.c Tue Aug 26 19:32:14 2008
@@ -580,7 +580,7 @@
&mapvals.maxdepth);
spinbutton = gimp_spin_button_new (&adj, mapvals.pixeltreshold,
- 0.001, 1000, 0.1, 1, 1, 0, 3);
+ 0.001, 1000, 0.1, 1, 0, 0, 3);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("_Threshold:"), 0.0, 0.5,
spinbutton, 1, TRUE);
@@ -670,7 +670,7 @@
spinbutton = gimp_spin_button_new (&xadj, mapvals.lightsource.position.x,
-G_MAXFLOAT, G_MAXFLOAT,
- 0.1, 1.0, 1.0, 0.0, 2);
+ 0.1, 1.0, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("X:"), 0.0, 0.5,
spinbutton, 1, TRUE);
@@ -684,7 +684,7 @@
spinbutton = gimp_spin_button_new (&yadj, mapvals.lightsource.position.y,
-G_MAXFLOAT, G_MAXFLOAT,
- 0.1, 1.0, 1.0, 0.0, 2);
+ 0.1, 1.0, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("Y:"), 0.0, 0.5,
spinbutton, 1, TRUE);
@@ -698,7 +698,7 @@
spinbutton = gimp_spin_button_new (&zadj, mapvals.lightsource.position.z,
-G_MAXFLOAT, G_MAXFLOAT,
- 0.1, 1.0, 1.0, 0.0, 2);
+ 0.1, 1.0, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
_("Z:"), 0.0, 0.5,
spinbutton, 1, TRUE);
@@ -724,7 +724,7 @@
gtk_widget_show (table);
spinbutton = gimp_spin_button_new (&adj, mapvals.lightsource.direction.x,
- -1.0, 1.0, 0.01, 0.1, 1.0, 0.0, 2);
+ -1.0, 1.0, 0.01, 0.1, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("X:"), 0.0, 0.5,
spinbutton, 1, TRUE);
@@ -737,7 +737,7 @@
_("Light source X direction in XYZ space"), NULL);
spinbutton = gimp_spin_button_new (&adj, mapvals.lightsource.direction.y,
- -1.0, 1.0, 0.01, 0.1, 1.0, 0.0, 2);
+ -1.0, 1.0, 0.01, 0.1, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("Y:"), 0.0, 0.5,
spinbutton, 1, TRUE);
@@ -750,7 +750,7 @@
_("Light source Y direction in XYZ space"), NULL);
spinbutton = gimp_spin_button_new (&adj, mapvals.lightsource.direction.z,
- -1.0, 1.0, 0.01, 0.1, 1.0, 0.0, 2);
+ -1.0, 1.0, 0.01, 0.1, 0.0, 0.0, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
_("Z:"), 0.0, 0.5,
spinbutton, 1, TRUE);
@@ -811,7 +811,7 @@
gtk_size_group_add_widget (group, label);
spinbutton = gimp_spin_button_new (&adj, mapvals.material.ambient_int,
- 0, G_MAXFLOAT, 0.1, 1.0, 1.0, 0.0, 2);
+ 0, G_MAXFLOAT, 0.1, 1.0, 0.0, 0.0, 2);
gtk_table_attach (GTK_TABLE (table), spinbutton, 2, 3, 0, 1,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
gtk_widget_show (spinbutton);
@@ -840,7 +840,7 @@
gtk_size_group_add_widget (group, label);
spinbutton = gimp_spin_button_new (&adj, mapvals.material.diffuse_int,
- 0, G_MAXFLOAT, 0.1, 1.0, 1.0, 0.0, 2);
+ 0, G_MAXFLOAT, 0.1, 1.0, 0.0, 0.0, 2);
gtk_table_attach (GTK_TABLE (table), spinbutton, 2, 3, 1, 2,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
gtk_widget_show (spinbutton);
@@ -883,7 +883,7 @@
gtk_size_group_add_widget (group, label);
spinbutton = gimp_spin_button_new (&adj, mapvals.material.diffuse_ref,
- 0, G_MAXFLOAT, 0.1, 1.0, 1.0, 0.0, 2);
+ 0, G_MAXFLOAT, 0.1, 1.0, 0.0, 0.0, 2);
gtk_table_attach (GTK_TABLE (table), spinbutton, 2, 3, 0, 1,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
gtk_widget_show (spinbutton);
@@ -912,7 +912,7 @@
gtk_size_group_add_widget (group, label);
spinbutton = gimp_spin_button_new (&adj, mapvals.material.specular_ref,
- 0, G_MAXFLOAT, 0.1, 1.0, 1.0, 0.0, 2);
+ 0, G_MAXFLOAT, 0.1, 1.0, 0.0, 0.0, 2);
gtk_table_attach (GTK_TABLE (table), spinbutton, 2, 3, 1, 2,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
gtk_widget_show (spinbutton);
@@ -941,7 +941,7 @@
gtk_size_group_add_widget (group, label);
spinbutton = gimp_spin_button_new (&adj, mapvals.material.highlight,
- 0, G_MAXFLOAT, 0.1, 1.0, 1.0, 0.0, 2);
+ 0, G_MAXFLOAT, 0.1, 1.0, 0.0, 0.0, 2);
gtk_table_attach (GTK_TABLE (table), spinbutton, 2, 3, 2, 3,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
gtk_widget_show (spinbutton);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]