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 140068 - Scrollbar buttons should desensitize when position is at limits
Scrollbar buttons should desensitize when position is at limits
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: .General
2.4.x
Other Linux
: Low enhancement
: future
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-04-14 16:35 UTC by Hakon
Modified: 2004-04-20 09:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for desensitizing behavior (494 bytes, patch)
2004-04-16 23:14 UTC, Brian Heung
none Details | Review

Description Hakon 2004-04-14 16:35:44 UTC
With recent OpenOffic.org... the stepping buttons that control the scrollbar
automatically turn insensitive when the scrollbar is at either min or max position.
This seems reasonable, it already works in gtk for spinning buttons. Should it
be considered for scroll buttons too?
Comment 1 Federico Mena Quintero 2004-04-15 02:42:58 UTC
See gtkrange.c:draw_stepper().  The caller could test the value and page_size of
the adjustment against the limits, and pass in an extra "sensitive" argument to
draw_stepper().

Retitling for clarity.
Comment 2 Brian Heung 2004-04-15 10:28:25 UTC
I'm going to look into this since I saw it on your blog and want to get involved with the Gnome-Love.
Comment 3 Fernando Herrera 2004-04-15 17:51:32 UTC
Here there is a detailed explanation :)

http://mail.gnome.org/archives/gnome-love/2004-April/msg00019.html
Comment 4 Owen Taylor 2004-04-16 18:47:13 UTC
Hmm, I thought I already commented on this, but I guess it got lost.

I think the OpenOffice behavior is non-standard visual clutter and
a bad idea.

The point of desensitizing a control is to provide extra information
about whether it works or not. But the information that the scrollbar
is already at the bottom is *already* there.

CC'ing the usability folks in case they want to disagree.
Comment 5 Brian Heung 2004-04-16 23:11:18 UTC
Here is the patch for the OpenOffice behavior. It was a fun exercise and I hope
there aren't any bugs.
Comment 6 Brian Heung 2004-04-16 23:14:09 UTC
Created attachment 26730 [details] [review]
Patch for desensitizing behavior
Comment 7 Brian Heung 2004-04-16 23:18:49 UTC
I just noticed that the patch doesn't work when the page size is the entire
lower -> upper range. Only the top stepper is grayed out.
Comment 8 Matthias Clasen 2004-04-19 12:56:14 UTC
If anything like this is to be appied, it would probably have to be a style
property.
Comment 9 Jody Goldberg 2004-04-19 19:06:31 UTC
This would break gnumeric's scrollbar behaviour.  We use
GtkRange::adjust_bounds to allow the scrollbar arrows to scroll
down past the current maxima.