2
* gedit-charmap-plugin.h - Character map side-pane for gedit
4
* Copyright (C) 2006 Steve Frécinaux
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
#ifndef __GEDIT_CHARMAP_PLUGIN_H__
24
#define __GEDIT_CHARMAP_PLUGIN_H__
27
#include <glib-object.h>
28
#include <gedit/gedit-plugin.h>
33
* Type checking and casting macros
35
#define GEDIT_TYPE_CHARMAP_PLUGIN (gedit_charmap_plugin_get_type ())
36
#define GEDIT_CHARMAP_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GEDIT_TYPE_CHARMAP_PLUGIN, GeditCharmapPlugin))
37
#define GEDIT_CHARMAP_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GEDIT_TYPE_CHARMAP_PLUGIN, GeditCharmapPluginClass))
38
#define GEDIT_IS_CHARMAP_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GEDIT_TYPE_CHARMAP_PLUGIN))
39
#define GEDIT_IS_CHARMAP_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GEDIT_TYPE_CHARMAP_PLUGIN))
40
#define GEDIT_CHARMAP_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GEDIT_TYPE_CHARMAP_PLUGIN, GeditCharmapPluginClass))
42
/* Private structure type */
43
typedef struct _GeditCharmapPluginPrivate GeditCharmapPluginPrivate;
46
* Main object structure
48
typedef struct _GeditCharmapPlugin GeditCharmapPlugin;
50
struct _GeditCharmapPlugin
52
GeditPlugin parent_instance;
58
typedef struct _GeditCharmapPluginClass GeditCharmapPluginClass;
60
struct _GeditCharmapPluginClass
62
GeditPluginClass parent_class;
68
GType gedit_charmap_plugin_get_type (void) G_GNUC_CONST;
70
/* All the plugins must implement this function */
71
G_MODULE_EXPORT GType register_gedit_plugin (GTypeModule *module);
75
#endif /* __GEDIT_CHARMAP_PLUGIN_H__ */