Garcon.MenuDirectory¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Directory description |
||
r/w/co |
File |
||
r/w |
Directory icon |
||
r/w |
Directory name |
||
r/w |
Visibility state of the related menu |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Garcon.MenuDirectory(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(file)¶
- Parameters:
- Returns:
- Return type:
Create a new
Garcon.MenuDirectory
for file. You most likely never use this, but retrieve the info fromGarcon.Menu.get_directory
().
- equal(other)¶
- Parameters:
other (
Garcon.MenuDirectory
) – aGarcon.MenuDirectory
- Returns:
- Return type:
Checks if both directories point to the same file.
- get_file()¶
-
Get the
Gio.File
for self. The returned object should be unreffed withGObject.Object.unref
() when no longer needed.
- get_hidden()¶
- Returns:
a the hidden key for self.
- Return type:
Whether self should be hidden. For applications you want to call
Garcon.MenuDirectory.get_visible
().
- get_no_display()¶
- Returns:
a the no-display key for self.
- Return type:
Whether self should be displayed. For applications you want to call
Garcon.MenuDirectory.get_visible
().
- get_show_in_environment()¶
-
Whether self is visible in the current environment which has been set by
Garcon.set_environment
(). For applications you want to callGarcon.MenuDirectory.get_visible
().
- get_visible()¶
-
Check which runs the following checks:
Garcon.MenuDirectory.get_show_in_environment
(),Garcon.MenuDirectory.get_hidden
() andGarcon.MenuDirectory.get_no_display
().
- set_comment(comment)¶
- Parameters:
comment (
str
) – the new description for self.
Set the comment of self.
Property Details¶
- Garcon.MenuDirectory.props.comment¶
-
Directory description (comment).
- Garcon.MenuDirectory.props.file¶
- Name:
file
- Type:
- Default Value:
- Flags:
File
- Garcon.MenuDirectory.props.icon_name¶
-
Icon associated with this directory.
- Garcon.MenuDirectory.props.name¶
-
Name of the directory.