Mercurial > hg > xmms-sid
comparison src/xs_about.c @ 46:ffb606e17bec
Re-added xs_about.c
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 20 Jun 2003 01:39:04 +0000 |
parents | |
children | 8207e95e0467 |
comparison
equal
deleted
inserted
replaced
45:84214a409d19 | 46:ffb606e17bec |
---|---|
1 /* | |
2 xmms-sid - SIDPlay input plugin for X MultiMedia System (XMMS) | |
3 | |
4 Aboutbox dialog | |
5 | |
6 Written by Matti "ccr" Hamalainen <ccr@tnsp.org> | |
7 | |
8 This program is free software; you can redistribute it and/or modify | |
9 it under the terms of the GNU General Public License as published by | |
10 the Free Software Foundation; either version 2 of the License, or | |
11 (at your option) any later version. | |
12 | |
13 This program is distributed in the hope that it will be useful, | |
14 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 GNU General Public License for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with this program; if not, write to the Free Software | |
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
21 */ | |
22 | |
23 #include "xmms-sid.h" | |
24 #include <gtk/gtk.h> | |
25 /* #include "xmms-sid-logo.xpm" */ | |
26 | |
27 | |
28 static GtkWidget *xs_aboutwin = NULL; | |
29 | |
30 int xs_about_ok(void) | |
31 { | |
32 gtk_widget_destroy(xs_aboutwin); | |
33 xs_aboutwin = NULL; | |
34 return 0; | |
35 } | |
36 | |
37 | |
38 /* | |
39 * Execute the aboutbox | |
40 */ | |
41 void xs_about(void) | |
42 { | |
43 /* Check if there already is an open about window */ | |
44 if (xs_aboutwin != NULL) | |
45 { | |
46 gdk_window_raise(xs_aboutwin->window); | |
47 return; | |
48 } | |
49 | |
50 /* No, create one ... */ | |
51 xs_aboutwin = create_xs_aboutwin(); | |
52 gtk_widget_show(xs_aboutwin); | |
53 } | |
54 |