Re: next steps for touch support in GTK+

On Sat, Aug 04, 2012 at 03:39:05PM +0100, Emmanuele Bassi wrote:
> one implies a "soft" action (GtkToggleButton), whereas the other
> implies something similar of a hardware switch (GtkSwitch).

As every user knows, widgets relay wishes to magic pixies.  I wonder if
that is soft or hard action, maybe it depends on how hard you need to
beat the pixies to do what you want.

Do you actually expect different kinds of on/off controls to be mixed
wildly because each was selected based on how soft is the action it

> they both
> have their use cases which are not interchangeable:
> the page above should become part of the new Human Interface
> guidelines/design patterns. not every application should use switches,
> nor existing applications should be mindlessly migrated to moving from
> toggle and/or check buttons to switches.

All cases listed there as good use cases of GtkSwitch would be – for me
– improved by using a plain toggle button.

It would take less horizontal space, it would be less wordy, it would
not leave me wondering whether it shows ON when it is on or whether I
should move it to ON if I want it ON (yes, I still do not remember it),
it would not look trendy, and it would not have translation issues.  In
fact, even the ‘wrong’ checkbuttons would represent an improvement for

I would also say the widgets are completely interchangeable, but forced
to interpret the statement ‘their use cases are not interchangeable'
somehow I would have to conclude that GtkSwitch has no meaningful use
case at all.  Could the page be improved to include this?  In my opinion
it could lead to a considerable simplification of the guidelines.

> the short takeaway is that the switch should be used in specific
> cases, and that the way its been defined as a widget does not allow
> inheritance from GtkToggleButton or GtkButton (no label, no children,
> styling of trough and handle).

I am sorry but, again, this is just a recapitulation of the status quo.
Stating it a hundered times does not make problems vanish magically even
if you beat the pixies really hard with a switch.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]