[maemo-developers] GtkAction vs. AppMenu

From: Murray Cumming murrayc at murrayc.com
Date: Fri May 22 23:09:49 EEST 2009
On Fri, 2009-05-22 at 19:00 +0200, Alberto Garcia wrote:
> On Fri, May 22, 2009 at 05:08:08PM +0200, Cornelius Hald wrote:
> 
> > The result now is:
> > - gtk_toggle_button_new() is working but it displays the buttons as
> > toggle buttons not as radio buttons.
> 
> Well, that's what looks better in the Fremantle UI style.

Yes, the Hildon HIG seems to suggest this, though it's very vague due to
the non-native-speaker English and the lack of screenshots (I filed bugs
about that already):
http://maemo.org/api_refs/5.0/beta/hig/html/ch06s08.html

However, if radio buttons are meant to look a certain way in Maemo, why
isn't that just a matter of theming or even of making a change in the
GTK+ code instead of asking people to use the GTK+ API in an abnormal
way?

> So even
> if you use gtk radio buttons directly (i.e, without gtk actions) I
> suggest you to do something like this:
> 
> gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (radio_button), FALSE);
> 
> Of course you can still use the traditional radio button look if you
> want, see the attached example (it might help you with the keyboard
> accelerators too).
> 
> Berto
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
-- 
murrayc at murrayc.com
www.murrayc.com
www.openismus.com


More information about the maemo-developers mailing list