On Tue, Apr 6, 2010 at 6:05 PM, frm <francesco.monto...@gmail.com> wrote:
>
> Hi,
>
>
> A. Walton-2 wrote:
>>
>> On Mon, Apr 5, 2010 at 5:46 AM, frm <francesco.monto...@gmail.com> wrote:
>>> What do you suggest?
>>> Is there some simple example code for using DBus+DeviceKit-power from a
>>> GTK
>>> app somewhere?
>> http://people.gnome.org/~mccann/gnome-session/docs/gnome-session.html#org.gnome.SessionManager.Inhibit
>> is probably what you're looking for on GNOME.
>>
> Thanks a lot!
>
> Just a few more questions about it:
> 1) the page you linked seems to contain API docs for a generic language (not
> necessarily C/C++) nor it contains any info about which library/header files
> contain those APIs... how can I use it from a C/C++ program?

It's the D-Bus api, as it says on the page.

>
> 2) is there some example of apps already using that library?

http://git.gnome.org/browse/brasero/tree/libbrasero-burn/burn-dbus.c
http://git.gnome.org/browse/nautilus/commit/?id=37e7ceca45aea48129cf55ea2583f23330d26b91

-A. Walton

>
> Thank you very much indeed!
> Francesco
>
>
> --
> View this message in context: 
> http://old.nabble.com/how-to-prevent-standby-during-critical-operations-on-linux-tp28138463p28158185.html
> Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to