Mercurial > audlegacy-plugins
diff src/streambrowser/streambrowser.c @ 2915:703cd5256849
added an about message box
author | Calin Crisan ccrisan@gmail.com |
---|---|
date | Sat, 16 Aug 2008 01:37:42 +0200 |
parents | 113454baecf8 |
children | 3134a0987162 |
line wrap: on
line diff
--- a/src/streambrowser/streambrowser.c Fri Aug 15 16:00:53 2008 +0200 +++ b/src/streambrowser/streambrowser.c Sat Aug 16 01:37:42 2008 +0200 @@ -29,7 +29,6 @@ #include "xiph.h" #include "bookmarks.h" #include "gui/streambrowser_win.h" -#include "gui/about_win.h" typedef struct { @@ -313,6 +312,23 @@ static void sb_about() { debug("sb_about()\n"); + + static GtkWidget* about_window = NULL; + + if (about_window != NULL) { + gtk_window_present(GTK_WINDOW(about_window)); + } + else { + about_window = audacious_info_dialog(_("About Stream Browser"), + _("Copyright (c) 2008, by Calin Crisan <ccrisan@gmail.com> and The Audacious Team.\n\n" + "This is a simple stream browser that includes the most popular streaming directories.\n" + "Many thanks to the Streamtuner developers <http://www.nongnu.org/streamtuner>,\n" + "\tand of course to the whole Audacious community.\n\n" + "Also thank you Tony Vroon for mentoring & guiding me, again.\n\n" + "This was a Google Summer of Code 2008 project."), _("OK"), FALSE, NULL, NULL); + + g_signal_connect(G_OBJECT(about_window), "destroy", G_CALLBACK(gtk_widget_destroyed), &about_window); + } } static void sb_configure()