GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Sep 20, 2014 1:59 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: GApplication and DBus
PostPosted: Fri Aug 03, 2012 8:52 am 
Offline

Joined: Fri Aug 03, 2012 8:17 am
Posts: 1
Hello people.
I need to know how to add methods that can be exported over DBus.
I tried an approach similar to https://live.gnome.org/Vala/DBusServerSample
but that failed with :
Code:
GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion `object_path != NULL && g_variant_is_object_path (object_path)' failed


In my application constructor I have set object_id and my application appears in D-Feet with the standard interfaces.
I have also tried to make a method public in my Application class that derives from Gtk.Application and that as expected did not help.

I have also found all my actions under window and application interfaces.
Is that the prefered way to export methods over DBus?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group