1 /*
2  * Copyright (C) 2008 Tristan Van Berkom.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of the
7  * License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  * Authors:
19  *   Tristan Van Berkom <tvb@gnome.org>
20  */
21 #ifndef _GLADE_EDITOR_BUTTON_H_
22 #define _GLADE_EDITOR_BUTTON_H_
23 
24 #include <gtk/gtk.h>
25 #include <gladeui/glade-editable.h>
26 
27 
28 G_BEGIN_DECLS
29 
30 #define GLADE_TYPE_EDITOR_TABLE	            (glade_editor_table_get_type ())
31 #define GLADE_EDITOR_TABLE(obj)		    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_EDITOR_TABLE, GladeEditorTable))
32 #define GLADE_EDITOR_TABLE_CLASS(klass)	    (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_EDITOR_TABLE, GladeEditorTableClass))
33 #define GLADE_IS_EDITOR_TABLE(obj)	    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_EDITOR_TABLE))
34 #define GLADE_IS_EDITOR_TABLE_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_EDITOR_TABLE))
35 #define GLADE_EDITOR_TABLE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GLADE_TYPE_EDITOR_TABLE, GladeEditorEditorClass))
36 
37 typedef struct _GladeEditorTable        GladeEditorTable;
38 typedef struct _GladeEditorTableClass   GladeEditorTableClass;
39 typedef struct _GladeEditorTablePrivate GladeEditorTablePrivate;
40 
41 struct _GladeEditorTable
42 {
43   GtkGrid  parent;
44 
45   GladeEditorTablePrivate *priv;
46 };
47 
48 struct _GladeEditorTableClass
49 {
50   GtkGridClass parent;
51 
52   void   (* glade_reserved1)   (void);
53   void   (* glade_reserved2)   (void);
54   void   (* glade_reserved3)   (void);
55   void   (* glade_reserved4)   (void);
56 };
57 
58 GType            glade_editor_table_get_type (void);
59 GtkWidget       *glade_editor_table_new      (GladeWidgetAdaptor   *adaptor,
60 					      GladeEditorPageType   type);
61 
62 G_END_DECLS
63 
64 #endif  /* _GLADE_EDITOR_TABLE_H_ */
65