GarconGtk.Menu¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Menu (31), Gtk.MenuShell (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Menu (12), Gtk.MenuShell (1), Gtk.Container (3), Gtk.Widget (39)
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
menu |
||
r/w |
right click to edit menu items |
||
r/w |
show desktop actions in a submenu |
||
r/w |
show-generic-names |
||
r/w |
show-menu-icons |
||
r/w |
show-tooltips |
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
Fields¶
Class Details¶
- class GarconGtk.Menu(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_desktop_actions_menu(item)¶
- Parameters:
item (
Garcon.MenuItem) – AGarcon.MenuItem- Returns:
a
Gtk.Menuholding all actions described in the desktop file as menu items.- Return type:
Application icons are never shown on the action menu items.
- classmethod new(garcon_menu)¶
- Parameters:
garcon_menu (
Garcon.MenuorNone) – TheGarcon.Menuto be associated with theGarconGtk.Menu, orNone.- Returns:
a new
GarconGtk.Menufor garcon_menu.- Return type:
Creates a new
GarconGtk.Menufor the .menu file referred to by garcon_menu. This operation only fails if garcon_menu is invalid.The caller is responsible to destroy the returned
GarconGtk.MenuusingGObject.Object.unref().
- get_menu()¶
- Returns:
the
Garcon.Menufor self.- Return type:
The
Garcon.Menuused to create theGtk.Menu.The caller is responsible to releasing the returned
Garcon.MenuusingGObject.Object.unref().
- get_right_click_edits()¶
- Returns:
Whether an editor will be launched on secondary mouse clicks
- Return type:
- get_show_desktop_actions()¶
- Returns:
Whether desktop actions are shown in a submenu.
- Return type:
- set_menu(garcon_menu)¶
- Parameters:
garcon_menu (
Garcon.Menu) – TheGarcon.Menuto use
- set_right_click_edits(enable_right_click_edits)¶
- Parameters:
enable_right_click_edits (
bool) – Toggle showing whether to launch an editor when the menu is clicked with the secondary mouse button.
Property Details¶
- GarconGtk.Menu.props.menu¶
- Name:
menu- Type:
- Default Value:
- Flags:
menu
- GarconGtk.Menu.props.right_click_edits¶
-
right click to edit menu items
- GarconGtk.Menu.props.show_desktop_actions¶
-
show desktop actions in a submenu
- GarconGtk.Menu.props.show_generic_names¶
-
show-generic-names
- GarconGtk.Menu.props.show_menu_icons¶
-
show-menu-icons