Move internal data structures on top
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 11 Dec 2008 11:55:39 +0000 (11:55 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 11 Dec 2008 11:55:39 +0000 (11:55 +0000)
Try to keep the declarations section of the source files clean and
possibly consistent.

clutter/clutter-text.c

index 93809bf..601f351 100644 (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)
 {