Mercurial > audlegacy-plugins
diff src/skins/skins_cfg.c @ 2581:6a0755e8c1b3
add ui_skinned_menurow
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Tue, 20 May 2008 14:37:50 +0200 |
parents | c0b08527b121 |
children | 9b4dfc007b87 |
line wrap: on
line diff
--- a/src/skins/skins_cfg.c Mon May 19 18:07:28 2008 +0200 +++ b/src/skins/skins_cfg.c Tue May 20 14:37:50 2008 +0200 @@ -20,6 +20,7 @@ #include "skins_cfg.h" +#include "ui_skin.h" #include <glib.h> #include <stdlib.h> #include <audacious/plugin.h> @@ -51,7 +52,19 @@ */ if (!aud_cfg_db_get_string(cfgfile, "skins", "skin", &(cfg->skin))) - cfg->skin = g_strdup("/usr/local/share/audacious/Skins/Default"); + cfg->skin = g_strdup(BMP_DEFAULT_SKIN_PATH); + + if (!aud_cfg_db_get_bool(cfgfile, "skins", "scaled", &(cfg->scaled))) + cfg->scaled = FALSE; + + if (!aud_cfg_db_get_bool(cfgfile, "skins", "always_on_top", &(cfg->always_on_top))) + cfg->always_on_top = FALSE; + + if (!aud_cfg_db_get_float(cfgfile, "skins", "scale_factor", &(cfg->scale_factor))) + cfg->scale_factor = 2.0; + + if (!aud_cfg_db_get_bool(cfgfile, "skins", "always_show_cb", &(cfg->always_show_cb))) + cfg->always_show_cb = TRUE; aud_cfg_db_close( cfgfile );