Top | ![]() |
![]() |
![]() |
![]() |
ThunarVfsMimeApplication * | thunar_vfs_mime_application_new_from_desktop_id () |
ThunarVfsMimeApplication * | thunar_vfs_mime_application_new_from_file () |
gboolean | thunar_vfs_mime_application_is_usercreated () |
GList * | thunar_vfs_mime_application_get_actions () |
#define | thunar_vfs_mime_application_get_command() |
const gchar * | thunar_vfs_mime_application_get_desktop_id () |
#define | thunar_vfs_mime_application_get_flags() |
const gchar * const * | thunar_vfs_mime_application_get_mime_types () |
#define | thunar_vfs_mime_application_get_name() |
guint | thunar_vfs_mime_application_hash () |
gboolean | thunar_vfs_mime_application_equal () |
ThunarVfsMimeApplication *
thunar_vfs_mime_application_new_from_desktop_id
(const gchar *desktop_id
);
Generates a ThunarVfsMimeApplication instance for the application
referenced by desktop_id
. Returns NULL
if desktop_id
is not valid.
The caller is responsible to free the returned instance using
g_object_unref()
when no longer needed.
ThunarVfsMimeApplication * thunar_vfs_mime_application_new_from_file (const gchar *path
,const gchar *desktop_id
);
Generates a new ThunarVfsMimeApplication for the application
described by path
and desktop_id
.
The caller is responsible to free the returned instance using
g_object_unref()
when no longer needed.
You should really seldomly use this function and always
prefer thunar_vfs_mime_application_new_from_desktop_id()
.
gboolean
thunar_vfs_mime_application_is_usercreated
(const ThunarVfsMimeApplication *mime_application
);
Returns TRUE
if the mime_application
was created by the user
using a file manager, i.e. through the "Open With" dialog in
Thunar.
GList *
thunar_vfs_mime_application_get_actions
(ThunarVfsMimeApplication *mime_application
);
Returns the list of ThunarVfsMimeActions available
for the mime_application
. The ThunarVfsMimeActions
are an implementation of the desktop actions mentioned in
the desktop entry specification.
The caller is responsible to free the returned list using
1 2 |
g_list_foreach (list, (GFunc) g_object_unref, NULL); g_list_free (list); |
when no longer needed.
#define thunar_vfs_mime_application_get_command(mime_application) (thunar_vfs_mime_handler_get_command (THUNAR_VFS_MIME_HANDLER ((mime_application))))
Returns the command for mime_application
.
const gchar *
thunar_vfs_mime_application_get_desktop_id
(const ThunarVfsMimeApplication *mime_application
);
Returns the desktop-id of mime_application
.
#define thunar_vfs_mime_application_get_flags(mime_application) (thunar_vfs_mime_handler_get_flags (THUNAR_VFS_MIME_HANDLER ((mime_application))))
Returns the ThunarVfsMimeHandlerFlags for mime_handler
.
const gchar * const *
thunar_vfs_mime_application_get_mime_types
(const ThunarVfsMimeApplication *mime_application
);
Returns the list of MIME-types supported by application
or NULL
if the mime_application
doesn't support any MIME-types
at all.
The returned NULL
-terminated string array is owned by
mime_application
and must not be free by the caller.
#define thunar_vfs_mime_application_get_name(mime_application) (thunar_vfs_mime_handler_get_name (THUNAR_VFS_MIME_HANDLER ((mime_application))))
Returns the name for mime_application
.
guint
thunar_vfs_mime_application_hash (gconstpointer mime_application
);
Converts mime_application
to a hash value. It can be
passed to g_hash_table_new()
as the hash_func
parameter,
when using ThunarVfsMimeApplications as keys
in a GHashTable.
typedef struct _ThunarVfsMimeApplication ThunarVfsMimeApplication;
The ThunarVfsMimeApplication struct contains private data only, and should be accessed using the functions below.