[maemo-developers] GtkAction vs. AppMenu

From: Cornelius Hald hald at icandy.de
Date: Tue May 19 18:24:47 EEST 2009
On Wed, 2009-04-29 at 20:19 +0200, Alberto Garcia wrote:
> On Wed, Apr 29, 2009 at 07:37:03PM +0200, Cornelius Hald wrote:
> 
> > Or is it possible to create a GtkButton out of a GtkAction?
> 
> Try this:
> 
> button = gtk_button_new ();
> gtk_action_connect_proxy (action, button);

Thanks again for your answer it worked very well and I have now a nice
HildonAppMenu containing buttons which were created like you wrote.

I have only two more problems related with that. Hopefully you can help
me there too:

1) The accelerators of my actions don't show up on the menu buttons and
they don't work. What do I have to do to get them back? If I create an
old school GtkMenuItem out of my GtkAction the accelerators are working
fine.

2) How do I get my GtkRadioActions to work with the HildonAppMenu? I
created the the buttons with gtk_radio_button_new() and then used
gtk_action_connect_proxy() like with the normal GtkActions above.
The problem is that now all of the radio buttons are selected active at
the same time.

A screenshot of how the menu looks atm can be found here:
http://zwong.de/wp-content/uploads/2009/05/conboy_new_style_menu.png


Thanks for your time!
Conny


More information about the maemo-developers mailing list