]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Treat signal parameters that have G_TYPE_STRING type as strings.
authorAvi Levy <avi.w.levy@gmail.com>
Mon, 3 Jun 2013 21:06:42 +0000 (16:06 -0500)
committerLuca Bruno <lucabru@src.gnome.org>
Tue, 4 Jun 2013 18:10:49 +0000 (20:10 +0200)
Fixes bug 701488

codegen/valagsignalmodule.vala

index dceb8d20d7acdd0d2916d42baefa5ec6c93b6e88..2e823162c83e4750c5d699db8967948316c82f69 100644 (file)
@@ -54,7 +54,7 @@ public class Vala.GSignalModule : GObjectModule {
                        return "gpointer";
                } else if (t is VoidType) {
                        return "void";
-               } else if (t.data_type == string_type.data_type) {
+               } else if (get_ccode_type_id (t.data_type) == get_ccode_type_id (string_type.data_type)) {
                        return "const char*";
                } else if (t.data_type is Class || t.data_type is Interface) {
                        return "gpointer";