Commit d42e807d authored by Christian Persch's avatar Christian Persch

Move type definition to header file.

svn path=/trunk/; revision=1719
parent 7f78e7ac
......@@ -35,6 +35,26 @@ G_BEGIN_DECLS
#define GUCHARMAP_IS_CODEPOINT_LIST_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GUCHARMAP_TYPE_CODEPOINT_LIST))
#define GUCHARMAP_CODEPOINT_LIST_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GUCHARMAP_TYPE_CODEPOINT_LIST, GucharmapCodepointListClass))
typedef struct _GucharmapScriptCodepointList GucharmapScriptCodepointList;
typedef struct _GucharmapScriptCodepointListClass GucharmapScriptCodepointListClass;
struct _GucharmapCodepointList
{
GObject parent_instance;
};
struct _GucharmapCodepointListClass
{
GObjectClass parent_class;
/* zero is the first index */
gint (*get_last_index) (GucharmapCodepointList *list);
gunichar (*get_char) (GucharmapCodepointList *list,
gint index);
gint (*get_index) (GucharmapCodepointList *list,
gunichar wc);
};
GType gucharmap_codepoint_list_get_type (void);
GucharmapCodepointList * gucharmap_codepoint_list_new (gunichar start,
gunichar end);
......
......@@ -144,24 +144,6 @@ void _gucharmap_chartable_redraw (GucharmapChartable *chartable,
gboolean move_zoom);
struct _GucharmapCodepointList
{
GObject parent;
};
struct _GucharmapCodepointListClass
{
GObjectClass parent_class;
/* zero is the first index */
gint (*get_last_index) (GucharmapCodepointList *list);
gunichar (*get_char) (GucharmapCodepointList *list,
gint index);
gint (*get_index) (GucharmapCodepointList *list,
gunichar wc);
};
struct _GucharmapScriptChaptersModel
{
GucharmapChaptersModel parent;
......
......@@ -24,9 +24,6 @@
#ifndef GUCHARMAP_TYPES_H
#define GUCHARMAP_TYPES_H
typedef struct _GucharmapScriptCodepointList GucharmapScriptCodepointList;
typedef struct _GucharmapScriptCodepointListClass GucharmapScriptCodepointListClass;
typedef struct _GucharmapScriptChaptersModel GucharmapScriptChaptersModel;
typedef struct _GucharmapScriptChaptersModelClass GucharmapScriptChaptersModelClass;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment