don't work
[xscreensaver] / xscreensaver / hacks / screenhack.c
index bd251dc..7d0bf87 100644 (file)
@@ -92,6 +92,9 @@
 #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() */
@@ -668,6 +671,8 @@ main (int argc, char **argv)
 {
   struct xscreensaver_function_table *ft = xscreensaver_function_table;
 
+/*  osso_context_t  *osso; */
+
   XWindowAttributes xgwa;
   Widget toplevel;
   Display *dpy;
@@ -832,6 +837,18 @@ main (int argc, char **argv)
       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)
     {