[glibmm/gmmproc-refactor] Use proper attribute names in object's name getter.



commit 4ab4b742dea425bdd28d510651cefff5e3acbf54
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Wed Nov 30 18:12:56 2011 +0100

    Use proper attribute names in object's name getter.
    
    Also, separate type name and index with `#' in generated names to
    aid readability.

 tools/pm/Gir/Handlers/Common/Misc.pm |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tools/pm/Gir/Handlers/Common/Misc.pm b/tools/pm/Gir/Handlers/Common/Misc.pm
index 27a0e69..3bdf826 100644
--- a/tools/pm/Gir/Handlers/Common/Misc.pm
+++ b/tools/pm/Gir/Handlers/Common/Misc.pm
@@ -152,11 +152,11 @@ sub get_object_name ($$)
   my ($object, $index) = @_;
   my @name_atts =
   (
-    'c:type',
-    'c:identifier',
-    'glib:type-name',
-    'name',
-    'glib:name'
+    'attribute_c_type',
+    'attribute_c_identifier',
+    'attribute_glib_type-name',
+    'attribute_name',
+    'attribute_glib_name'
   );
 
   foreach my $name (@name_atts)
@@ -169,7 +169,7 @@ sub get_object_name ($$)
     }
   }
 
-  return ref ($object) . $index;
+  return ref ($object) . '#' . $index;
 }
 
 1; # indicate proper module load.



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