From: Milosz D. <mde...@us...> - 2005-09-13 00:59:50
|
Update of /cvsroot/beepmp/bmpx/dbus-examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4003/dbus-examples Modified Files: bmp-dbus-system-control.c Log Message: Added man page, changes in the DBus interface, updated translations Index: bmp-dbus-system-control.c =================================================================== RCS file: /cvsroot/beepmp/bmpx/dbus-examples/bmp-dbus-system-control.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bmp-dbus-system-control.c 10 Sep 2005 05:21:15 -0000 1.1 --- bmp-dbus-system-control.c 13 Sep 2005 00:59:42 -0000 1.2 *************** *** 191,194 **** --- 191,207 ---- } + if (! strcmp(argv[1], "GetCurrentTitle")) + { + gchar *title; + + if (!dbus_g_proxy_call (remote_object, "GetCurrentTitle", &error, + G_TYPE_INVALID, + G_TYPE_STRING, &title, G_TYPE_INVALID)); + + printf(title); + + goto END; + } + END: |