Commit 7117483f authored by Manish Singh's avatar Manish Singh Committed by Manish Singh
Browse files

configure.in app/Makefile.am app/plug-in/Makefile.am plug-ins/Makefile.am

2001-11-11  Manish Singh  <yosh@gimp.org>

        * configure.in
        * app/Makefile.am
        * app/plug-in/Makefile.am
        * plug-ins/Makefile.am
        * modules/Makefile.am: fixes to build with automake 1.5 (just hacks
        to get it to work, real fixes to come later)

        * app/gui/preferences-dialog.c: unset GValue from tree model when
        we're done with it.

        * libgimpwidgets/gimpcolorarea.c
        * libgimpwidgets/gimpcolorbutton.c
        * libgimpwidgets/gimpsizeentry.[ch]
        * libgimpwidgets/gimpwidgets.[ch]
        * plug-ins/common/animationplay.c
        * plug-ins/common/colorify.c
        * plug-ins/common/curve_bend.c
        * plug-ins/common/diffraction.c
        * plug-ins/common/film.c
        * plug-ins/common/gbr.c
        * plug-ins/common/gee.c
        * plug-ins/common/gee_zoom.c
        * plug-ins/common/gicon.c
        * plug-ins/common/gih.c
        * plug-ins/common/gtm.c
        * plug-ins/common/jpeg.c
        * plug-ins/common/mail.c
        * plug-ins/common/pat.c
        * plug-ins/common/plugindetails.c
        * plug-ins/common/png.c
        * plug-ins/common/ps.c
        * plug-ins/common/sample_colorize.c
        * plug-ins/common/sinus.c
        * plug-ins/common/spheredesigner.c
        * plug-ins/common/tileit.c
        * plug-ins/common/uniteditor.c
        * plug-ins/common/xbm.c: gtk_widget_set_usize is deprecated. Use
        gtk_widget_set_size_request instead.

        * libgimpwidgets/gimpunitmenu.[ch]: changed to use GtkTreeView.
