1
/* GIMP - The GNU Image Manipulation Program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
* The GIMP Help plug-in
5
* Copyright (C) 1999-2004 Sven Neumann <sven@gimp.org>
6
* Michael Natterer <mitch@gimp.org>
7
* Henrik Brix Andersen <brix@gimp.org>
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
/* This code is written so that it can also be compiled standalone.
25
* It shouldn't depend on libgimp.
34
#include "gimphelptypes.h"
36
#include "gimphelpitem.h"
39
#define _(String) (String)
41
#include "libgimp/stdplugins-intl.h"
45
/* public functions */
48
gimp_help_item_new (const gchar *ref,
52
GimpHelpItem *item = g_new0 (GimpHelpItem, 1);
54
item->ref = g_strdup (ref);
55
item->title = g_strdup (title);
56
item->parent = g_strdup (parent);
62
gimp_help_item_free (GimpHelpItem *item)
66
g_free (item->parent);
68
g_list_free (item->children);