[vala] Use unmangled value_name in to_string for enums



commit fde0e2fd6bad0a03372228dd0ba7f447f3e06775
Author: Jürg Billeter <j bitron ch>
Date:   Sat Jan 9 13:27:15 2010 +0100

    Use unmangled value_name in to_string for enums

 codegen/valagtypemodule.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index 6efc13a..ba9d115 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -1940,7 +1940,7 @@ internal class Vala.GTypeModule : GErrorModule {
 		var get_value = new CCodeFunctionCall (new CCodeIdentifier ("g_enum_get_value"));
 		get_value.add_argument (class_ref);
 		get_value.add_argument ((CCodeExpression) get_ccodenode (((MemberAccess) expr.call).inner));
-		var value_nick = new CCodeMemberAccess.pointer (get_value, "value_nick");
-		expr.ccodenode = value_nick;
+		var value_name = new CCodeMemberAccess.pointer (get_value, "value_name");
+		expr.ccodenode = value_name;
 	}
 }



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