3
* Copyright (c) 2005-2006 Benedikt Meurer <benny@xfce.org>
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
15
* You should have received a copy of the GNU Library General Public
16
* License along with this library; if not, write to the
17
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
* Boston, MA 02111-1307, USA.
25
#include <thunar-vfs/thunar-vfs-mime-action-private.h>
26
#include <thunar-vfs/thunar-vfs-mime-action.h>
27
#include <thunar-vfs/thunar-vfs-alias.h>
32
thunar_vfs_mime_action_get_type (void)
34
static GType type = G_TYPE_INVALID;
36
if (G_UNLIKELY (type == G_TYPE_INVALID))
38
static const GTypeInfo info =
40
sizeof (ThunarVfsMimeActionClass),
46
sizeof (ThunarVfsMimeAction),
52
type = g_type_register_static (THUNAR_VFS_TYPE_MIME_HANDLER, I_("ThunarVfsMimeAction"), &info, 0);
61
* _thunar_vfs_mime_action_new:
62
* @command : the command for the mime action.
63
* @name : the name for the mime action.
64
* @icon : the icon for the mime action or %NULL.
65
* @flags : the #ThunarVfsMimeHandlerFlags for the mime action.
67
* Allocates a new #ThunarVfsMimeAction with the given
70
* Return value: the newly allocated #ThunarVfsMimeAction.
73
_thunar_vfs_mime_action_new (const gchar *command,
76
ThunarVfsMimeHandlerFlags flags)
78
g_return_val_if_fail (g_utf8_validate (name, -1, NULL), NULL);
79
g_return_val_if_fail (command != NULL, NULL);
81
return g_object_new (THUNAR_VFS_TYPE_MIME_ACTION,
91
#define __THUNAR_VFS_MIME_ACTION_C__
92
#include <thunar-vfs/thunar-vfs-aliasdef.c>