[maemo-developers] GtkAction vs. AppMenu
From: Alberto Garcia agarcia at igalia.comDate: Fri May 22 17:00:08 EEST 2009
- Previous message: GtkAction vs. AppMenu
- Next message: GtkAction vs. AppMenu
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, May 22, 2009 at 03:24:01PM +0200, Cornelius Hald wrote:
> But so that you don't have to read through this big and ugly file,
> I'll try to outline what I do with one of the actions. Casts etc.
> are removed to make it less cluttered:
>
> action = gtk_toggle_action_new("bold", "Bold", NULL, GTK_STOCK_BOLD));
> gtk_action_set_accel_group(action, accel_group);
> gtk_action_set_accel_path(action, ACCEL_PATH_STYLE_BOLD);
> gtk_accel_map_add_entry(ACCEL_PATH_STYLE_BOLD, GDK_b, GDK_CONTROL_MASK);
[...]
Try also this:
gtk_window_add_accel_group (window, accel);
(with window being the GtkWindow where the app menu is)
> > Try using gtk_radio_button_new_from_widget () to create all
> > buttons after the first one.
>
> I'll tried in three different ways with different outcomes.
> Unfortunately non of them was good :(
Look at the correction I sent in a subsequent e-mail: try using
gtk_toggle_button_new() instead of gtk_radio_button_*()
Berto
- Previous message: GtkAction vs. AppMenu
- Next message: GtkAction vs. AppMenu
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
