GConfClient *gconf_client = NULL;
gchar *tmp = NULL;
GConfValue *value = NULL;
-
+
gconf_client = gconf_client_get_default();
if (!gconf_client) {
fprintf(stderr, _("Failed to initialize GConf. Quitting.\n"));
/* add the callback */
dbus_connection_add_filter(priv->dbus_conn_session,
get_livewp_signal_cb,
- NULL, NULL);
+ priv, NULL);
}
// }
#if defined APPLICATION
fprintf(stderr,"Application\n");
#else
- fprintf(stderr,"Plugin\n");
+ fprintf(stderr,"Plugin %p\n", priv);
#endif
if (dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_RELOAD_CONFIG)){
fprintf(stderr, "!!!!!!!plugin init \n");
Animation_WallpaperPrivate *priv = Animation_Wallpaper_HOME_PLUGIN_GET_PRIVATE (desktop_plugin);
desktop_plugin->priv = Animation_Wallpaper_HOME_PLUGIN_GET_PRIVATE (desktop_plugin);
+ priv->osso = osso_initialize(PACKAGE, VERSION, TRUE, NULL);
/* Load config */
read_config(priv);
+ /* Initialize DBUS */
+ livewp_initialize_dbus(priv);
+
priv->desktop_plugin = desktop_plugin;
priv->visible = TRUE;
priv->short_timer = 0;
priv->rich_animation = FALSE;
}
save_config(priv);
- send_dbus_signal (LIVEWP_SIGNAL_INTERFACE,
+ send_dbus_signal (priv,
+ LIVEWP_SIGNAL_INTERFACE,
LIVEWP_SIGNAL_PATH,
LIVEWP_RELOAD_CONFIG);
break;