Move internal data structures on top

Try to keep the declarations section of the source files clean and
possibly consistent.
This commit is contained in:
Emmanuele Bassi 2008-12-11 11:55:39 +00:00
parent d84a88ac3b
commit 4a1f4d6f9a

View File

@ -56,6 +56,8 @@
#define CLUTTER_TEXT_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), CLUTTER_TYPE_TEXT, ClutterTextPrivate))
typedef struct _LayoutCache LayoutCache;
typedef struct _TextCommand TextCommand;
typedef struct _ClutterTextMapping ClutterTextMapping;
/* Probably move into main */
static PangoContext *_context = NULL;
@ -82,6 +84,21 @@ struct _LayoutCache
guint age;
};
struct _TextCommand
{
const gchar *name;
gboolean (*func) (ClutterText *ttext,
const gchar *commandline,
ClutterEvent *event);
};
struct _ClutterTextMapping
{
ClutterModifierType state;
guint keyval;
const gchar *action;
};
struct _ClutterTextPrivate
{
PangoFontDescription *font_desc;
@ -226,19 +243,6 @@ offset_to_bytes (const gchar *text,
(g_utf8_pointer_to_offset ((t), (t) + (p)))
typedef struct TextCommand {
const gchar *name;
gboolean (*func) (ClutterText *ttext,
const gchar *commandline,
ClutterEvent *event);
} TextCommand;
typedef struct ClutterTextMapping {
ClutterModifierType state;
guint keyval;
const gchar *action;
} ClutterTextMapping;
void
clutter_text_mappings_clear (ClutterText *self)
{