[vala] Fix marshaller signature for signals with array parameters
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Fix marshaller signature for signals with array parameters
- Date: Thu, 14 Oct 2010 15:30:00 +0000 (UTC)
commit c7c26802f6d4b4eff6f1b0bdc2379f04f63115c5
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 5dcd326..eee3fc7 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]