[gtksourceview] SourceStyle: Use the expected typedef for GtkSourceStyleClass.



commit 54e49061f6b59772ae71b2360691bdc0742cfcef
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Sep 9 21:01:38 2013 +0200

    SourceStyle: Use the expected typedef for GtkSourceStyleClass.
    
    typedeffing GtkSourceStyleClass to GObjectClass was a shortcut
    that was acceptable when hidden in the .c file, but putting it in
    the header conflicts with the expectation that it will be declared
    like other such *Class structs. This fixes that, so gtksourceviewmm
    can build again, because gtksourceviewmm has to duplicate the
    (expected) declaration.

 gtksourceview/gtksourcestyle.c |    5 +++++
 gtksourceview/gtksourcestyle.h |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcestyle.c b/gtksourceview/gtksourcestyle.c
index cc753d2..0d86b62 100644
--- a/gtksourceview/gtksourcestyle.c
+++ b/gtksourceview/gtksourcestyle.c
@@ -43,6 +43,11 @@ static void  gtk_source_style_get_property   (GObject      *object,
                                                 GValue       *value,
                                                 GParamSpec   *pspec);
 
+struct _GtkSourceStyleClass
+{
+  GObjectClass parent_class;
+};
+
 G_DEFINE_TYPE (GtkSourceStyle, gtk_source_style, G_TYPE_OBJECT)
 
 enum
diff --git a/gtksourceview/gtksourcestyle.h b/gtksourceview/gtksourcestyle.h
index ad268fb..58fdd00 100644
--- a/gtksourceview/gtksourcestyle.h
+++ b/gtksourceview/gtksourcestyle.h
@@ -34,7 +34,7 @@ G_BEGIN_DECLS
 #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;
+typedef struct _GtkSourceStyleClass GtkSourceStyleClass;
 
 GType           gtk_source_style_get_type      (void) G_GNUC_CONST;
 


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