changeset 4769:3ba4537c53b5

don't save legacy ui config options
author Tomasz Mon <desowin@gmail.com>
date Wed, 27 Aug 2008 14:36:37 +0200
parents d470630b8cea
children fde0748bd6aa
files src/audacious/audconfig.c
diffstat 1 files changed, 3 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/audconfig.c	Wed Aug 13 21:33:54 2008 +0300
+++ b/src/audacious/audconfig.c	Wed Aug 27 14:36:37 2008 +0200
@@ -637,29 +637,6 @@
 
     hook_call("config save", db);
 
-    /* FIXME: we're looking up SkinnedWindow::x &c ourselves here.
-     * this isn't exactly right. -nenolod
-     */
-    if ( playlistwin &&
-         SKINNED_WINDOW(playlistwin)->x != -1 &&
-         SKINNED_WINDOW(playlistwin)->y != -1 )
-    {
-        cfg_db_set_int(db, NULL, "playlist_x",
-                           SKINNED_WINDOW(playlistwin)->x);
-        cfg_db_set_int(db, NULL, "playlist_y",
-                           SKINNED_WINDOW(playlistwin)->y);
-    }
-    
-    if ( equalizerwin &&
-         SKINNED_WINDOW(equalizerwin)->x != -1 &&
-         SKINNED_WINDOW(equalizerwin)->y != -1 )
-    {
-        cfg_db_set_int(db, NULL, "equalizer_x",
-                           SKINNED_WINDOW(equalizerwin)->x);
-        cfg_db_set_int(db, NULL, "equalizer_y",
-                           SKINNED_WINDOW(equalizerwin)->y);
-    }
-
     for (i = 0; i < ncfgsent; ++i) {
         if (aud_strents[i].se_wrt)
             cfg_db_set_string(db, NULL,
@@ -668,7 +645,7 @@
     }
 
     cfg_db_set_float(db, NULL, "equalizer_preamp", cfg.equalizer_preamp);
-    
+
     /* RG settings */
     cfg_db_set_float(db, NULL, "replay_gain_preamp", cfg.replay_gain_preamp);
     cfg_db_set_float(db, NULL, "default_gain",       cfg.default_gain);
@@ -679,16 +656,6 @@
         g_free(str);
     }
 
-    cfg_db_set_float(db, NULL, "scale_factor", cfg.scale_factor);
-
-    if (aud_active_skin != NULL)
-    {
-        if (aud_active_skin->path)
-            cfg_db_set_string(db, NULL, "skin", aud_active_skin->path);
-        else
-            cfg_db_unset_key(db, NULL, "skin");
-    }
-
     if (get_current_output_plugin())
         cfg_db_set_string(db, NULL, "output_plugin",
                               get_current_output_plugin()->filename);
@@ -727,10 +694,10 @@
 
     cfg_db_set_int(db, NULL, "url_history_length",
                        g_list_length(cfg.url_history));
-    
+
     input_get_volume(&vol_l,&vol_r);
     cfg_db_set_int(db, NULL, "saved_volume", (vol_l<<8) | vol_r );
-    
+
     for (node = cfg.url_history, i = 1; node; node = g_list_next(node), i++) {
         str = g_strdup_printf("url_history%d", i);
         cfg_db_set_string(db, NULL, str, node->data);