]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
D-Bus: Add missing dbus-glib.h include for interfaces without methods
authorJürg Billeter <j@bitron.ch>
Thu, 14 Oct 2010 15:11:54 +0000 (17:11 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 14 Oct 2010 15:12:40 +0000 (17:12 +0200)
Fixes bug 583390.

codegen/valadbusclientmodule.vala

index 89b223d1a0cf1cf3bef2f0b4a8ee676e0a2f1df0..3e3abe3adc66cc0b71fe62f7c391d5e8f5f693bc 100644 (file)
@@ -1043,6 +1043,8 @@ public class Vala.DBusClientModule : DBusModule {
                        return;
                }
 
+               decl_space.add_include ("dbus/dbus-glib.h");
+
                // declare proxy_new function
                var proxy_new = new CCodeFunction (lower_cname + "_new", iface.get_cname () + "*");
                proxy_new.add_parameter (new CCodeFormalParameter ("connection", "DBusGConnection*"));