mirror of https://github.com/GNOME/gimp.git
use the GIMP_COORDINATES_CHAINBUTTON() macro instead of trying to get it
2003-09-28 Sven Neumann <sven@gimp.org> * app/gui/resolution-calibrate-dialog.c (resolution_calibrate_ok): use the GIMP_COORDINATES_CHAINBUTTON() macro instead of trying to get it using a hardcoded and misspelled identifier.
This commit is contained in:
parent
e6cd5255d0
commit
8e613a455d
|
@ -1,3 +1,9 @@
|
|||
2003-09-28 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/gui/resolution-calibrate-dialog.c (resolution_calibrate_ok):
|
||||
use the GIMP_COORDINATES_CHAINBUTTON() macro instead of trying to
|
||||
get it using a hardcoded and misspelled identifier.
|
||||
|
||||
2003-09-28 DindinX <david@dindinx.net>
|
||||
|
||||
* libgimpmath/gimpmatrix.[ch]:
|
||||
|
|
|
@ -46,20 +46,19 @@ resolution_calibrate_ok (GtkWidget *button,
|
|||
{
|
||||
GtkWidget *resolution_entry;
|
||||
GtkWidget *chain_button;
|
||||
gdouble x, y;
|
||||
gdouble x, y;
|
||||
|
||||
resolution_entry = g_object_get_data (G_OBJECT (data), "resolution-entry");
|
||||
|
||||
x = gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (calibrate_entry), 0);
|
||||
y = gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (calibrate_entry), 1);
|
||||
|
||||
calibrate_xres = (gdouble)ruler_width * calibrate_xres / x;
|
||||
calibrate_yres = (gdouble)ruler_height * calibrate_yres / y;
|
||||
calibrate_xres = (gdouble) ruler_width * calibrate_xres / x;
|
||||
calibrate_yres = (gdouble) ruler_height * calibrate_yres / y;
|
||||
|
||||
chain_button = g_object_get_data (G_OBJECT (resolution_entry),
|
||||
"chain_button");
|
||||
if (chain_button &&
|
||||
ABS (x -y) > GIMP_MIN_RESOLUTION)
|
||||
chain_button = GIMP_COORDINATES_CHAINBUTTON (resolution_entry);
|
||||
|
||||
if (ABS (x -y) > GIMP_MIN_RESOLUTION)
|
||||
gimp_chain_button_set_active (GIMP_CHAIN_BUTTON (chain_button), FALSE);
|
||||
|
||||
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (resolution_entry),
|
||||
|
|
|
@ -46,20 +46,19 @@ resolution_calibrate_ok (GtkWidget *button,
|
|||
{
|
||||
GtkWidget *resolution_entry;
|
||||
GtkWidget *chain_button;
|
||||
gdouble x, y;
|
||||
gdouble x, y;
|
||||
|
||||
resolution_entry = g_object_get_data (G_OBJECT (data), "resolution-entry");
|
||||
|
||||
x = gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (calibrate_entry), 0);
|
||||
y = gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (calibrate_entry), 1);
|
||||
|
||||
calibrate_xres = (gdouble)ruler_width * calibrate_xres / x;
|
||||
calibrate_yres = (gdouble)ruler_height * calibrate_yres / y;
|
||||
calibrate_xres = (gdouble) ruler_width * calibrate_xres / x;
|
||||
calibrate_yres = (gdouble) ruler_height * calibrate_yres / y;
|
||||
|
||||
chain_button = g_object_get_data (G_OBJECT (resolution_entry),
|
||||
"chain_button");
|
||||
if (chain_button &&
|
||||
ABS (x -y) > GIMP_MIN_RESOLUTION)
|
||||
chain_button = GIMP_COORDINATES_CHAINBUTTON (resolution_entry);
|
||||
|
||||
if (ABS (x -y) > GIMP_MIN_RESOLUTION)
|
||||
gimp_chain_button_set_active (GIMP_CHAIN_BUTTON (chain_button), FALSE);
|
||||
|
||||
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (resolution_entry),
|
||||
|
|
Loading…
Reference in New Issue