fixed problem with additional string
authorVlad <vlad@gas.by>
Wed, 29 Sep 2010 08:37:11 +0000 (11:37 +0300)
committerVlad <vlad@gas.by>
Wed, 29 Sep 2010 08:37:11 +0000 (11:37 +0300)
applet/src/livewp-config.c

index 9f14817..60b78db 100644 (file)
@@ -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