#include <X11/Shell.h>
#include <X11/StringDefs.h>
#include <X11/keysym.h>
+/* #include <libosso.h> */
+#include <dbus/dbus.h>
+#include <dbus/dbus-glib.h>
#ifdef __sgi
# include <X11/SGIScheme.h> /* for SgiUseSchemes() */
{
struct xscreensaver_function_table *ft = xscreensaver_function_table;
+/* osso_context_t *osso; */
+
XWindowAttributes xgwa;
Widget toplevel;
Display *dpy;
on_window = get_integer_resource (dpy, "windowID", "WindowID");
if (s) free (s);
}
+ /* OSSO initialize */
+/* osso = osso_initialize("org.maemo.xscreensaver", "0.5.11", TRUE, NULL); */
+
+ DBusGConnection *connection;
+ GError *error;
+ DBusGProxy *proxy;
+
+ g_type_init ();
+ error = NULL;
+ connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
+
+
if (on_window)
{