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.Menu
holding 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.Menu
orNone
) – TheGarcon.Menu
to be associated with theGarconGtk.Menu
, orNone
.- Returns:
a new
GarconGtk.Menu
for garcon_menu.- Return type:
Creates a new
GarconGtk.Menu
for 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.Menu
usingGObject.Object.unref
().
- get_menu()¶
- Returns:
the
Garcon.Menu
for self.- Return type:
The
Garcon.Menu
used to create theGtk.Menu
.The caller is responsible to releasing the returned
Garcon.Menu
usingGObject.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.Menu
to 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