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