Pass the values which are treated as 0% and 100% to the constructor and

2000-02-03  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpwidgets.[ch] gimp_coordinates_new():
	Pass the values which are treated as 0% and 100% to the
	constructor and allow the chainbutton to constrain either the
	pixel values or the aspect ratio.

	* plug-ins/common/bumpmap.c
	* plug-ins/common/sparkle.c: removed unused variables.

	* plug-ins/common/gauss_iir.c
	* plug-ins/common/gauss_rle.c
	* plug-ins/common/spread.c: updated the gimp_coordinates_new()
	calls.

	* plug-ins/common/tile.c: use gimp_coordinates instead of
	spinbuttons.
This commit is contained in:
Michael Natterer
2000-02-02 17:59:44 +00:00
committed by Michael Natterer
parent c33289b6ae
commit 9508a095d1
11 changed files with 533 additions and 457 deletions

View File

@ -127,17 +127,26 @@ GtkWidget * gimp_coordinates_new (GUnit unit,
gint spinbutton_usize,
GimpSizeEntryUP update_policy,
gboolean chainbutton_active,
gboolean chain_constrains_ratio,
/* return value: */
GtkWidget **chainbutton,
gchar *xlabel,
gdouble x,
gdouble xres,
gint lower_boundary_x,
gint upper_boundary_x,
gdouble lower_boundary_x,
gdouble upper_boundary_x,
gdouble xsize_0, /* % */
gdouble xsize_100, /* % */
gchar *ylabel,
gdouble y,
gdouble yres,
gint lower_boundary_y,
gint upper_boundary_y);
gdouble lower_boundary_y,
gdouble upper_boundary_y,
gdouble ysize_0, /* % */
gdouble ysize_100 /* % */);
/*
* Standard Callbacks