comparison 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
comparison
equal deleted inserted replaced
2914:457260d55428 2915:703cd5256849
27 #include "streamdir.h" 27 #include "streamdir.h"
28 #include "shoutcast.h" 28 #include "shoutcast.h"
29 #include "xiph.h" 29 #include "xiph.h"
30 #include "bookmarks.h" 30 #include "bookmarks.h"
31 #include "gui/streambrowser_win.h" 31 #include "gui/streambrowser_win.h"
32 #include "gui/about_win.h"
33 32
34 33
35 typedef struct { 34 typedef struct {
36 35
37 gboolean debug; 36 gboolean debug;
311 } 310 }
312 311
313 static void sb_about() 312 static void sb_about()
314 { 313 {
315 debug("sb_about()\n"); 314 debug("sb_about()\n");
315
316 static GtkWidget* about_window = NULL;
317
318 if (about_window != NULL) {
319 gtk_window_present(GTK_WINDOW(about_window));
320 }
321 else {
322 about_window = audacious_info_dialog(_("About Stream Browser"),
323 _("Copyright (c) 2008, by Calin Crisan <ccrisan@gmail.com> and The Audacious Team.\n\n"
324 "This is a simple stream browser that includes the most popular streaming directories.\n"
325 "Many thanks to the Streamtuner developers <http://www.nongnu.org/streamtuner>,\n"
326 "\tand of course to the whole Audacious community.\n\n"
327 "Also thank you Tony Vroon for mentoring & guiding me, again.\n\n"
328 "This was a Google Summer of Code 2008 project."), _("OK"), FALSE, NULL, NULL);
329
330 g_signal_connect(G_OBJECT(about_window), "destroy", G_CALLBACK(gtk_widget_destroyed), &about_window);
331 }
316 } 332 }
317 333
318 static void sb_configure() 334 static void sb_configure()
319 { 335 {
320 debug("sb_configure()\n"); 336 debug("sb_configure()\n");