GNOME Bugzilla – Bug 169011
Scale image height field changes don't stick when linked with width field
Last modified: 2008-01-15 12:49:10 UTC
Version details: GTK+ 2.6.1 Open Image->Scale Image. Leave the link icon connected between the height and width fields. Change the Width field and then tab out (or click in another field). The height field is updated to keep the ratio intact. Now change the Width field and then tab out (or click in another field). The value is reset to the original value. Now change the Width field again but this time hold down the shift key and tab out of that field. *NOW* the width is kept and the height is updated to keep the ratio intact. In older versions of GIMP, changes to the width would update the height to keep the ratio intact whenever you tabbed out of the field. Looks like the keybindings may have changed or maybe the focus order? At a minimum, the keystrokes that work in height should work in width to make changes that keep the ratio intact. I also noticed that "Reset" actually steps back through the changes you've made. This is somewhat useful, but "Reset" should go all the way back. "Step Back" might be added to step back through changes, though it does seem a bit overkill for dialogs like this (IMHO).
Well, looks like Reset at least is seriously broken.
This used to work at some point, so it seems that the behaviour of GObject has undergone a subtle change with glib-2.6. Fixed Reset in both branches: 2005-03-02 Sven Neumann <sven@gimp.org> * app/dialogs/resize-dialog.c (resize_dialog_reset) * app/dialogs/scale-dialog.c (scale_dialog_reset): don't rely on GObject internals about the order in which properties are being set. Fixes one aspect of bug #169011.
There is a similar problem with the Height field. Open Image -> Scale Image (or Layers -> Scale Layer). Change the height and press Enter and usually the height will revert back to the original. If you change the height again and press Enter the width changes as expected. (Sometimes it works first time but I cannot work out what, if anything, I am doing differently). Finally, if you then press Enter again, the width sometimes changes slightly (by maybe 1 pixel). (noticed on version 2.2.4, Windows XP)
Please note that 2.2.4 was released on 2005-02-23, and comment #2 is from 2005-03-02.
The updating problems do not occur in the development branch, because of major changes in the code for GimpSizeBox. These changes are too extensive to safely backport to the stable branch, given the relatively minor nature of the problem, so I am going to resolve the bug as FIXED.