From: Vlad Date: Wed, 29 Sep 2010 08:37:11 +0000 (+0300) Subject: fixed problem with additional string X-Git-Url: https://vcs.maemo.org/git/?p=livewp;a=commitdiff_plain;h=d91f64f619a6fe010ba6ab0dc3901d85f40d990d fixed problem with additional string --- diff --git a/applet/src/livewp-config.c b/applet/src/livewp-config.c index 9f14817..60b78db 100644 --- a/applet/src/livewp-config.c +++ b/applet/src/livewp-config.c @@ -234,16 +234,18 @@ save_config(Animation_WallpaperPrivate *priv) { str = NULL; } + str = g_strdup_printf("%s%i",GCONF_KEY_ADDITIONAL_STRING_1, id); if (priv->theme_string_parametr1){ - str = g_strdup_printf("%s%i",GCONF_KEY_ADDITIONAL_STRING_1, id); gconf_client_set_string(gconf_client, str, priv->theme_string_parametr1, NULL); - if (str){ + }else + gconf_client_unset(gconf_client, str, NULL); + if (str){ g_free(str); str = NULL; - } } + } /*******************************************************************************/ gint