| Top |
ThunarVfsMimeHandlerThunarVfsMimeHandler — Abstract base class for ThunarVfsMimeApplication and ThunarVfsMimeAction. |
| const gchar * | thunar_vfs_mime_handler_get_command () |
| ThunarVfsMimeHandlerFlags | thunar_vfs_mime_handler_get_flags () |
| const gchar * | thunar_vfs_mime_handler_get_name () |
| gboolean | thunar_vfs_mime_handler_exec () |
| gboolean | thunar_vfs_mime_handler_exec_with_env () |
| const gchar * | thunar_vfs_mime_handler_lookup_icon_name () |
| gchar * | command | Read / Write / Construct Only |
| ThunarVfsMimeHandlerFlags | flags | Read / Write / Construct Only |
| gchar * | icon | Read / Write / Construct Only |
| gchar * | name | Read / Write / Construct Only |
GObject
╰── ThunarVfsMimeHandler
├── ThunarVfsMimeAction
╰── ThunarVfsMimeApplication
const gchar *
thunar_vfs_mime_handler_get_command (const ThunarVfsMimeHandler *mime_handler);
Returns the command associated with mime_handler
.
ThunarVfsMimeHandlerFlags
thunar_vfs_mime_handler_get_flags (const ThunarVfsMimeHandler *mime_handler);
Returns the ThunarVfsMimeHandlerFlags for mime_handler
.
const gchar *
thunar_vfs_mime_handler_get_name (const ThunarVfsMimeHandler *mime_handler);
Returns the name of mime_handler
.
gboolean thunar_vfs_mime_handler_exec (const ThunarVfsMimeHandler *mime_handler,GdkScreen *screen,GList *path_list,GError **error);
Wrapper to thunar_vfs_mime_handler_exec_with_env(), which
simply passes a NULL pointer for the environment variables.
mime_handler |
||
screen |
a GdkScreen or |
|
path_list |
a list of ThunarVfsPaths to open. |
|
error |
return location for errors or |
gboolean thunar_vfs_mime_handler_exec_with_env (const ThunarVfsMimeHandler *mime_handler,GdkScreen *screen,GList *path_list,gchar **envp,GError **error);
Executes mime_handler
on screen
using the given path_list
. If
path_list
contains more than one ThunarVfsPath and mime_handler
doesn't support opening multiple documents at once, one
instance of mime_handler
will be spawned for every ThunarVfsPath
given in path_list
.
mime_handler |
||
screen |
a GdkScreen or |
|
path_list |
a list of ThunarVfsPaths to open. |
|
envp |
child's environment or |
|
error |
return location for errors or |
const gchar * thunar_vfs_mime_handler_lookup_icon_name (const ThunarVfsMimeHandler *mime_handler,GtkIconTheme *icon_theme);
Looks up the icon name for mime_handler
in
icon_theme
. Returns NULL if no suitable
icon is present in icon_theme
.
The returned icon can be either a named icon in
icon_theme
or an absolute path to an icon file,
or NULL.
Various flags associated with a ThunarVfsMimeHandler.
typedef struct _ThunarVfsMimeHandler ThunarVfsMimeHandler;
The ThunarVfsMimeHandler contains private data only, and should be accessed using the functions below.
“command” property “command” gchar *
The command line for this ThunarVfsMimeHandler.
Flags: Read / Write / Construct Only
Default value: NULL
“flags” property“flags” ThunarVfsMimeHandlerFlags
The ThunarVfsMimeHandlerFlags for this ThunarVfsMimeHandler.
Flags: Read / Write / Construct Only
“icon” property “icon” gchar *
The icon of this ThunarVfsMimeHandler, which can be either
NULL in which case no icon is known, an absolute path to
an icon file, or a named icon.
Flags: Read / Write / Construct Only
Default value: NULL
“name” property “name” gchar *
The name of this ThunarVfsMimeHandler.
Flags: Read / Write / Construct Only
Default value: NULL