comparison Plugins/Input/console/Audacious_Driver.cpp @ 900:9eaff2f6cd4b trunk

[svn] prevent libconsole aboutbox from spawning multiple times
author giacomo
date Thu, 30 Mar 2006 13:47:45 -0800
parents d539e5c5f730
children 8f1b7d07bef5
comparison
equal deleted inserted replaced
899:83a1c8396625 900:9eaff2f6cd4b
665 bmp_cfg_db_close(db); 665 bmp_cfg_db_close(db);
666 } 666 }
667 667
668 extern "C" void console_aboutbox(void) 668 extern "C" void console_aboutbox(void)
669 { 669 {
670 xmms_show_message(_("About the Console Music Decoder"), 670 static GtkWidget * aboutbox = NULL;
671 _("Console music decoder engine based on Game_Music_Emu 0.3.0.\n" 671
672 "Audacious implementation by: William Pitcock <nenolod@nenolod.net>, \n" 672 if (!aboutbox)
673 // Please do not put my hotpop.com address in the clear (I hate spam) 673 {
674 " Shay Green <hotpop.com@blargg>"), 674 aboutbox = xmms_show_message(_("About the Console Music Decoder"),
675 _("Ok"), 675 _("Console music decoder engine based on Game_Music_Emu 0.3.0.\n"
676 FALSE, NULL, NULL); 676 "Audacious implementation by: William Pitcock <nenolod@nenolod.net>, \n"
677 // Please do not put my hotpop.com address in the clear (I hate spam)
678 " Shay Green <hotpop.com@blargg>"),
679 _("Ok"),
680 FALSE, NULL, NULL);
681 gtk_signal_connect(GTK_OBJECT(aboutbox), "destroy",
682 (GCallback)gtk_widget_destroyed, &aboutbox);
683 }
677 } 684 }
678 685
679 InputPlugin console_ip = 686 InputPlugin console_ip =
680 { 687 {
681 NULL, 688 NULL,