Struct

MateDesktopDesktopItem

unstable since: 2.0

Description

struct MateDesktopItem {
  /* No available fields */
}
No description available.

Available since: 2.0

Constructors

mate_desktop_item_new

Creates a MateDesktopItem object. The reference count on the returned value is set to ‘1’.

unstable since: 2.0

mate_desktop_item_new_from_basename

This function loads ‘basename’ from a system data directory and returns its MateDesktopItem.

unstable since: 2.0

mate_desktop_item_new_from_file

This function loads ‘file’ and turns it into a MateDesktopItem.

unstable since: 2.0

mate_desktop_item_new_from_string

This function turns the contents of the string into a MateDesktopItem.

unstable since: 2.0

mate_desktop_item_new_from_uri

This function loads ‘uri’ and turns it into a MateDesktopItem.

unstable since: 2.0

Functions

mate_desktop_item_error_quark
No description available.

unstable since: 2.0

mate_desktop_item_find_icon

This function goes and looks for the icon file. If the icon is not an absolute filename, this will look for it in the standard places. If it can’t find the icon, it will return NULL.

unstable since: 2.0

Instance methods

mate_desktop_item_attr_exists
No description available.

unstable since: 2.0

mate_desktop_item_clear_localestring
No description available.

unstable since: 2.0

mate_desktop_item_clear_section
No description available.

unstable since: 2.0

mate_desktop_item_copy

Creates a copy of a MateDesktopItem. The new copy has a refcount of 1. Note: Section stack is NOT copied.

unstable since: 2.0

mate_desktop_item_drop_uri_list

A list of files or urls dropped onto an icon, the proper (Url or File) exec is run you can pass directly string that you got as the text/uri-list. This just parses the list and calls.

unstable since: 2.0

mate_desktop_item_drop_uri_list_with_env

See mate_desktop_item_drop_uri_list for a full description. This function additionally passes an environment vector for the child process which is to be launched.

unstable since: 2.0

mate_desktop_item_exists

Attempt to figure out if the program that can be executed by this item actually exists. First it tries the TryExec attribute to see if that contains a program that is in the path. Then if there is no such attribute, it tries the first word of the Exec attribute.

unstable since: 2.0

mate_desktop_item_get_attr_locale
No description available.

unstable since: 2.0

mate_desktop_item_get_boolean
No description available.

unstable since: 2.0

mate_desktop_item_get_entry_type

Gets the type attribute (the ‘Type’ field) of the item. This should usually be ‘Application’ for an application, but it can be ‘Directory’ for a directory description. There are other types available as well. The type usually indicates how the desktop item should be handeled and how the ‘Exec’ field should be handeled.

unstable since: 2.0

mate_desktop_item_get_file_status

This function checks the modification time of the on-disk file to see if it is more recent than the in-memory data.

unstable since: 2.0

mate_desktop_item_get_icon

This function goes and looks for the icon file. If the icon is not set as an absolute filename, this will look for it in the standard places. If it can’t find the icon, it will return NULL.

unstable since: 2.0

mate_desktop_item_get_languages
No description available.

unstable since: 2.0

mate_desktop_item_get_localestring
No description available.

unstable since: 2.0

mate_desktop_item_get_localestring_lang
No description available.

unstable since: 2.0

mate_desktop_item_get_location
No description available.

unstable since: 2.0

mate_desktop_item_get_string
No description available.

unstable since: 2.0

mate_desktop_item_get_strings
No description available.

unstable since: 2.0

mate_desktop_item_launch

This function runs the program listed in the specified ‘item’, optionally appending additional arguments to its command line. It uses

g_shell_parse_argv to parse the the exec string into a vector which is

then passed to #g_spawn_async for execution. This can return all the errors from MateURL, #g_shell_parse_argv and #g_spawn_async, in addition to it’s own. The files are only added if the entry defines one of the standard % strings in it’s Exec field.

unstable since: 2.0

mate_desktop_item_launch_on_screen

See mate_desktop_item_launch for a full description. This function additionally attempts to launch the application on a given screen and workspace.

unstable since: 2.0

mate_desktop_item_launch_with_env

See mate_desktop_item_launch for a full description. This function additionally passes an environment vector for the child process which is to be launched.

unstable since: 2.0

mate_desktop_item_ref

Increases the reference count of the specified item.

unstable since: 2.0

mate_desktop_item_save

Writes the specified item to disk. If the ‘under’ is NULL, the original location is used. It sets the location of this entry to point to the new location.

unstable since: 2.0

mate_desktop_item_set_boolean
No description available.

unstable since: 2.0

mate_desktop_item_set_entry_type
No description available.

unstable since: 2.0

mate_desktop_item_set_launch_time
No description available.

unstable since: 2.0

mate_desktop_item_set_localestring
No description available.

unstable since: 2.0

mate_desktop_item_set_localestring_lang
No description available.

unstable since: 2.0

mate_desktop_item_set_location

Set’s the ‘location’ uri of this item.

unstable since: 2.0

mate_desktop_item_set_location_file

Set’s the ‘location’ uri of this item to the given file.

unstable since: 2.0

mate_desktop_item_set_string
No description available.

unstable since: 2.0

mate_desktop_item_set_strings
No description available.

unstable since: 2.0

mate_desktop_item_unref

Decreases the reference count of the specified item, and destroys the item if there are no more references left.

unstable since: 2.0