[vala/0.10] Fix marshaller signature for signals with array parameters
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.10] Fix marshaller signature for signals with array parameters
- Date: Tue, 19 Oct 2010 19:02:19 +0000 (UTC)
commit 272d45ccffff062fd3e23ebee5f8fafb1bad5909
Author: Jürg Billeter <j bitron ch>
Date: Thu Oct 14 17:28:48 2010 +0200
Fix marshaller signature for signals with array parameters
Fixes bug 604829.
codegen/valagsignalmodule.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/codegen/valagsignalmodule.vala b/codegen/valagsignalmodule.vala
index 2605f2b..c3fb1c8 100644
--- a/codegen/valagsignalmodule.vala
+++ b/codegen/valagsignalmodule.vala
@@ -34,9 +34,9 @@ public class Vala.GSignalModule : GObjectModule {
return ("BOXED");
} else {
if (((ArrayType) t).element_type.data_type == string_type.data_type) {
- return ("BOXED_INT");
+ return ("BOXED,INT");
} else {
- return ("POINTER_INT");
+ return ("POINTER,INT");
}
}
} else if (t is VoidType) {
@@ -85,7 +85,7 @@ public class Vala.GSignalModule : GObjectModule {
ret = ret + "_VOID";
} else {
foreach (FormalParameter p in params) {
- ret = "%s_%s".printf (ret, get_marshaller_type_name_for_parameter (p, dbus));
+ ret = "%s_%s".printf (ret, get_marshaller_type_name_for_parameter (p, dbus).replace (",", "_"));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]