Mercurial > audlegacy-plugins
changeset 1377:4eb2bacab83a
Added an information box to cdaudio-ng
author | Calin Crisan ccrisan@gmail.com |
---|---|
date | Thu, 26 Jul 2007 15:06:20 +0300 |
parents | ef07ff837063 |
children | 7a7f446bc87c |
files | configure.ac src/cdaudio-ng/cdaudio-ng.c |
diffstat | 2 files changed, 18 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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] )
--- 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 <ccrisan@gmail.com>\n\tand The Audacious Team.\n\n" + "Many thanks to libcdio developers <http://www.gnu.org/software/libcdio/>\n\tand to libcddb developers <http://libcddb.sourceforge.net/>.\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()