fixed applet crashing
authorVlad <vlad@gas.by>
Mon, 26 Jul 2010 13:56:56 +0000 (16:56 +0300)
committerVlad <vlad@gas.by>
Mon, 26 Jul 2010 13:56:56 +0000 (16:56 +0300)
applet/src/livewp-dbus.c

index e28ea36..02a3cb3 100644 (file)
@@ -178,7 +178,6 @@ get_livewp_signal_cb(DBusConnection *conn, DBusMessage *msg, Animation_Wallpaper
 
         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");    
@@ -190,6 +189,7 @@ get_livewp_signal_cb(DBusConnection *conn, DBusMessage *msg, Animation_Wallpaper
         //read_notification(priv->desktop_plugin);
         priv->scene->notification = time(NULL) + 5;
     }
+#endif
 
     return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 }