vala r1819 - in trunk: . gobject vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1819 - in trunk: . gobject vala
- Date: Fri, 3 Oct 2008 13:53:40 +0000 (UTC)
Author: juergbi
Date: Fri Oct 3 13:53:40 2008
New Revision: 1819
URL: http://svn.gnome.org/viewvc/vala?rev=1819&view=rev
Log:
2008-10-03 JÃrg Billeter <j bitron ch>
* vala/valasignal.vala:
* gobject/valaccodetypesymbolbinding.vala:
Always use lowercase signal names in generated C code,
patch by Marc-Andrà Lureau, fixes bug 549507
Modified:
trunk/ChangeLog
trunk/gobject/valaccodetypesymbolbinding.vala
trunk/vala/valasignal.vala
Modified: trunk/gobject/valaccodetypesymbolbinding.vala
==============================================================================
--- trunk/gobject/valaccodetypesymbolbinding.vala (original)
+++ trunk/gobject/valaccodetypesymbolbinding.vala Fri Oct 3 13:53:40 2008
@@ -203,7 +203,7 @@
public CCodeFunctionCall get_signal_creation (Signal sig, TypeSymbol type) {
var csignew = new CCodeFunctionCall (new CCodeIdentifier ("g_signal_new"));
- csignew.add_argument (new CCodeConstant ("\"%s\"".printf (sig.name)));
+ csignew.add_argument (new CCodeConstant ("\"%s\"".printf (sig.get_cname ())));
csignew.add_argument (new CCodeIdentifier (type.get_type_id ()));
csignew.add_argument (new CCodeConstant ("G_SIGNAL_RUN_LAST"));
csignew.add_argument (new CCodeConstant ("0"));
Modified: trunk/vala/valasignal.vala
==============================================================================
--- trunk/vala/valasignal.vala (original)
+++ trunk/vala/valasignal.vala Fri Oct 3 13:53:40 2008
@@ -124,7 +124,7 @@
*/
public string get_cname () {
if (cname == null) {
- cname = name;
+ cname = camel_case_to_lower_case (name);
}
return cname;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]