[gtksourceview] GtkSourceStyle: add missing GObject stuff in the header



commit 05f388de6dd2569941b6f01a182107bad8a3d269
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Aug 19 21:40:16 2013 +0200

    GtkSourceStyle: add missing GObject stuff in the header
    
    It fixes compilation warnings.

 docs/reference/gtksourceview-3.0-sections.txt |    1 +
 gtksourceview/gtksourcestyle-private.h        |    5 -----
 gtksourceview/gtksourcestyle.c                |    2 +-
 gtksourceview/gtksourcestyle.h                |   12 ++++++++----
 4 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/docs/reference/gtksourceview-3.0-sections.txt b/docs/reference/gtksourceview-3.0-sections.txt
index 33aa392..9399bfe 100644
--- a/docs/reference/gtksourceview-3.0-sections.txt
+++ b/docs/reference/gtksourceview-3.0-sections.txt
@@ -537,6 +537,7 @@ gtk_source_search_settings_get_type
 GtkSourceStyle
 gtk_source_style_copy
 <SUBSECTION Standard>
+GtkSourceStyleClass
 GTK_SOURCE_TYPE_STYLE
 GTK_SOURCE_IS_STYLE
 GTK_SOURCE_IS_STYLE_CLASS
diff --git a/gtksourceview/gtksourcestyle-private.h b/gtksourceview/gtksourcestyle-private.h
index d63727a..70da550 100644
--- a/gtksourceview/gtksourcestyle-private.h
+++ b/gtksourceview/gtksourcestyle-private.h
@@ -27,10 +27,6 @@
 
 G_BEGIN_DECLS
 
-#define GTK_SOURCE_STYLE_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SOURCE_TYPE_STYLE, 
GtkSourceStyleClass))
-#define GTK_SOURCE_IS_STYLE_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_STYLE))
-#define GTK_SOURCE_STYLE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_SOURCE_TYPE_STYLE, 
GtkSourceStyleClass))
-
 enum {
        GTK_SOURCE_STYLE_USE_LINE_BACKGROUND = 1 << 0,  /*< nick=use_line_background >*/
        GTK_SOURCE_STYLE_USE_BACKGROUND      = 1 << 1,  /*< nick=use_background >*/
@@ -61,7 +57,6 @@ G_GNUC_INTERNAL
 void            _gtk_source_style_apply        (const GtkSourceStyle *style,
                                                 GtkTextTag           *tag);
 
-
 G_END_DECLS
 
 #endif  /* __GTK_SOURCE_STYLE_PRIVATE_H__ */
diff --git a/gtksourceview/gtksourcestyle.c b/gtksourceview/gtksourcestyle.c
index 234863f..b391fe2 100644
--- a/gtksourceview/gtksourcestyle.c
+++ b/gtksourceview/gtksourcestyle.c
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include "gtksourcestyle.h"
 #include "gtksourcestyle-private.h"
 #include "gtksourceview-i18n.h"
 
@@ -41,7 +42,6 @@ static void   gtk_source_style_get_property   (GObject      *object,
                                                 GValue       *value,
                                                 GParamSpec   *pspec);
 
-typedef GObjectClass GtkSourceStyleClass;
 G_DEFINE_TYPE (GtkSourceStyle, gtk_source_style, G_TYPE_OBJECT)
 
 enum {
diff --git a/gtksourceview/gtksourcestyle.h b/gtksourceview/gtksourcestyle.h
index d41dd47..ad268fb 100644
--- a/gtksourceview/gtksourcestyle.h
+++ b/gtksourceview/gtksourcestyle.h
@@ -27,15 +27,19 @@
 
 G_BEGIN_DECLS
 
-#define GTK_SOURCE_TYPE_STYLE          (gtk_source_style_get_type ())
-#define GTK_SOURCE_STYLE(obj)          (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_STYLE, 
GtkSourceStyle))
-#define GTK_SOURCE_IS_STYLE(obj)       (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SOURCE_TYPE_STYLE))
+#define GTK_SOURCE_TYPE_STYLE             (gtk_source_style_get_type ())
+#define GTK_SOURCE_STYLE(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SOURCE_TYPE_STYLE, 
GtkSourceStyle))
+#define GTK_SOURCE_IS_STYLE(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SOURCE_TYPE_STYLE))
+#define GTK_SOURCE_STYLE_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SOURCE_TYPE_STYLE, 
GtkSourceStyleClass))
+#define GTK_SOURCE_IS_STYLE_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SOURCE_TYPE_STYLE))
+#define GTK_SOURCE_STYLE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_SOURCE_TYPE_STYLE, 
GtkSourceStyleClass))
+
+typedef GObjectClass GtkSourceStyleClass;
 
 GType           gtk_source_style_get_type      (void) G_GNUC_CONST;
 
 GtkSourceStyle *gtk_source_style_copy          (const GtkSourceStyle *style);
 
-
 G_END_DECLS
 
 #endif  /* __GTK_SOURCE_STYLE_H__ */


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