GNOME Bugzilla – Bug 595578
Setting a custom method name for Objects on D-Bus does not work
Last modified: 2009-09-21 18:46:51 UTC
I'm using the package in Ubuntu Kamrmic (0.7.5-1ubuntu1); "valac --version" shows: Vala 0.7.5. DESIRED OUTCOME: Have an object exposed on the D-Bus with a method that is called "mime_open" (it has to be called like that, as I'm writing a replacement for an existing service). According to juergbi on IRC, writing "[DBus (name = "mime_open")]" in front of the method name should fix this. ACTUAL OUTCOME: Vala mangles the name "mime_open" and converts it to "MimeOpen", even with the "[DBus (name = "mime_open")]" in front of it. I will attach a test case.
Created attachment 143439 [details] vala source This is the vala source that can be used to reproduce this bug. Compile with this: valac --pkg dbus-glib-1 --disable-dbus-transformation -o feedhandler feedhandler.vala
Created attachment 143440 [details] generated c source This is the generated C source when compiling attachment #143439 [details] using: valac --pkg dbus-glib-1 -C --disable-dbus-transformation -o feedhandler feedhandler.vala Note that this file contains "MimeOpen" instead of the expected "mime_open" name for that method.
commit 217a1a82d63ee8e4aedcdf3409de4f12cc38c962 Author: Jürg Billeter <j@bitron.ch> Date: Mon Sep 21 20:44:34 2009 +0200 D-Bus: Support name attribute for members in clients and servers Fixes bug 595587.