Merge branch 'master' of https://vcs.maemo.org/git/livewp
[livewp] / applet / src / livewp-home-widget.c
index 9510cef..e208f7d 100644 (file)
@@ -405,6 +405,14 @@ animation_wallpaper_plugin_init (AWallpaperPlugin *desktop_plugin)
     priv->yapplet = 0;
     priv->scene = NULL;
 //    priv->theme = g_strdup("Modern");
+//#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();
 
     gtk_widget_set_size_request(desktop_plugin->priv->main_widget, 100, 32);
@@ -445,11 +453,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);