[gtksourceview] view: regroup enums together in the header



commit 2a7e9957e7ce35cd9a45868ea1c03bb1d7e5ba62
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Jul 21 12:35:47 2016 +0200

    view: regroup enums together in the header
    
    And put the enums before the object and class structs, in case a vfunc
    needs an enum type in the future.

 gtksourceview/gtksourceview.h |   54 ++++++++++++++++++++--------------------
 1 files changed, 27 insertions(+), 27 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.h b/gtksourceview/gtksourceview.h
index 2321015..045c022 100644
--- a/gtksourceview/gtksourceview.h
+++ b/gtksourceview/gtksourceview.h
@@ -60,33 +60,6 @@ typedef enum
        GTK_SOURCE_VIEW_GUTTER_POSITION_MARKS = -20
 } GtkSourceViewGutterPosition;
 
-struct _GtkSourceView
-{
-       GtkTextView parent;
-
-       GtkSourceViewPrivate *priv;
-};
-
-struct _GtkSourceViewClass
-{
-       GtkTextViewClass parent_class;
-
-       void (*undo) (GtkSourceView *view);
-       void (*redo) (GtkSourceView *view);
-       void (*line_mark_activated) (GtkSourceView *view,
-                                    GtkTextIter   *iter,
-                                    GdkEvent      *event);
-       void (*show_completion) (GtkSourceView *view);
-       void (*move_lines) (GtkSourceView *view,
-                           gboolean       copy,
-                           gint           step);
-
-       void (*move_words) (GtkSourceView *view,
-                           gint           step);
-
-       /* Padding for future expansion */
-};
-
 /**
  * GtkSourceSmartHomeEndType:
  * @GTK_SOURCE_SMART_HOME_END_DISABLED: smart-home-end disabled.
@@ -135,6 +108,33 @@ typedef enum
        GTK_SOURCE_DRAW_SPACES_ALL        = 0x7f
 } GtkSourceDrawSpacesFlags;
 
+struct _GtkSourceView
+{
+       GtkTextView parent;
+
+       GtkSourceViewPrivate *priv;
+};
+
+struct _GtkSourceViewClass
+{
+       GtkTextViewClass parent_class;
+
+       void (*undo) (GtkSourceView *view);
+       void (*redo) (GtkSourceView *view);
+       void (*line_mark_activated) (GtkSourceView *view,
+                                    GtkTextIter   *iter,
+                                    GdkEvent      *event);
+       void (*show_completion) (GtkSourceView *view);
+       void (*move_lines) (GtkSourceView *view,
+                           gboolean       copy,
+                           gint           step);
+
+       void (*move_words) (GtkSourceView *view,
+                           gint           step);
+
+       /* Padding for future expansion */
+};
+
 GTK_SOURCE_AVAILABLE_IN_ALL
 GType           gtk_source_view_get_type               (void) G_GNUC_CONST;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]