Top |
GarconMenuDirectory * | garcon_menu_directory_new () |
GFile * | garcon_menu_directory_get_file () |
const gchar * | garcon_menu_directory_get_name () |
void | garcon_menu_directory_set_name () |
const gchar * | garcon_menu_directory_get_comment () |
void | garcon_menu_directory_set_comment () |
const gchar * | garcon_menu_directory_get_icon_name () |
void | garcon_menu_directory_set_icon_name () |
gboolean | garcon_menu_directory_get_no_display () |
void | garcon_menu_directory_set_no_display () |
gboolean | garcon_menu_directory_get_hidden () |
gboolean | garcon_menu_directory_get_show_in_environment () |
gboolean | garcon_menu_directory_get_visible () |
gboolean | garcon_menu_directory_equal () |
char * | comment | Read / Write |
GFile * | file | Read / Write / Construct Only |
char * | icon-name | Read / Write |
char * | name | Read / Write |
gboolean | no-display | Read / Write |
Element that represents a .directory file in the menu configurations.
Each menu (except for the root menu) has a GarconMenuDirectory,
see garcon_menu_get_directory()
.
GarconMenuDirectory *
garcon_menu_directory_new (GFile *file
);
Create a new GarconMenuDirectory for file
. You most likely never
use this, but retrieve the info from garcon_menu_get_directory()
.
[method]
GFile *
garcon_menu_directory_get_file (GarconMenuDirectory *directory
);
Get the GFile for directory
. The returned object should be
unreffed with g_object_unref()
when no longer needed.
const gchar *
garcon_menu_directory_get_name (GarconMenuDirectory *directory
);
Get the name of directory
.
void garcon_menu_directory_set_name (GarconMenuDirectory *directory
,const gchar *name
);
Set the name of directory
.
const gchar *
garcon_menu_directory_get_comment (GarconMenuDirectory *directory
);
Get the comment of directory
.
void garcon_menu_directory_set_comment (GarconMenuDirectory *directory
,const gchar *comment
);
Set the comment of directory
.
const gchar *
garcon_menu_directory_get_icon_name (GarconMenuDirectory *directory
);
Get the icon name of directory
.
void garcon_menu_directory_set_icon_name (GarconMenuDirectory *directory
,const gchar *icon_name
);
Set the icon name of directory
.
gboolean
garcon_menu_directory_get_no_display (GarconMenuDirectory *directory
);
Whether directory
should be displayed.
For applications you want to call garcon_menu_directory_get_visible()
.
void garcon_menu_directory_set_no_display (GarconMenuDirectory *directory
,gboolean no_display
);
Set the NoDisplay key of directory
.
gboolean
garcon_menu_directory_get_hidden (GarconMenuDirectory *directory
);
Whether directory
should be hidden.
For applications you want to call garcon_menu_directory_get_visible()
.
gboolean
garcon_menu_directory_get_show_in_environment
(GarconMenuDirectory *directory
);
Whether directory
is visible in the current environment
which has been set by garcon_set_environment()
.
For applications you want to call garcon_menu_directory_get_visible()
.
gboolean
garcon_menu_directory_get_visible (GarconMenuDirectory *directory
);
Check which runs the following checks:
garcon_menu_directory_get_show_in_environment()
,
garcon_menu_directory_get_hidden()
and
garcon_menu_directory_get_no_display()
.
gboolean garcon_menu_directory_equal (GarconMenuDirectory *directory
,GarconMenuDirectory *other
);
Checks if both directories point to the same file.
“comment”
property “comment” char *
Directory description (comment).
Owner: GarconMenuDirectory
Flags: Read / Write
Default value: NULL
“file”
property “file” GFile *
File.
Owner: GarconMenuDirectory
Flags: Read / Write / Construct Only
“icon-name”
property “icon-name” char *
Icon associated with this directory.
Owner: GarconMenuDirectory
Flags: Read / Write
Default value: NULL
“name”
property “name” char *
Name of the directory.
Owner: GarconMenuDirectory
Flags: Read / Write
Default value: NULL