[hafqa] [hafqa] [Bug 1186] GtkButton theming ignores GTK_RELIEF_NONE and HALF

From: bugzilla-daemon at maemo.org bugzilla-daemon at maemo.org
Date: Thu Mar 29 17:54:46 EEST 2007
https://maemo.org/bugzilla/show_bug.cgi?id=1186





------- Additional Comments From sean at cs.gmu.edu  2007-03-29 17:54 -------
> > 1. If you click on a button, its relief is shown in the theme's color
> > (in my case, blue).
> 
> This is the button pressed state, which almost by definition has to have the
> relief to give the 'pressed' visual impression. There's really no change in
> behavior compared to stock gtk.

Then stock gtk is broken and you'll need to patch it.

First off, the gtk documentation seems clear to me: gtk.RELIEF_NONE means that the button has no 
relief.  It doesn't say "it'll have a relief when pressed but no relief when not pressed".  It says it has *no* 
relief.

Second, there are hundreds of reasons why you'd want no relief at all, but the humongous obvious one 
is: when you're drawing your own button border or shape!  For example, your logic draws one image 
when pressed, and another when not pressed, and that's precisely what you want your button to look 
like.  This is a very common need, and is supported in every toolkit I can think of.  Except, apparently, 
GTK.

> > 2. If you release a button, it obtains some kind of focus and displays
> > a relief in gray until some other widget has been clicked on.
> 
> That's the 'prelight' state. When you release the stylus the mouse pointer is
> left hovering on top of the widget. (If the widget had focus pressing Space or
> Select key would click it.) No difference from stock gtk.

Maemo doesn't have the same needs as stock gtk.  It's operating in a stylus environment where there is 
NO 'hovering' at all!  A hover state is _completely_ nonsensical here.  There should never be a hover 
state on maemo.

And even if it wasn't nonsensical, I need to reiterate that gtk.RELIEF_NONE means "no relief", not "no 
relief, except during hovering".

Last, why is the hover state appearing AFTER a stylus has pressed it?  It makes no sense to the user at 
all.

As it stands, Button cannot be used to make custom buttons under maemo because it is impossible to 
prevent Button from arbitrarily drawing borders due to mistakes in Nokia's styles and broken GTK 
behavior.

-- 
Configure bugmail: https://maemo.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the hafqa mailing list