X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=applet%2Fsrc%2Flivewp-config.c;fp=applet%2Fsrc%2Flivewp-config.c;h=f5ca0242bbc65f8d65a38ab7702dbe26877e74bd;hb=32fcadc4aedf46e0991d484abcd20adf4f24f095;hp=59bd7ec4cb28706d5fa176c5a88feda19f15fa12;hpb=0352e3e9c21ae168046597fd6cb4a81bde0d0136;p=livewp diff --git a/applet/src/livewp-config.c b/applet/src/livewp-config.c index 59bd7ec..f5ca024 100644 --- a/applet/src/livewp-config.c +++ b/applet/src/livewp-config.c @@ -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; + } } /*******************************************************************************/