Top |
char * | command | Read / Write |
char * | comment | Read / Write |
char * | desktop-id | Read / Write |
GFile * | file | Read / Write / Construct Only |
char * | generic-name | Read / Write |
gboolean | hidden | Read / Write |
char * | icon-name | Read / Write |
char * | name | Read / Write |
gboolean | no-display | Read / Write |
char * | path | Read / Write |
gboolean | prefers-non-default-gpu | Read / Write |
gboolean | requires-terminal | Read / Write |
gboolean | supports-startup-notification | Read / Write |
char * | try-exec | Read / Write |
GarconMenuItem *
garcon_menu_item_new (GFile *file
);
Returns (transfer full): a new GarconMenuItem
[constructor]
GarconMenuItem *
garcon_menu_item_new_for_path (const gchar *filename
);
[constructor]
GarconMenuItem *
garcon_menu_item_new_for_uri (const gchar *uri
);
[constructor]
gboolean garcon_menu_item_reload (GarconMenuItem *item
,gboolean *affects_the_outside
,GError **error
);
gboolean garcon_menu_item_reload_from_file (GarconMenuItem *item
,GFile *file
,gboolean *affects_the_outside
,GError **error
);
GFile *
garcon_menu_item_get_file (GarconMenuItem *item
);
Get the GFile for item
. The returned object should be
unreffed with g_object_unref()
when no longer needed.
const gchar *
garcon_menu_item_get_desktop_id (GarconMenuItem *item
);
void garcon_menu_item_set_desktop_id (GarconMenuItem *item
,const gchar *desktop_id
);
void garcon_menu_item_set_command (GarconMenuItem *item
,const gchar *command
);
const gchar *
garcon_menu_item_get_try_exec (GarconMenuItem *item
);
void garcon_menu_item_set_try_exec (GarconMenuItem *item
,const gchar *try_exec
);
void garcon_menu_item_set_name (GarconMenuItem *item
,const gchar *name
);
const gchar *
garcon_menu_item_get_generic_name (GarconMenuItem *item
);
void garcon_menu_item_set_generic_name (GarconMenuItem *item
,const gchar *generic_name
);
void garcon_menu_item_set_comment (GarconMenuItem *item
,const gchar *comment
);
const gchar *
garcon_menu_item_get_icon_name (GarconMenuItem *item
);
void garcon_menu_item_set_icon_name (GarconMenuItem *item
,const gchar *icon_name
);
void garcon_menu_item_set_path (GarconMenuItem *item
,const gchar *path
);
void garcon_menu_item_set_hidden (GarconMenuItem *item
,gboolean hidden
);
gboolean
garcon_menu_item_get_prefers_non_default_gpu
(GarconMenuItem *item
);
void garcon_menu_item_set_prefers_non_default_gpu (GarconMenuItem *item
,gboolean prefers_non_default_gpu
);
gboolean
garcon_menu_item_requires_terminal (GarconMenuItem *item
);
void garcon_menu_item_set_requires_terminal (GarconMenuItem *item
,gboolean requires_terminal
);
void garcon_menu_item_set_no_display (GarconMenuItem *item
,gboolean no_display
);
gboolean
garcon_menu_item_supports_startup_notification
(GarconMenuItem *item
);
void garcon_menu_item_set_supports_startup_notification (GarconMenuItem *item
,gboolean supports_startup_notification
);
GList *
garcon_menu_item_get_categories (GarconMenuItem *item
);
Returns list of categories
void garcon_menu_item_set_categories (GarconMenuItem *item
,GList *categories
);
gboolean garcon_menu_item_has_category (GarconMenuItem *item
,const gchar *category
);
gboolean garcon_menu_item_has_keyword (GarconMenuItem *item
,const gchar *keyword
);
void garcon_menu_item_set_keywords (GarconMenuItem *item
,GList *keywords
);
GarconMenuItemAction * garcon_menu_item_get_action (GarconMenuItem *item
,const gchar *action_name
);
void garcon_menu_item_set_action (GarconMenuItem *item
,const gchar *action_name
,GarconMenuItemAction *action
);
gboolean garcon_menu_item_has_action (GarconMenuItem *item
,const gchar *action_name
);
gboolean
garcon_menu_item_get_show_in_environment
(GarconMenuItem *item
);
gboolean
garcon_menu_item_only_show_in_environment
(GarconMenuItem *item
);
void
garcon_menu_item_increment_allocated (GarconMenuItem *item
);
void
garcon_menu_item_decrement_allocated (GarconMenuItem *item
);
“command”
property “command” char *
Command to be executed when the menu item is clicked.
Owner: GarconMenuItem
Flags: Read / Write
Default value: NULL
“comment”
property “comment” char *
Comment/description for the application. To be displayed e.g. in tooltips of GtkMenuItems.
Owner: GarconMenuItem
Flags: Read / Write
Default value: NULL
“desktop-id”
property “desktop-id” char *
The desktop-file id of this application.
Owner: GarconMenuItem
Flags: Read / Write
Default value: NULL
“file”
property “file” GFile *
The GFile from which the GarconMenuItem
was loaded.
Owner: GarconMenuItem
Flags: Read / Write / Construct Only
“generic-name”
property “generic-name” char *
GenericName of the application (will be displayed in menus etc.).
Owner: GarconMenuItem
Flags: Read / Write
Default value: NULL
“hidden”
property “hidden” gboolean
It means the user deleted (at his level) something that was present (at an upper level, e.g. in the system dirs). It's strictly equivalent to the .desktop file not existing at all, as far as that user is concerned.
Owner: GarconMenuItem
Flags: Read / Write
Default value: FALSE
“icon-name”
property “icon-name” char *
Name of the icon to be displayed for this menu item.
Owner: GarconMenuItem
Flags: Read / Write
Default value: NULL
“name”
property “name” char *
Name of the application (will be displayed in menus etc.).
Owner: GarconMenuItem
Flags: Read / Write
Default value: NULL
“no-display”
property “no-display” gboolean
Whether this menu item is hidden in menus.
Owner: GarconMenuItem
Flags: Read / Write
Default value: FALSE
“path”
property “path” char *
Working directory the application should be started in.
Owner: GarconMenuItem
Flags: Read / Write
Default value: NULL
“prefers-non-default-gpu”
property “prefers-non-default-gpu” gboolean
If true, the application prefers to be run on a more powerful discrete GPU if available.
Owner: GarconMenuItem
Flags: Read / Write
Default value: FALSE
“requires-terminal”
property “requires-terminal” gboolean
Whether this application requires a terinal to be started in.
Owner: GarconMenuItem
Flags: Read / Write
Default value: FALSE
“supports-startup-notification”
property “supports-startup-notification” gboolean
Startup notification support.
Owner: GarconMenuItem
Flags: Read / Write
Default value: FALSE
“try-exec”
property “try-exec” char *
Path to an executable file on disk used to determine if the program is actually installed. If the path is not an absolute path, the file is looked up in the $PATH environment variable. If the file is not present or if it is not executable, the entry may be ignored (not be used in menus, for example).
Owner: GarconMenuItem
Flags: Read / Write
Default value: NULL
“changed”
signalvoid user_function (GarconMenuItem *item, gpointer user_data)
Emitted when GarconMenuItem has been reloaded.
Flags: Run First