After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 169011 - Scale image height field changes don't stick when linked with width field
Scale image height field changes don't stick when linked with width field
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.2.x
Other Linux
: Normal normal
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-03-02 19:22 UTC by Michael J. Hammel
Modified: 2008-01-15 12:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael J. Hammel 2005-03-02 19:22:42 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).
Comment 1 Sven Neumann 2005-03-02 20:47:38 UTC
Well, looks like Reset at least is seriously broken.
Comment 2 Sven Neumann 2005-03-02 21:16:20 UTC
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.
Comment 3 Rebecca Yates 2005-04-16 12:13:04 UTC
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)
Comment 4 Michael Schumacher 2005-04-21 11:07:15 UTC
Please note that 2.2.4 was released on 2005-02-23, and comment #2 is from
2005-03-02.
Comment 5 weskaggs 2005-06-21 18:34:22 UTC
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.