[libpeas] Do not expose the old peas_extension_* API to g-ir-scanner.



commit 2885547e78a64aa7e5461965acfab286f94a4a06
Author: Steve FrÃcinaux <code istique net>
Date:   Tue Aug 30 22:06:11 2011 +0200

    Do not expose the old peas_extension_* API to g-ir-scanner.
    
    g-ir-scanner chokes because it fails to associate the GObject type
    returned by the fake _get_type() method with the 'Peas' namespace we use
    for this library. So we hide all the peas_extension API as the rest of
    this deprecated API is not in a good shape in GI anyway.
    
    Adapted from a patch of Pavel Holejsovsky.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657586

 libpeas/peas-extension.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libpeas/peas-extension.h b/libpeas/peas-extension.h
index 05c700c..d2dba8d 100644
--- a/libpeas/peas-extension.h
+++ b/libpeas/peas-extension.h
@@ -42,9 +42,11 @@ G_BEGIN_DECLS
 typedef GObject PeasExtension;
 
 /*
- * Public methods
+ * All the public methods of PeasExtension are deprecated and should not be
+ * used. Due to gi-scanner's touchiness, we also hide these legacy API from 
+ * GI to avoid hairy issues.
  */
-#ifndef PEAS_DISABLE_DEPRECATED
+#if !defined(PEAS_DISABLE_DEPRECATED) && !defined(__GI_SCANNER__)
 GType        peas_extension_get_type        (void)  G_GNUC_CONST;
 
 GType        peas_extension_get_extension_type



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