fixed time to change image, added icons to slideshow and flash, added change image...
[livewp] / applet / src / livewp-config.c
index 59bd7ec..f5ca024 100644 (file)
@@ -144,6 +144,18 @@ read_config(Animation_WallpaperPrivate *priv) {
         priv->theme_string_parametr1 = g_strdup(gconf_value_get_string(value));
         gconf_value_free(value);
     }
+    /* get theme additional int parameter 1  */
+    str = g_strdup_printf("%s%i", GCONF_KEY_ADDITIONAL_INT_1 , id);
+    value = gconf_client_get(gconf_client, str, NULL);
+    if (str){
+        g_free(str);
+        str = NULL;
+    }
+    if (value) {
+        priv->theme_int_parametr1 = gconf_value_get_int(value);
+        gconf_value_free(value);
+    }
+
     /* get parameter one theme in all view */
     priv->one_in_all_view = get_one_in_all_views_from_config();
     return 0;
@@ -247,6 +259,17 @@ save_config(Animation_WallpaperPrivate *priv) {
             g_free(str);
             str = NULL;
     }
+    str = g_strdup_printf("%s%i",GCONF_KEY_ADDITIONAL_INT_1, id);
+    if (priv->theme_int_parametr1){
+        gconf_client_set_int(gconf_client,
+                  str,
+                  priv->theme_int_parametr1, NULL);
+    }else
+        gconf_client_unset(gconf_client, str, NULL);
+    if (str){
+            g_free(str);
+            str = NULL;
+    }
 
 }
 /*******************************************************************************/