tuned speed
[livewp] / applet / src / livewp-common.h
index e899834..9c66f73 100644 (file)
 #include <glib/gi18n-lib.h>
 
 #define THEME_PATH "/usr/share/livewp/theme"
+#define SHORT_TIMER 75 /* 100 milisecond */
+//#define LONG_TIMER 5*60*1000 /* 10 minutes */
+#define LONG_TIMER  10*1000 /* 10 minutes */
+enum { SHORT_TIMER_TYPE, LONG_TIMER_TYPE };
+#define SKY_LEVEL 0 
+#define SUN_LEVEL 0 
+#define TOWN_LEVEL 0 
+#define TRAM_LEVEL 20 
 
-typedef struct {
-    gchar * name;
-    GSList * child;
-    gint x;
-    gint y;
-    gint z;
-    double scale;
-    gboolean visible;
-
-} MultiActor;
 
 typedef struct _AWallpaperPlugin AWallpaperPlugin;
 typedef struct _AWallpaperPluginClass AWallpaperPluginClass;
@@ -49,15 +47,19 @@ typedef struct _Animation_WallpaperPrivate Animation_WallpaperPrivate;
 
 struct _Animation_WallpaperPrivate
 {
-    gint timer;
+    gint long_timer;
+    gint short_timer;
     gchar *theme;
+    gboolean visible;
+    gboolean rich_animation;
+    GtkWidget *main_widget;
+    GtkWidget *right_corner;
     AWallpaperPlugin *desktop_plugin;
 };
 
 struct _AWallpaperPlugin
 {
-    HDHomePluginItem hitem;
-    GObject *parent;
+    HDHomePluginItem parent;
     Animation_WallpaperPrivate *priv;
 };
 
@@ -67,4 +69,21 @@ struct _AWallpaperPluginClass
 
 };
 
+typedef struct {
+    GtkWidget * widget;
+    gchar  *name;
+    gchar *filename;
+    gint x;
+    gint y;
+    gint z;
+    gint width;
+    gint height;
+    gint scale;
+    gint opacity; 
+    gboolean visible;
+    void (*func_change)(gpointer, gpointer);
+    time_t time_start_animation;
+    gint duration_animation;
+    void (*func_probability)(gpointer);
 
+} Actor;