From: Emmanuele Bassi Date: Thu, 11 Dec 2008 11:55:39 +0000 (+0000) Subject: Move internal data structures on top X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a1f4d6f9aa3c89750e9eac5f4d95f799d2d2291;p=profile%2Fivi%2Fclutter.git Move internal data structures on top Try to keep the declarations section of the source files clean and possibly consistent. --- diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index 93809bf..601f351 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -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) {