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 139858 - spinbutton can display -0 (negative zero)
spinbutton can display -0 (negative zero)
Status: RESOLVED DUPLICATE of bug 118959
Product: gtk+
Classification: Platform
Component: Widget: Other
2.4.x
Other Linux
: Normal trivial
: ---
Assigned To: gtk-bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2004-04-13 00:54 UTC by gnome_bugs
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description gnome_bugs 2004-04-13 00:54:37 UTC
Steps to reproduce:
1) Open any image.
2) Access any selector bar with an adjacent number field.  (For example,
Brightness in the Brightness-Contrast dialog box.)
3) With the mouse, drag the horizontal Contrast selector bar exactly to number "1".
4) Press the left arrow of the keyboard to decrement the value by one.

Result:
A "-0" (negative zero) appears in the adjacent number field.

This bug seems to be triggered only on the first time that the UI element tries
to go down to zero from a positive number.  For example, dragging the bar to
"2", then pressing the left arrow key twice does not have the same effect. 
However, once you trigger it, you can press the right arrow key to go up to "1"
again, then the left arrow key to reproduce it ad infinitum.  You may also go
down to "-1", then press the right arrow to return to "-0".

I am running Gnome 2.6.  Distributor: Gentoo Linux.  Date: 04/03/04.
Comment 1 Sven Neumann 2004-04-13 10:01:54 UTC
Since this is just a standard GTK+ spinbutton, this would be a GTK+ bug then.
This was originally reported against GIMP 2.0.0. I can confirm the misbehaviour
with GTK+-2.2.4.
Comment 2 Owen Taylor 2004-04-16 18:56:04 UTC
Merging with the identical GtkScale bug

*** This bug has been marked as a duplicate of 118959 ***