After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 649821 - Missing gio.h or unnecessary code
Missing gio.h or unnecessary code
Status: RESOLVED DUPLICATE of bug 654782
Product: vala
Classification: Core
Component: D-Bus
0.12.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-09 18:07 UTC by Diego Dompe
Modified: 2011-07-18 08:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Diego Dompe 2011-05-09 18:07:12 UTC
Hi,

If I have a class foo that has a dbus interface (using GDBus), and I pass this class as a parameter for the constructor of another class that doesn't have a dbus interface (named bar), the generated C code for bar has the following snippet:

guint foo_register_object(void *object, GDBusConnection *connection, const gchar* path, GError *error).

Which is never used and fails to compile because bar.c doesn't include gio.h.

I'm not sure if the gio.h include is missing or the register object function is unnecessary.
Comment 1 Luca Bruno 2011-07-18 08:01:42 UTC

*** This bug has been marked as a duplicate of bug 654782 ***