Commit 7f0ef39f authored by Allison Karlitskaya's avatar Allison Karlitskaya Committed by Ryan Lortie

only use g_value_set_pointer if the GType of a class is G_TYPE_POINTER;

2009-02-16  Ryan Lortie  <desrt@desrt.ca>

        * vala/valaclass.vala: only use g_value_set_pointer if the GType of a
        class is G_TYPE_POINTER; else use g_value_set_boxed.


svn path=/trunk/; revision=2445
parent cce4d83a
2009-02-16 Ryan Lortie <desrt@desrt.ca>
* vala/valaclass.vala: only use g_value_set_pointer if the GType of a
class is G_TYPE_POINTER; else use g_value_set_boxed.
2009-02-16 Ryan Lortie <desrt@desrt.ca>
* gobject/valagasyncmodule.vala: remove the dummy-object hack since
......
......@@ -718,8 +718,10 @@ public class Vala.Class : ObjectTypeSymbol {
get_value_function = get_lower_case_cname ("value_get_");
} else if (base_class != null) {
get_value_function = base_class.get_get_value_function ();
} else {
} else if (get_type_id () == "G_TYPE_POINTER") {
get_value_function = "g_value_get_pointer";
} else {
get_value_function = "g_value_get_boxed";
}
}
......@@ -732,8 +734,10 @@ public class Vala.Class : ObjectTypeSymbol {
set_value_function = get_lower_case_cname ("value_set_");
} else if (base_class != null) {
set_value_function = base_class.get_set_value_function ();
} else {
} else if (get_type_id () == "G_TYPE_POINTER") {
set_value_function = "g_value_set_pointer";
} else {
set_value_function = "g_value_set_boxed";
}
}
......@@ -1112,3 +1116,4 @@ public class Vala.Class : ObjectTypeSymbol {
}
}
// vim:sw=8 noet
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment