Mercurial > audlegacy
changeset 109:c4876d6c9cc0 trunk
[svn] Add about box.
author | nenolod |
---|---|
date | Wed, 02 Nov 2005 22:07:17 -0800 |
parents | cde5ca21ddc3 |
children | c7b8b680505c |
files | Plugins/Input/console/Audacious_Driver.cpp |
diffstat | 1 files changed, 14 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Input/console/Audacious_Driver.cpp Wed Nov 02 21:45:23 2005 -0800 +++ b/Plugins/Input/console/Audacious_Driver.cpp Wed Nov 02 22:07:17 2005 -0800 @@ -10,12 +10,13 @@ extern "C" { +#include <glib.h> #include <glib/gi18n.h> +#include <gtk/gtk.h> #include "libaudacious/configfile.h" #include "libaudacious/util.h" #include "libaudacious/titlestring.h" #include "audacious/output.h" -#include <gtk/gtk.h> }; @@ -32,6 +33,7 @@ static void *play_loop(gpointer arg); static void console_init(void); +extern "C" void console_aboutbox(void); static void console_stop(void); static void console_pause(gshort p); static int get_time(void); @@ -111,7 +113,7 @@ name = get_title(filename); - console_ip.set_info(name, -1, 0, 32000, 2); + console_ip.set_info(name, -1, spc->voice_count(), 32000, 2); g_free(name); @@ -131,7 +133,7 @@ NULL, NULL, console_init, - NULL, + console_aboutbox, NULL, is_our_file, NULL, @@ -162,7 +164,7 @@ extern "C" InputPlugin *get_iplugin_info(void) { - console_ip.description = g_strdup_printf(_("Console music plugin")); + console_ip.description = g_strdup_printf(_("SPC, GYM, NSF, VGM and GBS module decoder")); return &console_ip; } @@ -201,3 +203,11 @@ } +extern "C" void console_aboutbox(void) +{ + xmms_show_message(_("About the Console Music Decoder"), + _("Console music decoder engine based on Game_Music_Emu 0.2.4.\n" + "Audacious implementation by: William Pitcock <nenolod@nenolod.net>"), + _("Ok"), + FALSE, NULL, NULL); +}