summaryrefslogtreecommitdiff
path: root/codegen/valatyperegisterfunction.vala
diff options
context:
space:
mode:
authorRob Powell <rob@yorba.org>2010-01-06 23:08:36 +0100
committerJürg Billeter <j@bitron.ch>2010-01-06 23:08:36 +0100
commit0b2eb293b5f57e455e2ac5ac4ffb303e8ca93682 (patch)
tree5ef5c56685c4c8f5f6eb93e296e47d73694e319e /codegen/valatyperegisterfunction.vala
parentc2cb6ff6a3be10be012a3ed7baaf5bab8601e679 (diff)
downloadvala-0b2eb293b5f57e455e2ac5ac4ffb303e8ca93682.tar.gz
Fix interfaces in GTypeModule-based plugins
Fixes bug 601343.
Diffstat (limited to 'codegen/valatyperegisterfunction.vala')
-rw-r--r--codegen/valatyperegisterfunction.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/codegen/valatyperegisterfunction.vala b/codegen/valatyperegisterfunction.vala
index 736883fab..4b4ffcb1d 100644
--- a/codegen/valatyperegisterfunction.vala
+++ b/codegen/valatyperegisterfunction.vala
@@ -35,7 +35,7 @@ public abstract class Vala.TypeRegisterFunction {
/**
* Constructs the C function from the specified type.
*/
- public void init_from_type (bool plugin = false) {
+ public void init_from_type (bool plugin) {
bool use_thread_safe = context.require_glib_version (2, 14);
bool fundamental = false;
@@ -169,7 +169,7 @@ public abstract class Vala.TypeRegisterFunction {
type_init.add_statement (new CCodeExpressionStatement (new CCodeAssignment (new CCodeIdentifier (type_id_name), reg_call)));
}
- type_init.add_statement (get_type_interface_init_statements ());
+ type_init.add_statement (get_type_interface_init_statements (plugin));
if (!plugin) {
CCodeExpression condition; // the condition that guards the type initialisation
@@ -364,7 +364,7 @@ public abstract class Vala.TypeRegisterFunction {
*
* @return C statements
*/
- public abstract CCodeFragment get_type_interface_init_statements ();
+ public abstract CCodeFragment get_type_interface_init_statements (bool plugin);
public CCodeFragment get_source_declaration () {
return source_declaration_fragment;