Mercurial > audlegacy
changeset 1403:7ca5335c205c trunk
[svn] - preferences window for libconsole plugin
author | giacomo |
---|---|
date | Fri, 14 Jul 2006 13:12:45 -0700 |
parents | 1abfc389ecc6 |
children | 383c2527a84b |
files | ChangeLog Plugins/Input/console/Audacious_Driver.cpp Plugins/Input/console/Makefile.in |
diffstat | 3 files changed, 18 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Jul 14 09:04:58 2006 -0700 +++ b/ChangeLog Fri Jul 14 13:12:45 2006 -0700 @@ -1,3 +1,14 @@ +2006-07-14 16:04:58 +0000 Yoshiki Yazawa <yaz@cc.rim.or.jp> + revision [1718] + fileinfo_show_for_tuple() sometimes causes "Invalid UTF-8 string" + pango waring since tuple->file_path and tuple->file_name may contain + non UTF-8 characters. + + + Changes: Modified: + +8 -2 trunk/audacious/ui_fileinfo.c + + 2006-07-14 14:55:53 +0000 Yoshiki Yazawa <yaz@cc.rim.or.jp> revision [1716] - now filepopup_pointer_check_iter() returns immediately if cfg.show_filepopup_for_tuple is FALSE.
--- a/Plugins/Input/console/Audacious_Driver.cpp Fri Jul 14 09:04:58 2006 -0700 +++ b/Plugins/Input/console/Audacious_Driver.cpp Fri Jul 14 13:12:45 2006 -0700 @@ -9,7 +9,6 @@ #include <glib.h> #include <glib/gi18n.h> #include <gtk/gtk.h> -#include "libaudacious/configdb.h" #include "libaudacious/util.h" #include "libaudacious/titlestring.h" extern "C" { @@ -21,6 +20,9 @@ #include <ctype.h> #include <math.h> +// configdb and prefs ui +#include "Audacious_Config.h" + // Game_Music_Emu #include "Nsf_Emu.h" #include "Nsfe_Emu.h" @@ -37,15 +39,7 @@ //typedef Vfs_File_Reader Audacious_Reader; // will use VFS once it handles gzip transparently typedef Gzip_File_Reader Audacious_Reader; -struct AudaciousConsoleConfig { - gint loop_length; // length of tracks that lack timing information - gboolean resample; // whether or not to resample - gint resample_rate; // rate to resample at - gboolean nsfe_playlist; // if true, use optional NSFE playlist - gint treble; // -100 to +100 - gint bass; // -100 to +100 -}; -static AudaciousConsoleConfig audcfg = { 180, FALSE, 32000, TRUE, 0, 0 }; +AudaciousConsoleConfig audcfg = { 180, FALSE, 32000, TRUE, 0, 0 }; static GThread* decode_thread; static GStaticMutex playback_mutex = G_STATIC_MUTEX_INIT; static int console_ip_is_going; @@ -801,18 +795,7 @@ static void console_init(void) { - ConfigDb *db; - - db = bmp_cfg_db_open(); - - bmp_cfg_db_get_int(db, "console", "loop_length", &audcfg.loop_length); - bmp_cfg_db_get_bool(db, "console", "resample", &audcfg.resample); - bmp_cfg_db_get_int(db, "console", "resample_rate", &audcfg.resample_rate); - bmp_cfg_db_get_bool(db, "console", "nsfe_playlist", &audcfg.nsfe_playlist); - bmp_cfg_db_get_int(db, "console", "treble", &audcfg.treble); - bmp_cfg_db_get_int(db, "console", "bass", &audcfg.bass); - - bmp_cfg_db_close(db); + console_cfg_load(); } extern "C" void console_aboutbox(void) @@ -840,7 +823,7 @@ NULL, console_init, console_aboutbox, - NULL, + console_cfg_ui, is_our_file, NULL, play_file,