Libxfce4ui.GtkActionEntry¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
accel_path |
r/w |
the unique path, used to identify the accelerator |
|
callback |
r/w |
the callback which will be triggered on activation. The callback has to return |
|
default_accelerator |
r/w |
the default key and modifier to trigger the callback linked to the entry |
|
id |
r/w |
unique identifier for instances of this structure (you might want to use a enum) |
|
menu_item_icon_name |
r/w |
optional icon name which will be used to find a image for the item |
|
menu_item_label_text |
r/w |
text which should be shown in the menu |
|
menu_item_tooltip_text |
r/w |
optional tooltip of the item |
|
menu_item_type |
r/w |
the type of the item which should be used for creation |
Methods¶
None
Details¶
- class Libxfce4ui.GtkActionEntry¶
Replacement for the deprecated
Gtk.ActionEntry
. The idea is to provide a fixed list ofLibxfce4ui.GtkActionEntrys
:use
Libxfce4ui.gtk_translate_action_entries
() once to translate the listuse
Libxfce4ui.gtk_accel_map_add_entries
() once to register the provided acceleratorsuse
Libxfce4ui.gtk_get_action_entry_by_id
() to find a single entry, e.g. by using a enumerationuse xfce_gtk_*_new_from_action_entry() to create the specific menu- or tool-items from the entry