indentation-c-style: Update preferences UI file to gtk+-3
[anjuta.git] / plugins / sourceview / sourceview.h
blob235530cbb141d53072ba07b15f2f0813b71c7fd1
1 /***************************************************************************
2 * sourceview.h
4 * Do Dez 29 00:50:15 2005
5 * Copyright 2005 Johannes Schmid
6 * jhs@gnome.org
7 ***************************************************************************/
9 /*
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Library General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 #ifndef SOURCEVIEW_H
26 #define SOURCEVIEW_H
28 #include <glib.h>
29 #include <glib-object.h>
30 #include <gtk/gtk.h>
31 #include <libanjuta/anjuta-preferences.h>
32 #include <libanjuta/anjuta-status.h>
33 #include <libanjuta/anjuta-plugin.h>
34 #include <gio/gio.h>
36 #define ANJUTA_TYPE_SOURCEVIEW (sourceview_get_type ())
37 #define ANJUTA_SOURCEVIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_SOURCEVIEW, Sourceview))
38 #define ANJUTA_SOURCEVIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), ANJUTA_TYPE_SOURCEVIEW, SourceviewClass))
39 #define ANJUTA_IS_SOURCEVIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_SOURCEVIEW))
40 #define ANJUTA_IS_SOURCEVIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_SOURCEVIEW))
41 #define ANJUTA_SOURCEVIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_SOURCEVIEW, SourceviewClass))
43 typedef struct SourceviewPrivate SourceviewPrivate;
45 typedef struct {
46 GtkBox parent;
47 SourceviewPrivate *priv;
48 } Sourceview;
50 typedef struct {
51 GtkBoxClass parent_class;
52 void (*update_ui);
54 } SourceviewClass;
56 GType sourceview_get_type(void);
57 Sourceview *sourceview_new(GFile* file, const gchar* filename, AnjutaPlugin* plugin);
59 #endif /* SOURCEVIEW_H */