changeset 69:08c9353a9bb3 trunk

[svn] - about box
author nenolod
date Sat, 30 Sep 2006 23:18:01 -0700
parents d435a3abc035
children 31799ddaf2e9
files ChangeLog src/alac/plugin.c
diffstat 2 files changed, 30 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Sep 30 23:09:09 2006 -0700
+++ b/ChangeLog	Sat Sep 30 23:18:01 2006 -0700
@@ -1,3 +1,11 @@
+2006-10-01 06:09:09 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [136]
+  - set alac::going before we fork the decoder thread off, this stops the core from getting confused
+  
+  trunk/src/alac/plugin.c |    6 +++---
+  1 file changed, 3 insertions(+), 3 deletions(-)
+
+
 2006-10-01 05:57:56 +0000  William Pitcock <nenolod@nenolod.net>
   revision [134]
   - remove spurious debugging notices
--- a/src/alac/plugin.c	Sat Sep 30 23:09:09 2006 -0700
+++ b/src/alac/plugin.c	Sat Sep 30 23:18:01 2006 -0700
@@ -32,9 +32,13 @@
 #include <errno.h>
 #include <string.h>
 
+#include <glib.h>
+#include <glib/gi18n.h>
+
 #include <audacious/plugin.h>
 #include <audacious/output.h>
 #include <audacious/vfs.h>
+#include <audacious/util.h>
 
 #include "demux.h"
 #include "decomp.h"
@@ -52,6 +56,23 @@
 
 extern void set_endian();
 
+static void alac_about(void)
+{
+	static GtkWidget *aboutbox;
+    
+	if(aboutbox != NULL)
+		return;
+
+	aboutbox = xmms_show_message("About Apple Lossless Audio Plugin",
+				     "Copyright (c) 2006 Audacious team\n"
+				     "Portions (c) 2005-2006 David Hammerton <crazney -at- crazney.net>",
+				     _("Ok"), FALSE, NULL, NULL);
+
+	g_signal_connect(G_OBJECT(aboutbox), "destroy",
+			 G_CALLBACK(gtk_widget_destroyed),
+			 &aboutbox);
+}
+
 static void alac_init(void)
 {
 	/* empty */
@@ -117,7 +138,7 @@
     NULL,
     "Apple Lossless Plugin",                       /* Description */  
     alac_init,
-    NULL,
+    alac_about,
     NULL,
     is_our_file,
     NULL,