changeset 868:29132467a450 trunk

[svn] fixed multiple spawns of wav-sndfile aboutbox
author giacomo
date Fri, 24 Mar 2006 08:03:56 -0800
parents 86e8224baa0e
children 3e2375d5d216
files Plugins/Input/wav/wav-sndfile.c
diffstat 1 files changed, 24 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/wav/wav-sndfile.c	Fri Mar 24 08:00:06 2006 -0800
+++ b/Plugins/Input/wav/wav-sndfile.c	Fri Mar 24 08:03:56 2006 -0800
@@ -240,27 +240,30 @@
 static void wav_about(void)
 {
         static GtkWidget *box;
-        box = xmms_show_message(
-                _("About sndfile WAV support"),
-                _("Adapted for Audacious usage by Tony Vroon <chainsaw@gentoo.org>\n"
-                  "from the xmms_sndfile plugin which is:\n"
-		  "Copyright (C) 2000, 2002 Erik de Castro Lopo\n\n"
-		  "This program is free software ; you can redistribute it and/or modify \n"
-	          "it under the terms of the GNU General Public License as published by \n"
- 	          "the Free Software Foundation ; either version 2 of the License, or \n"
-	          "(at your option) any later version. \n \n"
-	          "This program is distributed in the hope that it will be useful, \n"
-	          "but WITHOUT ANY WARRANTY ; without even the implied warranty of \n"
-	          "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  \n"
-	          "See the GNU General Public License for more details. \n\n"
-	          "You should have received a copy of the GNU General Public \n"
-	          "License along with this program ; if not, write to \n"
-	          "the Free Software Foundation, Inc., \n"
-	          "59 Temple Place, Suite 330, \n"
-	          "Boston, MA  02111-1307  USA"),
-                _("Ok"), FALSE, NULL, NULL);
-        gtk_signal_connect(GTK_OBJECT(box), "destroy",
-                           (GCallback)gtk_widget_destroyed, &box);
+	if (!box)
+	{
+        	box = xmms_show_message(
+			_("About sndfile WAV support"),
+			_("Adapted for Audacious usage by Tony Vroon <chainsaw@gentoo.org>\n"
+			  "from the xmms_sndfile plugin which is:\n"
+			  "Copyright (C) 2000, 2002 Erik de Castro Lopo\n\n"
+			  "This program is free software ; you can redistribute it and/or modify \n"
+			  "it under the terms of the GNU General Public License as published by \n"
+			  "the Free Software Foundation ; either version 2 of the License, or \n"
+			  "(at your option) any later version. \n \n"
+			  "This program is distributed in the hope that it will be useful, \n"
+			  "but WITHOUT ANY WARRANTY ; without even the implied warranty of \n"
+			  "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  \n"
+			  "See the GNU General Public License for more details. \n\n"
+			  "You should have received a copy of the GNU General Public \n"
+			  "License along with this program ; if not, write to \n"
+			  "the Free Software Foundation, Inc., \n"
+			  "59 Temple Place, Suite 330, \n"
+			  "Boston, MA  02111-1307  USA"),
+			_("Ok"), FALSE, NULL, NULL);
+		gtk_signal_connect(GTK_OBJECT(box), "destroy",
+			(GCallback)gtk_widget_destroyed, &box);
+	}
 }