added delay after dbus event
[livewp] / applet / src / livewp-dbus.c
index 8c5871f..879a8e1 100644 (file)
@@ -154,12 +154,12 @@ get_livewp_signal_cb(DBusConnection *conn, DBusMessage *msg, Animation_Wallpaper
     if (dbus_message_is_method_call(msg, NOTIFY_SIGNAL_INTERFACE, NOTIFY_MEMBER)){
         fprintf(stderr,"read notifications.db notify\n");    
         //read_notification(priv->desktop_plugin);
-        priv->scene->notification = TRUE;
+        priv->scene->notification = time(NULL) + 20;
     }
     if (dbus_message_is_signal(msg, NOTIFY_SIGNAL_INTERFACE, CLOSENOTIFY_MEMBER)){
         fprintf(stderr,"read notifications.db close notify\n");    
         //read_notification(priv->desktop_plugin);
-        priv->scene->notification = TRUE;
+        priv->scene->notification = time(NULL) + 20;
     }
 
     return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;