# HG changeset patch # User giacomo # Date 1152907965 25200 # Node ID 7ca5335c205c900d7d2ad7d927450e4822ca0bff # Parent 1abfc389ecc6364bac0eeb53475fbee359622839 [svn] - preferences window for libconsole plugin diff -r 1abfc389ecc6 -r 7ca5335c205c ChangeLog --- 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. diff -r 1abfc389ecc6 -r 7ca5335c205c Plugins/Input/console/Audacious_Driver.cpp --- 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, diff -r 1abfc389ecc6 -r 7ca5335c205c Plugins/Input/console/Makefile.in --- a/Plugins/Input/console/Makefile.in Fri Jul 14 09:04:58 2006 -0700 +++ b/Plugins/Input/console/Makefile.in Fri Jul 14 13:12:45 2006 -0700 @@ -38,6 +38,7 @@ Ym2413_Emu.cpp \ Ym2612_Emu.cpp \ Track_Emu.cpp \ + Audacious_Config.cpp \ Audacious_Driver.cpp OBJECTS = ${SOURCES:.cpp=.o}