next step in external themes
[livewp] / applet / src / livewp-main.c
index 1a84d75..bc9399d 100644 (file)
@@ -64,7 +64,7 @@ view_state_changed (Animation_WallpaperPrivate *priv)
            }
        }
        if (!priv->running){
-            if (priv->exec_path){
+            if (g_hash_table_lookup(priv->hash_theme, "exec_path")){
                 init_scene_External(priv->desktop_plugin);
             }
        }
@@ -312,7 +312,6 @@ main(int argc, char *argv[])
     priv->pipeline = NULL;
     priv->podpid = -1;
     priv->running = FALSE;
-    priv->exec_path = NULL;
     priv->window = main_widget;
     /* fprintf(stderr,"XWINDOW %i\n",GDK_WINDOW_XID (main_widget->window)); */
     priv->desktop_plugin = desktop_plugin;
@@ -342,7 +341,7 @@ main(int argc, char *argv[])
     while (store){
         if (!strcmp(priv->theme, g_hash_table_lookup(store->data, "name"))){
             priv->scene_func = (gpointer)&init_scene_External;
-            priv->exec_path = g_strdup(g_hash_table_lookup(store->data, "exec_path"));
+            priv->hash_theme = store->data;
             break;
         }
         store = g_slist_next(store);