[gtk-doc] mkdb: disambiguate enum gtypes from the c enum



commit fced9892e97e71681bfb3753db5a9d6ce4259fe4
Author: Stefan Kost <ensonic users sf net>
Date:   Thu Apr 14 10:27:25 2011 +0300

    mkdb: disambiguate enum gtypes from the c enum
    
    Use a similar pattern like we use for structs when dealing with enum gtypes.

 gtkdoc-mkdb.in |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 695d95c..7592293 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -2799,8 +2799,9 @@ sub MakeHashXRef {
       return "#$symbol";
     }
 
-    # Get rid of any special '-struct' suffix.
+    # Get rid of special suffixes ('-struct','-enum').
     $text =~ s/-struct$//;
+    $text =~ s/-enum$//;
 
     # If the symbol is in the form "Object::signal", then change the symbol to
     # "Object-signal" and use "signal" as the text.
@@ -2909,8 +2910,9 @@ sub MakeXRef {
     if (!defined($text)) {
         $text = $symbol;
 
-	# Get rid of special '-struct' suffix.
-	$text =~ s/-struct$//;
+        # Get rid of special suffixes ('-struct','-enum').
+        $text =~ s/-struct$//;
+        $text =~ s/-enum$//;
     }
 
     if ($symbol =~ m/ /) {



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