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 558215 - unit and zoom entries in Statusbar not visible
unit and zoom entries in Statusbar not visible
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
git master
Other All
: Normal normal
: 2.6
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2008-10-28 09:56 UTC by Heiko Schmidt
Modified: 2008-10-29 22:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Heiko Schmidt 2008-10-28 09:56:00 UTC
If only one image is open all is ok. But beginning with the second image 
the zoom and units field in the statusbar is initially empty. If I change unit and/or zoom values (pressing + or - key to change zoom) the entries are visible then.
Comment 1 Michael Natterer 2008-10-28 10:00:46 UTC
Indeed, seems the initial emission of GimpDisplayShell::scaled() got lost
or optimized away when overpanning was implemented.

Martin, could you have a look at this?
Comment 2 Sven Neumann 2008-10-29 19:51:35 UTC
Mitch, have you tested this with GIMP 2.6? It's broken there as well?
Comment 3 Martin Nordholts 2008-10-29 19:54:14 UTC
I have not confirmed it, but this problem is likely to have been introduced by:

2008-10-22  Martin Nordholts  <martinn@svn.gnome.org>

	Bug 556804 – Zoom drop down doesn't update

	* app/display/gimpdisplayshell-scale.c
	* app/display/gimpdisplayshell-callbacks.c: Fix calls to
	gimp_display_shell_scaled() when Resize window on zoom is enabled.

That fix is correct though. So this needs a new fix.
Comment 4 Martin Nordholts 2008-10-29 22:41:56 UTC
The safest fix is to go back to making the statusbar update as it does in GIMP 2.4, so I have commited that fix to trunk and gimp-2-6. (Note that this fix is not a revert of the fix for bug 556804, rather an adjustment to the fix.)

2008-10-29  Martin Nordholts  <martinn@svn.gnome.org>

	Bug 558215 – unit and zoom entries in Statusbar not visible

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_size_allocate): Don't try to be clever,
	call gimp_display_shell_scaled() whenever the canvas size changes
	so a newly created display shell gets updated properly.

Thank you for reporting this before 2.6.2 came out Heiko, that saved us quite a lot of grief.