Re: GTK menu shortcuts
- From: Vreixo Formoso Lopes <metalpain2002 yahoo es>
- To: gtk-list gnome org
- Subject: Re: GTK menu shortcuts
- Date: Mon, 24 Sep 2007 04:34:45 -0300 (ART)
--- AlannY <m alanny ru> escreveu:
> How to use shortcuts in menus? (non ItemFactory).
>
a) create the GtkAccelGroup (gtk_accel_group_new)
b) add it to the Menu (gtk_menu_set_accel_group)
c) Set the accel path for each MenuItem
(gtk_menu_item_set_accel_path), and add the MenuItems
to the Menu
d) Define each path to the accelerator you want
(gtk_accel_map_add_entry)
e) Add the accel group to your application Window
(gtk_window_add_accel_group)
Cheers,
Vreixo
Flickr agora em português. Você clica, todo mundo vê.
http://www.flickr.com.br/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]