START_FUNCTION;
#endif
- //fprintf (stderr, "PATH11111111111111111111 %s %s %s\n", dbus_message_get_path(msg), dbus_message_get_interface (msg), dbus_message_get_member (msg));
+/* fprintf (stderr, "PATH11111111111111111111 %s %s %s\n", dbus_message_get_path(msg), dbus_message_get_interface (msg), dbus_message_get_member (msg)); */
if (dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_RELOAD_CONFIG)){
if(read_config(priv)){
fprintf(stderr, "\nCan not read config file.\n");
#endif
}
}
+#if defined APPLICATION
+ fprintf(stderr, "VIEW %i\n", priv->view);
+ if ((priv->view == 1 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_STOP_LIVEBG_ON_VIEW1))||
+ (priv->view == 2 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_STOP_LIVEBG_ON_VIEW2))||
+ (priv->view == 3 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_STOP_LIVEBG_ON_VIEW3))||
+ (priv->view == 4 && dbus_message_is_signal(msg, LIVEWP_SIGNAL_INTERFACE, LIVEWP_STOP_LIVEBG_ON_VIEW4))){
+
+ quit_from_program(priv);
+ }
+#endif
//fprintf(stderr, "Type %i\n", dbus_message_get_type (msg));
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 = time(NULL) + 10;
+ priv->scene->notification = time(NULL) + 5;
}
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 = time(NULL) + 10;
+ priv->scene->notification = time(NULL) + 5;
}
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;