Don't mark GThread struct as deprecated
authorMatthias Clasen <mclasen@redhat.com>
Fri, 29 Aug 2014 19:12:31 +0000 (15:12 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 29 Aug 2014 19:12:31 +0000 (15:12 -0400)
Having a definition of struct _GThread inside a deprecation
ifdef confuses gtk-doc into marking it as deprecated. Avoid this.

https://bugzilla.gnome.org//show_bug.cgi?id=735297

glib/deprecated/gthread.h

index dc631e6..4c7b304 100644 (file)
@@ -43,6 +43,8 @@ typedef enum
   G_THREAD_PRIORITY_URGENT
 } GThreadPriority;
 
+#endif
+
 struct  _GThread
 {
   /*< private >*/
@@ -52,6 +54,8 @@ struct  _GThread
   GThreadPriority priority;
 };
 
+#ifndef G_DISABLE_DEPRECATED
+
 typedef struct _GThreadFunctions GThreadFunctions;
 struct _GThreadFunctions
 {