1 /* GIMP - The GNU Image Manipulation Program
2  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3  *
4  * gimppluginview.h
5  * Copyright (C) 2017  Michael Natterer <mitch@gimp.org>
6  * Copyright (C) 2004  Sven Neumann <sven@gimp.org>
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef __GIMP_PLUG_IN_VIEW_H__
23 #define __GIMP_PLUG_IN_VIEW_H__
24 
25 
26 #define GIMP_TYPE_PLUG_IN_VIEW            (gimp_plug_in_view_get_type ())
27 #define GIMP_PLUG_IN_VIEW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_PLUG_IN_VIEW, GimpPlugInView))
28 #define GIMP_PLUG_IN_VIEW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PLUG_IN_VIEW, GimpPlugInViewClass))
29 #define GIMP_IS_PLUG_IN_VIEW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_PLUG_IN_VIEW))
30 #define GIMP_IS_PLUG_IN_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PLUG_IN_VIEW))
31 #define GIMP_PLUG_IN_VIEW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_PLUG_IN_VIEW, GimpPlugInViewClass))
32 
33 
34 typedef struct _GimpPlugInViewClass GimpPlugInViewClass;
35 
36 struct _GimpPlugInView
37 {
38   GtkTreeView  parent_instance;
39 
40   GHashTable  *plug_in_hash;
41 };
42 
43 struct _GimpPlugInViewClass
44 {
45   GtkTreeViewClass   parent_class;
46 
47   void (* changed) (GimpPlugInView *view);
48 };
49 
50 
51 GType       gimp_plug_in_view_get_type    (void) G_GNUC_CONST;
52 
53 GtkWidget * gimp_plug_in_view_new         (GSList         *procedures);
54 
55 gchar     * gimp_plug_in_view_get_plug_in (GimpPlugInView *view);
56 gboolean    gimp_plug_in_view_set_plug_in (GimpPlugInView *view,
57                                            const gchar    *path);
58 
59 
60 #endif  /*  __GIMP_PLUG_IN_VIEW_H__  */
61