# HG changeset patch # User Calin Crisan ccrisan@gmail.com # Date 1185451580 -10800 # Node ID 4eb2bacab83a2a0dbe8f5cbee1cc4f304f8f1378 # Parent ef07ff837063e6d2177df00619ce206f94384583 Added an information box to cdaudio-ng diff -r ef07ff837063 -r 4eb2bacab83a configure.ac --- a/configure.ac Thu Jul 26 10:33:07 2007 +0100 +++ b/configure.ac Thu Jul 26 15:06:20 2007 +0300 @@ -1094,7 +1094,7 @@ dnl CD-Audio New Generation AC_ARG_ENABLE(cdaudio, - [ --enable-cdaudio enable cdaudio-ng input plugin (default=enabled) ], + [ --disable-cdaudio disable cdaudio-ng input plugin (default=enabled) ], [enable_cdaudio_ng=$enableval], [enable_cdaudio_ng=yes] ) diff -r ef07ff837063 -r 4eb2bacab83a src/cdaudio-ng/cdaudio-ng.c --- a/src/cdaudio-ng/cdaudio-ng.c Thu Jul 26 10:33:07 2007 +0100 +++ b/src/cdaudio-ng/cdaudio-ng.c Thu Jul 26 15:06:20 2007 +0300 @@ -78,7 +78,7 @@ NULL, "CD Audio Plugin NG", cdaudio_init, - NULL /*cdaudio_about*/, // todo: implement an about dialog + cdaudio_about, cdaudio_configure, cdaudio_is_our_file, cdaudio_scan_dir, @@ -158,6 +158,22 @@ { if (debug) printf("cdaudio-ng: cdaudio_about()\n"); + + static GtkWidget* about_window = NULL; + + if (about_window) { + gdk_window_raise(about_window->window); + } + + char about_text[1000]; + sprintf(about_text, "CD Audio Plugin NG\nCopyright (c) 2007, by Calin Crisan \n\tand The Audacious Team.\n\n" + "Many thanks to libcdio developers \n\tand to libcddb developers .\n\n" + "This was a Google Summer of Code 2007 project."); + + about_window = xmms_show_message("About CD Audio Plugin NG", about_text, "OK", FALSE, NULL, NULL); + + g_signal_connect(G_OBJECT(about_window), "destroy", + G_CALLBACK(gtk_widget_destroyed), &about_window); } void cdaudio_configure()