/* $Id$ */ /*- * Copyright (c) 2005 Benedikt Meurer * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef __THUNAR_VFS_MIME_ACTION_H__ #define __THUNAR_VFS_MIME_ACTION_H__ #include G_BEGIN_DECLS; typedef struct _ThunarVfsMimeAction ThunarVfsMimeAction; #define THUNAR_VFS_TYPE_MIME_ACTION (thunar_vfs_mime_action_get_type ()) GType thunar_vfs_mime_action_get_type (void) G_GNUC_CONST; ThunarVfsMimeAction *thunar_vfs_mime_action_new (const gchar *name, const gchar *icon, const gchar *exec) G_GNUC_MALLOC; ThunarVfsMimeAction *thunar_vfs_mime_action_ref (ThunarVfsMimeAction *action); void thunar_vfs_mime_action_unref (ThunarVfsMimeAction *action); const gchar *thunar_vfs_mime_action_get_name (const ThunarVfsMimeAction *action); gboolean thunar_vfs_mime_action_exec (const ThunarVfsMimeAction *action, GdkScreen *screen, GList *uris, GError **error); gboolean thunar_vfs_mime_action_exec_with_env (const ThunarVfsMimeAction *action, GdkScreen *screen, GList *uris, gchar **envp, GError **error); const gchar *thunar_vfs_mime_action_lookup_icon_name (const ThunarVfsMimeAction *action, GtkIconTheme *icon_theme); G_END_DECLS; #endif /* !__THUNAR_VFS_MIME_ACTION_H__ */