[maemo-developers] GtkAction vs. AppMenu

From: Cornelius Hald hald at icandy.de
Date: Mon May 25 19:19:35 EEST 2009
On Mon, 2009-05-25 at 12:24 +0200, Murray Cumming wrote:
> On Sun, 2009-05-24 at 19:58 +0200, Cornelius Hald wrote:
> > Another thing is, that if you compare those two menus, you can easily
> > see that the Diablo menu has more structure due to the use of
> > separators. I'm not yet sure how to get back this structure, but I'll
> > make some experiments. HIG suggestions are welcome as well :)
> 
> The Hildon HIG 
> http://maemo.org/api_refs/5.0/beta/hig/html/ch06s09.html
> says
> "
> Only use toggle buttons as filters in a menu. Use them in groups, so
> they are not mistaken for regular buttons. Make the group behave like
> either a group of check buttons or a group of GTK radio buttons, as
> required.
> "
> 
> I wonder how we should "use them in a group". Maybe putting them in a
> "filter" has that effect.

I just tried that, and indeed using hildon_app_menu_add_filter() groups
the toggle buttons together into one row.

I made to screenshots to illustrate the point. The "radio group"
consists of the four buttons with the labels "Small", "Normal", "Large"
and "Huge".

1) Using hildon_app_menu_append() you get the normal 2 column layout:
http://zwong.de/wp-content/uploads/2009/05/app_menu_with_buttons.png

2) Using hildon_app_menu_add_filter() puts all of them into the first
row of the menu:
http://zwong.de/wp-content/uploads/2009/05/app_menu_with_filter.png

I hope this helps! The drawback is, you can have only one Filter per
menu :/




More information about the maemo-developers mailing list