Merge branch 'master' of https://vcs.maemo.org/git/livewp
[livewp] / applet / src / livewp-home-widget.c
index 529f41e..4f083cb 100644 (file)
@@ -608,6 +608,7 @@ get_sun_screen_pos(double alt, double azm, gint * x, gint * y)
          o_height = 128; 
     *x = (int)(azm * 800) - 64;
     *y = (int)((1 - alt) * y0) - 64;
+    //fprintf(stderr, "sun pos x=%d y=%d\n", *x, *y);
 }
 
 void change_multiactor()
@@ -704,16 +705,17 @@ change_actor(GtkWidget * actor)
 static gboolean
 plugin_on_timeout (AWallpaperPlugin *desktop_plugin)
 {
-  gint daytime = get_daytime();
-  GSList * tmp;
-  gchar * name;
-  void (*pfunc)(gpointer, gpointer);
-  time_t now;
-  gint t;
-  Actor *actor;
-
-if (!desktop_plugin->priv->visible)
-    return TRUE;
+      gint daytime = get_daytime();
+      GSList * tmp;
+      gchar * name;
+      void (*pfunc)(gpointer, gpointer);
+      time_t now;
+      gint t;
+      Actor *actor;
+
+    /* TODO  remove timeout */
+    if (!desktop_plugin->priv->visible)
+        return TRUE;
 fprintf(stderr, "timer daytime=%d\n", daytime);
   if (scene.daytime != daytime){
       tmp = scene.actors;