}
/*******************************************************************************/
void
-send_dbus_signal (const gchar *interface,
+send_dbus_signal (Animation_WallpaperPrivate *priv,
+ const gchar *interface,
const gchar *path,
const gchar *member)
{
dbus_message_set_interface (message, interface);
dbus_message_set_path (message, path);
dbus_message_set_member (message, member);
-// success = dbus_connection_send (priv->dbus_conn_session, message, NULL);
+ success = dbus_connection_send (priv->dbus_conn_session, message, NULL);
dbus_message_unref (message);
fprintf (stderr, "%s '%s' message.\n",
#ifdef DEBUGFUNCTIONCALL
START_FUNCTION;
#endif
-/*
+
#if defined APPLICATION
fprintf(stderr,"Application\n");
#else
fprintf(stderr,"Plugin\n");
#endif
-*/
+
if (dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_RELOAD_CONFIG)){
if(read_config(priv)){
fprintf(stderr, "\nCan not read config file.\n");
}else{
read_config(priv);
+#ifndef APPLICATION
+ reload_scene(priv->desktop_plugin);
+#endif
}
}
#ifndef APPLICATION
void livewp_deinitialize_dbus(Animation_WallpaperPrivate *priv);
DBusHandlerResult
get_livewp_signal_cb(DBusConnection *conn, DBusMessage *msg, Animation_WallpaperPrivate *priv);
-void send_dbus_signal (const gchar *interface, const gchar *path, const gchar *member);
+void send_dbus_signal (Animation_WallpaperPrivate *priv, const gchar *interface, const gchar *path, const gchar *member);
/*******************************************************************************/
#endif