]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gidlparser: Use lower_case_cprefix when available also for classes
authorLuca Bruno <lucabru@src.gnome.org>
Wed, 3 Aug 2011 11:26:22 +0000 (13:26 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Wed, 3 Aug 2011 18:48:13 +0000 (20:48 +0200)
vapigen/valagidlparser.vala

index 7655d5e41e06ca243f7633d9ca0abaab06bdbeb6..e3d072855b03916203c5d84116574207ef19b448 100644 (file)
@@ -264,9 +264,8 @@ public class Vala.GIdlParser : CodeVisitor {
                        return "";
                }
                string cprefix;
-               if (sym is Namespace) {
-                       cprefix = sym.get_attribute_string ("CCode", "lower_case_cprefix");
-               } else {
+               cprefix = sym.get_attribute_string ("CCode", "lower_case_cprefix");
+               if (cprefix == null && (sym is ObjectTypeSymbol || sym is Struct)) {
                        cprefix = sym.get_attribute_string ("CCode", "cprefix");
                }
                if (cprefix != null) {