parent 8dac8949
......@@ -5,6 +5,7 @@ config.log
config.h
config.cache
stamp-h
stamp-h1
gimp.spec
gimprc
config.status
......
2001-11-11 Manish Singh <yosh@gimp.org>
* configure.in
* app/Makefile.am
* app/plug-in/Makefile.am
* plug-ins/Makefile.am
* modules/Makefile.am: fixes to build with automake 1.5 (just hacks
to get it to work, real fixes to come later)
* app/gui/preferences-dialog.c: unset GValue from tree model when
we're done with it.
* libgimpwidgets/gimpcolorarea.c
* libgimpwidgets/gimpcolorbutton.c
* libgimpwidgets/gimpsizeentry.[ch]
* libgimpwidgets/gimpwidgets.[ch]
* plug-ins/common/animationplay.c
* plug-ins/common/colorify.c
* plug-ins/common/curve_bend.c
* plug-ins/common/diffraction.c
* plug-ins/common/film.c
* plug-ins/common/gbr.c
* plug-ins/common/gee.c
* plug-ins/common/gee_zoom.c
* plug-ins/common/gicon.c
* plug-ins/common/gih.c
* plug-ins/common/gtm.c
* plug-ins/common/jpeg.c
* plug-ins/common/mail.c
* plug-ins/common/pat.c
* plug-ins/common/plugindetails.c
* plug-ins/common/png.c
* plug-ins/common/ps.c
* plug-ins/common/sample_colorize.c
* plug-ins/common/sinus.c
* plug-ins/common/spheredesigner.c
* plug-ins/common/tileit.c
* plug-ins/common/uniteditor.c
* plug-ins/common/xbm.c: gtk_widget_set_usize is deprecated. Use
gtk_widget_set_size_request instead.
* libgimpwidgets/gimpunitmenu.[ch]: changed to use GtkTreeView.
2001-11-10 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplay-marching-ants.h
......
......@@ -6,10 +6,10 @@ scriptdata =
bin_PROGRAMS = gimp
gimp_SOURCES = @STRIP_BEGIN@ \
##
## gui stuff that needs to go to libgimp/, gui/ or /dev/null
##
gui_sources = \
colormaps.c \
colormaps.h \
devices.c \
......@@ -21,33 +21,43 @@ gimp_SOURCES = @STRIP_BEGIN@ \
ops_buttons.c \
ops_buttons.h \
undo_history.c \
undo_history.h \
undo_history.h
##
## stuff that needs to be split up in core / ui files
##
core_ui_sources = \
image_map.c \
image_map.h \
image_map.h
##
## stuff for core/
##
core_sources = \
floating_sel.c \
floating_sel.h \
floating_sel.h
##
## config stuff
##
config_sources = \
appenv.h \
general.c \
general.h \
gimprc.c \
gimprc.h \
gimprc.h
##
## stuff for plug-in/
##
plug_in_sources = \
plug_in.c \
plug_in.h \
plug_in.h
##
## stuff which is about to be replaced by new subsystems
##
bye_sources = \
path.c \
path.h \
pathP.h \
......@@ -58,14 +68,15 @@ gimp_SOURCES = @STRIP_BEGIN@ \
path_bezier.c \
undo.c \
undo.h \
undo_types.h \
undo_types.h
##
## stuff
##
stuff_sources = \
app_procs.c \
app_procs.h \
main.c \
\
batch.c \
batch.h \
errors.c \
......@@ -73,7 +84,16 @@ gimp_SOURCES = @STRIP_BEGIN@ \
gimphelp.c \
gimphelp.h \
libgimp_glue.c \
libgimp_glue.h \
libgimp_glue.h
gimp_SOURCES = @STRIP_BEGIN@ \
$(gui_sources) \
$(core_ui_sources) \
$(core_sources) \
$(config_sources) \
$(plug_in_sources) \
$(bye_sources) \
$(stuff_sources) \
@STRIP_END@
EXTRA_DIST = \
......
......@@ -1392,6 +1392,8 @@ prefs_tree_select_callback (GtkTreeSelection *sel,
gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook),
g_value_get_int (&val));
g_value_unset (&val);
}
/* create a frame with title and a vbox */
......
......@@ -1392,6 +1392,8 @@ prefs_tree_select_callback (GtkTreeSelection *sel,
gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook),
g_value_get_int (&val));
g_value_unset (&val);
}
/* create a frame with title and a vbox */
......
......@@ -3,10 +3,10 @@
noinst_LIBRARIES = libappplug-in.a
libappplug_in_a_SOURCES = @STRIP_BEGIN@ \
plug-in-types.h \
plug-in-types.h \
@STRIP_END@
## plug-in.c \
## plug-in.h \
@STRIP_END@
AM_CPPFLAGS = @STRIP_BEGIN@ \
-DG_LOG_DOMAIN=\"Gimp-Plug-In\" \
......
......@@ -8,7 +8,7 @@ AC_INIT(gimprc.in)
# GIMP_BINARY_AGE += 1;
# if any functions have been added, set GIMP_INTERFACE_AGE to 0.
# if backwards compatibility has been broken,
# set GIMP_BINARY_AGE _and_ GIMP_INTERFACE_AGE to 0.
# set GIMP_BINARY_AGE and GIMP_INTERFACE_AGE to 0.
#
GIMP_MAJOR_VERSION=1
GIMP_MINOR_VERSION=3
......@@ -38,6 +38,12 @@ AM_CONFIG_HEADER(config.h)
dnl Initialize libtool
AM_PROG_LIBTOOL
dnl Set AS and ASFLAGS so that automake 1.5 will be happy
AS="\${CC}"
ASFLAGS="\$(DEFS) \$(DEFAULT_INCLUDES) \$(INCLUDES) \$(AM_CPPFLAGS) \$(CPPFLAGS) \$(AM_CFLAGS) \$(CFLAGS)"
AC_SUBST(AS)
AC_SUBST(ASFLAGS)
dnl Initialize maintainer mode
AM_MAINTAINER_MODE
......
......@@ -477,7 +477,8 @@ gimp_color_area_drag_begin (GtkWidget *widget,
GIMP_COLOR_AREA (widget)->type,
0);
gtk_widget_set_usize (color_area, DRAG_PREVIEW_SIZE, DRAG_PREVIEW_SIZE);
gtk_widget_set_size_request (color_area,
DRAG_PREVIEW_SIZE, DRAG_PREVIEW_SIZE);
gtk_container_add (GTK_CONTAINER (frame), color_area);
gtk_widget_show (color_area);
gtk_widget_show (frame);
......
......@@ -247,7 +247,7 @@ gimp_color_button_new (const gchar *title,
gcb->title = g_strdup (title);
gtk_widget_set_usize (GTK_WIDGET (gcb->color_area), width, height);
gtk_widget_set_size_request (GTK_WIDGET (gcb->color_area), width, height);
gimp_color_area_set_color (GIMP_COLOR_AREA (gcb->color_area), color);
gimp_color_area_set_type (GIMP_COLOR_AREA (gcb->color_area), type);
......
......@@ -211,7 +211,7 @@ gimp_size_entry_finalize (GObject *object)
* GIMP_UNIT_PERCENT.
* @show_refval: #TRUE if you want an extra "refenence value"
* spinbutton per input field.
* @spinbutton_usize: The minimal horizontal size of the #GtkSpinButton's.
* @spinbutton_width: The minimal horizontal size of the #GtkSpinButton's.
* @update_policy: How the automatic pixel <-> real-world-unit calculations
* should be performed.
*
......@@ -250,7 +250,7 @@ gimp_size_entry_new (gint number_of_fields,
gboolean menu_show_pixels,
gboolean menu_show_percent,
gboolean show_refval,
gint spinbutton_usize,
gint spinbutton_width,
GimpSizeEntryUpdatePolicy update_policy)
{
GimpSizeEntry *gse;
......@@ -318,7 +318,8 @@ gimp_size_entry_new (gint number_of_fields,
(unit == GIMP_UNIT_PIXEL) ? gsef->refval_digits :
(unit == GIMP_UNIT_PERCENT) ? 2 :
GIMP_SIZE_ENTRY_DIGITS (unit));
gtk_widget_set_usize (gsef->value_spinbutton, spinbutton_usize, 0);
gtk_widget_set_size_request (gsef->value_spinbutton,
spinbutton_width, -1);
gtk_table_attach_defaults (GTK_TABLE (gse), gsef->value_spinbutton,
i+1, i+2,
gse->show_refval+1, gse->show_refval+2);
......@@ -338,7 +339,8 @@ gimp_size_entry_new (gint number_of_fields,
gtk_spin_button_new (GTK_ADJUSTMENT (gsef->refval_adjustment),
1.0,
gsef->refval_digits);
gtk_widget_set_usize (gsef->refval_spinbutton, spinbutton_usize, 0);
gtk_widget_set_size_request (gsef->refval_spinbutton,
spinbutton_width, -1);
gtk_table_attach_defaults (GTK_TABLE (gse), gsef->refval_spinbutton,
i + 1, i + 2, 1, 2);
g_signal_connect (G_OBJECT (gsef->refval_adjustment),
......
......@@ -79,7 +79,7 @@ GtkWidget * gimp_size_entry_new (gint number_of_fields,
gboolean menu_show_pixels,
gboolean menu_show_percent,
gboolean show_refval,
gint spinbutton_usize,
gint spinbutton_width,
GimpSizeEntryUpdatePolicy update_policy);
void gimp_size_entry_add_field (GimpSizeEntry *gse,
......
......@@ -41,6 +41,14 @@ enum
LAST_SIGNAL
};
enum
{
UNIT_COLUMN,
FACTOR_COLUMN,
DATA_COLUMN,
NUM_COLUMNS
};
static void gimp_unit_menu_class_init (GimpUnitMenuClass *klass);
static void gimp_unit_menu_init (GimpUnitMenu *gum);
......@@ -117,7 +125,7 @@ gimp_unit_menu_init (GimpUnitMenu *gum)
gum->show_pixels = FALSE;
gum->show_percent = FALSE;
gum->selection = NULL;
gum->clist = NULL;
gum->tv = NULL;
}
static void
......@@ -197,7 +205,7 @@ gimp_unit_menu_new (const gchar *format,
(gimp_unit_menu_build_string (format, GIMP_UNIT_PERCENT));
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
g_object_set_data (G_OBJECT (menuitem), "gimp_unit_menu",
(gpointer) GIMP_UNIT_PERCENT);
GINT_TO_POINTER (GIMP_UNIT_PERCENT));
gtk_widget_show (menuitem);
g_signal_connect (G_OBJECT (menuitem), "activate",
......@@ -218,7 +226,7 @@ gimp_unit_menu_new (const gchar *format,
gtk_menu_item_new_with_label (gimp_unit_menu_build_string (format, u));
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
g_object_set_data (G_OBJECT (menuitem), "gimp_unit_menu",
(gpointer) u);
GINT_TO_POINTER (u));
gtk_widget_show (menuitem);
g_signal_connect (G_OBJECT (menuitem), "activate",
......@@ -238,7 +246,7 @@ gimp_unit_menu_new (const gchar *format,
gtk_menu_item_new_with_label (gimp_unit_menu_build_string (format, unit));
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
g_object_set_data (G_OBJECT (menuitem), "gimp_unit_menu",
(gpointer) unit);
GINT_TO_POINTER (unit));
gtk_widget_show (menuitem);
g_signal_connect (G_OBJECT (menuitem), "activate",
......@@ -257,7 +265,7 @@ gimp_unit_menu_new (const gchar *format,
gtk_menu_item_new_with_label (_("More..."));
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
g_object_set_data (G_OBJECT (menuitem), "gimp_unit_menu",
(gpointer) (GIMP_UNIT_PERCENT + 1));
GINT_TO_POINTER (GIMP_UNIT_PERCENT + 1));
gtk_widget_show (menuitem);
g_signal_connect (G_OBJECT (menuitem), "activate",
......@@ -320,7 +328,8 @@ gimp_unit_menu_set_unit (GimpUnitMenu *gum,
}
menuitem = gtk_menu_item_new ();
gtk_menu_shell_append (GTK_MENU_SHELL (GTK_OPTION_MENU (gum)->menu), menuitem);
gtk_menu_shell_append (GTK_MENU_SHELL (GTK_OPTION_MENU (gum)->menu),
menuitem);
gtk_widget_set_sensitive (menuitem, FALSE);
gtk_menu_reorder_child (GTK_MENU (GTK_OPTION_MENU (gum)->menu),
menuitem, user_unit - 1);
......@@ -332,7 +341,7 @@ gimp_unit_menu_set_unit (GimpUnitMenu *gum,
gtk_menu_shell_append (GTK_MENU_SHELL (GTK_OPTION_MENU (gum)->menu),
menuitem);
g_object_set_data (G_OBJECT (menuitem), "gimp_unit_menu",
(gpointer) unit);
GINT_TO_POINTER (unit));
gtk_menu_reorder_child (GTK_MENU (GTK_OPTION_MENU (gum)->menu),
menuitem, user_unit);
gtk_widget_show (menuitem);
......@@ -467,16 +476,22 @@ static void
gimp_unit_menu_selection_ok_callback (GtkWidget *widget,
gpointer data)
{
GimpUnitMenu *gum;
GimpUnit unit;
GimpUnitMenu *gum;
GimpUnit unit;
GtkTreeSelection *sel;
GtkTreeModel *model;
GtkTreeIter iter;
GValue val = { 0, };
gum = GIMP_UNIT_MENU (data);
if (gum->selection && GTK_CLIST (gum->clist)->selection)
sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (gum->tv));
if (gum->selection && gtk_tree_selection_get_selected (sel, &model, &iter))
{
unit = (GimpUnit)
gtk_clist_get_row_data (GTK_CLIST (gum->clist),
(gint) (GTK_CLIST (gum->clist)->selection->data));
gtk_tree_model_get_value(model, &iter, 2, &val);
unit = (GimpUnit) g_value_get_int (&val);
g_value_unset (&val);
gimp_unit_menu_set_unit (gum, unit);
g_signal_emit (G_OBJECT (gum),
gimp_unit_menu_signals[UNIT_CHANGED], 0);
......@@ -486,28 +501,26 @@ gimp_unit_menu_selection_ok_callback (GtkWidget *widget,
}
static void
gimp_unit_menu_selection_select_row_callback (GtkWidget *widget,
gint row,
gint column,
GdkEventButton *bevent,
gpointer data)
gimp_unit_menu_selection_row_activated_callback (GtkTreeView *tv,
GtkTreePath *path,
GtkTreeViewColumn *column,
gpointer data)
{
if (bevent && bevent->type == GDK_2BUTTON_PRESS)
gimp_unit_menu_selection_ok_callback (NULL, data);
gimp_unit_menu_selection_ok_callback (NULL, data);
}
/* private function of gimp_unit_menu_callback () */
static void
gimp_unit_menu_create_selection (GimpUnitMenu *gum)
{
GtkWidget *vbox;
GtkWidget *scrolled_win;
gchar *titles[2];
gchar *row[2];
GimpUnit unit;
gint num_units;
gint unit_width;
gint factor_width;
GtkWidget *vbox;
GtkWidget *scrolled_win;
GtkListStore *list;
GtkTreeSelection *sel;
GtkTreeIter iter;
GtkTreePath *path;
GimpUnit unit;
gint num_units;
gum->selection =
gimp_dialog_new (_("Unit Selection"), "unit_selection",
......@@ -540,61 +553,71 @@ gimp_unit_menu_create_selection (GimpUnitMenu *gum)
/* the selection list */
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_SHADOW_ETCHED_IN);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_POLICY_NEVER,
GTK_POLICY_ALWAYS);
gtk_container_add (GTK_CONTAINER (vbox), scrolled_win);
gtk_widget_show (scrolled_win);
titles[0] = _("Unit");
titles[1] = _("Factor");
gum->clist = gtk_clist_new_with_titles (2, titles);
gtk_clist_set_shadow_type (GTK_CLIST (gum->clist), GTK_SHADOW_IN);
gtk_clist_set_selection_mode (GTK_CLIST (gum->clist), GTK_SELECTION_BROWSE);
gtk_clist_column_titles_passive (GTK_CLIST (gum->clist));
list = gtk_list_store_new (NUM_COLUMNS, G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_INT);
gum->tv = gtk_tree_view_new_with_model (GTK_TREE_MODEL (list));
g_object_unref (list);
gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (gum->tv),
-1, _("Unit"),
gtk_cell_renderer_text_new (),
"text", UNIT_COLUMN, NULL);
gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (gum->tv),
-1, _("Factor"),
gtk_cell_renderer_text_new (),
"text", FACTOR_COLUMN, NULL);
/* the unit lines */
num_units = gimp_unit_get_number_of_units ();
for (unit = GIMP_UNIT_END; unit < num_units; unit++)
{
row[0] = g_strdup (gimp_unit_menu_build_string (gum->format, unit));
row[1] = g_strdup (gimp_unit_menu_build_string ("(%f)", unit));
gtk_clist_append (GTK_CLIST (gum->clist), row);
gtk_clist_set_row_data (GTK_CLIST (gum->clist),
unit - GIMP_UNIT_END,
(gpointer) unit);
g_free (row[0]);
g_free (row[1]);
gtk_list_store_append (list, &iter);
gtk_list_store_set (list, &iter,
UNIT_COLUMN,
gimp_unit_menu_build_string (gum->format, unit),
-1);
gtk_list_store_set (list, &iter,
FACTOR_COLUMN,
gimp_unit_menu_build_string ("(%f)", unit),
-1);
gtk_list_store_set (list, &iter, DATA_COLUMN, unit, -1);
}
unit_width = gtk_clist_optimal_column_width (GTK_CLIST (gum->clist), 0);
factor_width = gtk_clist_optimal_column_width (GTK_CLIST (gum->clist), 1);
gtk_widget_set_size_request (gum->tv, -1, 150);
gtk_clist_set_column_width (GTK_CLIST (gum->clist), 0, unit_width);
gtk_clist_set_column_width (GTK_CLIST (gum->clist), 1, factor_width);
gtk_container_add (GTK_CONTAINER (scrolled_win), gum->tv);
gtk_widget_set_usize (gum->clist, -1, 150);
gtk_container_add (GTK_CONTAINER (scrolled_win), gum->clist);
g_signal_connect (G_OBJECT (gum->clist), "select_row",
G_CALLBACK (gimp_unit_menu_selection_select_row_callback),
g_signal_connect (G_OBJECT (gum->tv), "row_activated",
G_CALLBACK (gimp_unit_menu_selection_row_activated_callback),
gum);
gtk_widget_show (gum->clist);
g_signal_connect (G_OBJECT (gum->clist), "destroy",
gtk_widget_show (gum->tv);
g_signal_connect (G_OBJECT (gum->tv), "destroy",
G_CALLBACK (gtk_widget_destroyed),
&gum->clist);
&gum->tv);
gtk_widget_show (vbox);
gtk_widget_show (gum->selection);
if (gum->unit >= GIMP_UNIT_END)
{
gtk_clist_select_row (GTK_CLIST (gum->clist),
gum->unit - GIMP_UNIT_END, 0);
gtk_clist_moveto (GTK_CLIST (gum->clist),
gum->unit - GIMP_UNIT_END, 0, 0.0, 0.0);
path = gtk_tree_path_new ();
gtk_tree_path_append_index (path, gum->unit - GIMP_UNIT_END);
sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (gum->tv));
gtk_tree_selection_select_path (sel, path);
gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (gum->tv), path, NULL,
FALSE, 0.0, 0.0);
}
}
......
......@@ -53,7 +53,7 @@ struct _GimpUnitMenu
/* private */
GtkWidget *selection;
GtkWidget *clist;
GtkWidget *tv;
};
struct _GimpUnitMenuClass
......
......@@ -511,7 +511,7 @@ gimp_spin_button_new (GtkObject **adjustment, /* return value */
spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (*adjustment),
climb_rate, digits);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_widget_set_usize (spinbutton, 75, -1);
gtk_widget_set_size_request (spinbutton, 75, -1);
return spinbutton;
}
......@@ -538,8 +538,8 @@ gimp_scale_entry_unconstrained_adjustment_callback (GtkAdjustment *adjustment,
* @row: The row to attach the widgets.
* @text: The text for the #GtkLabel which will appear
* left of the #GtkHScale.
* @scale_usize: The minimum horizontal size of the #GtkHScale.
* @spinbutton_usize: The minimum horizontal size of the #GtkSpinButton.
* @scale_width: The minimum horizontal size of the #GtkHScale.
* @spinbutton_width: The minimum horizontal size of the #GtkSpinButton.
* @value: The initial value.
* @lower: The lower boundary.
* @upper: The upper boundary.
......@@ -568,8 +568,8 @@ gimp_scale_entry_new (GtkTable *table,
gint column,
gint row,
const gchar *text,
gint scale_usize,
gint spinbutton_usize,
gint scale_width,
gint spinbutton_width,
gfloat value,
gfloat lower,
gfloat upper,
......@@ -634,12 +634,12 @@ gimp_scale_entry_new (GtkTable *table,
return_adj = adjustment;
}
if (spinbutton_usize > 0)
gtk_widget_set_usize (spinbutton, spinbutton_usize, -1);
if (spinbutton_width > 0)
gtk_widget_set_size_request (spinbutton, spinbutton_width, -1);
scale = gtk_hscale_new (GTK_ADJUSTMENT (adjustment));
if (scale_usize > 0)
gtk_widget_set_usize (scale, scale_usize, -1);
if (scale_width > 0)
gtk_widget_set_size_request (scale, scale_width, -1);
gtk_scale_set_digits (GTK_SCALE (scale), digits);
gtk_scale_set_draw_value (GTK_SCALE (scale), FALSE);
gtk_table_attach (GTK_TABLE (table), scale,
......@@ -835,7 +835,7 @@ gimp_coordinates_callback (GtkWidget *widget,
* GIMP_UNIT_PIXEL.
* @menu_show_percent: #TRUE if the #GimpUnitMenu should contain an item for
* GIMP_UNIT_PERCENT.
* @spinbutton_usize: The horizontal usize of the #GimpSizeEntry's
* @spinbutton_width: The horizontal size of the #GimpSizeEntry's
* #GtkSpinButton's.
* @update_policy: The update policy for the #GimpSizeEntry.
* @chainbutton_active: #TRUE if the attached #GimpChainButton should be
......@@ -867,7 +867,7 @@ gimp_coordinates_new (GimpUnit unit,
const gchar *unit_format,
gboolean menu_show_pixels,
gboolean menu_show_percent,
gint spinbutton_usize,
gint spinbutton_width,
GimpSizeEntryUpdatePolicy update_policy,
gboolean chainbutton_active,
......@@ -900,7 +900,7 @@ gimp_coordinates_new (GimpUnit unit,
menu_show_pixels,
menu_show_percent,
FALSE,
spinbutton_usize,
spinbutton_width,
update_policy);
gtk_table_set_col_spacing (GTK_TABLE (sizeentry), 0, 4);
gtk_table_set_col_spacing (GTK_TABLE (sizeentry), 2, 4);
......