done matrix slowly, finished init_scene_theme
[livewp] / applet / src / livewp-home-widget.c
index 88e0ba5..d5c7e9b 100644 (file)
@@ -405,6 +405,13 @@ animation_wallpaper_plugin_init (AWallpaperPlugin *desktop_plugin)
     priv->short_timer = 0;
     priv->xapplet = 0;
     priv->yapplet = 0;
+//#if 0 
+    priv->hash_scene_func = g_hash_table_new(g_str_hash, g_str_equal);
+    
+    g_hash_table_insert(priv->hash_scene_func, g_strdup("Berlin"), (gpointer)&init_scene_Berlin);
+    g_hash_table_insert(priv->hash_scene_func, g_strdup("Modern"), (gpointer)&init_scene_Modern);
+    g_hash_table_insert(priv->hash_scene_func, g_strdup("Matrix"), (gpointer)&init_scene_Matrix);
+//#endif
     //priv->theme = g_strdup("Modern");
     desktop_plugin->priv->main_widget = gtk_fixed_new();
 
@@ -447,11 +454,11 @@ animation_wallpaper_plugin_init (AWallpaperPlugin *desktop_plugin)
     priv->scene = NULL;
 #if 0
     if (!strcmp(priv->theme,"Modern"))
-        init_scene(desktop_plugin);
+        init_scene_Modern(desktop_plugin);
     else if (!strcmp(priv->theme,"Berlin")) 
-        init_scene1(desktop_plugin);
+        init_scene_Berlin(desktop_plugin);
     else if (!strcmp(priv->theme, "Matrix"))
-        init_scene2(desktop_plugin);
+        init_scene_Matrix(desktop_plugin);
 #endif
     init_scene_theme(desktop_plugin);