Mercurial > hg > xmms-sid
annotate src/xs_about.c @ 328:7888e5d973b9
Minor cleanups
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 18 Jan 2005 06:30:03 +0000 |
parents | dd201740a720 |
children | 8fadb3f38445 |
rev | line source |
---|---|
46 | 1 /* |
2 xmms-sid - SIDPlay input plugin for X MultiMedia System (XMMS) | |
3 | |
4 Aboutbox dialog | |
5 | |
324 | 6 Programmed and designed by Matti 'ccr' Hamalainen <ccr@tnsp.org> |
7 (C) Copyright 1999-2005 Tecnic Software productions (TNSP) | |
46 | 8 |
9 This program is free software; you can redistribute it and/or modify | |
10 it under the terms of the GNU General Public License as published by | |
11 the Free Software Foundation; either version 2 of the License, or | |
12 (at your option) any later version. | |
13 | |
14 This program is distributed in the hope that it will be useful, | |
15 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 GNU General Public License for more details. | |
18 | |
19 You should have received a copy of the GNU General Public License | |
20 along with this program; if not, write to the Free Software | |
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
22 */ | |
23 #include "xmms-sid.h" | |
24 #include <gtk/gtk.h> | |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
25 #include "xmms-sid-logo.xpm" |
46 | 26 |
27 | |
28 static GtkWidget *xs_aboutwin = NULL; | |
29 | |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
30 |
253
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
31 #ifdef HAVE_THEMETUNE |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
32 #include <xmms/xmmsctrl.h> |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
33 |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
34 gint xs_about_theme(void) |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
35 { |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
36 const gint iSession = 0; /* Assume session 0 */ |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
37 gint iPos; |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
38 |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
39 /* Stop current song, add theme to playlist, play. */ |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
40 xmms_remote_stop(iSession); |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
41 iPos = xmms_remote_get_playlist_length(iSession); |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
42 xmms_remote_playlist_add_url_string(iSession, THEMETUNE_FILE); |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
43 xmms_remote_set_playlist_pos(iSession, iPos); |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
44 xmms_remote_play(iSession); |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
45 return 0; |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
46 } |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
47 #endif |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
48 |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
49 |
136
92952aeccb77
Minor fixes and improvements, nanosid support.
Matti Hamalainen <ccr@tnsp.org>
parents:
73
diff
changeset
|
50 gint xs_about_ok(void) |
46 | 51 { |
52 gtk_widget_destroy(xs_aboutwin); | |
53 xs_aboutwin = NULL; | |
54 return 0; | |
55 } | |
56 | |
57 | |
58 /* | |
59 * Execute the aboutbox | |
60 */ | |
61 void xs_about(void) | |
62 { | |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
63 GtkWidget *about_vbox1; |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
64 GtkWidget *about_frame; |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
65 GtkWidget *about_logo; |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
66 GdkPixmap *about_logo_pixmap = NULL, *about_logo_mask = NULL; |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
67 GtkWidget *about_scrwin; |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
68 GtkWidget *about_text; |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
69 GtkWidget *alignment6; |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
70 GtkWidget *about_close; |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
71 |
46 | 72 /* Check if there already is an open about window */ |
73 if (xs_aboutwin != NULL) | |
74 { | |
75 gdk_window_raise(xs_aboutwin->window); | |
76 return; | |
77 } | |
78 | |
79 /* No, create one ... */ | |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
80 xs_aboutwin = gtk_window_new (GTK_WINDOW_DIALOG); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
81 gtk_widget_set_name (xs_aboutwin, "xs_aboutwin"); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
82 gtk_object_set_data (GTK_OBJECT (xs_aboutwin), "xs_aboutwin", xs_aboutwin); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
83 gtk_window_set_title (GTK_WINDOW (xs_aboutwin), "About " PACKAGE_STRING); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
84 gtk_window_set_default_size (GTK_WINDOW (xs_aboutwin), 300, -1); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
85 |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
86 about_vbox1 = gtk_vbox_new (FALSE, 0); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
87 gtk_widget_set_name (about_vbox1, "about_vbox1"); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
88 gtk_widget_ref (about_vbox1); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
89 gtk_object_set_data_full (GTK_OBJECT (xs_aboutwin), "about_vbox1", about_vbox1, |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
90 (GtkDestroyNotify) gtk_widget_unref); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
91 gtk_widget_show (about_vbox1); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
92 gtk_container_add (GTK_CONTAINER (xs_aboutwin), about_vbox1); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
93 |
253
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
94 #ifdef HAVE_THEMETUNE |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
95 about_frame = gtk_button_new(); |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
96 #else |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
97 about_frame = gtk_frame_new (NULL); |
253
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
98 #endif |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
99 gtk_widget_set_name (about_frame, "about_frame"); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
100 gtk_widget_ref (about_frame); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
101 gtk_object_set_data_full (GTK_OBJECT (xs_aboutwin), "about_frame", about_frame, |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
102 (GtkDestroyNotify) gtk_widget_unref); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
103 gtk_widget_show (about_frame); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
104 gtk_box_pack_start (GTK_BOX (about_vbox1), about_frame, FALSE, FALSE, 0); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
105 gtk_container_set_border_width (GTK_CONTAINER (about_frame), 4); |
253
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
106 |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
107 #ifdef HAVE_THEMETUNE |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
108 gtk_signal_connect (GTK_OBJECT (about_frame), "clicked", GTK_SIGNAL_FUNC (xs_about_theme), NULL); |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
109 #else |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
110 gtk_frame_set_shadow_type (GTK_FRAME (about_frame), GTK_SHADOW_OUT); |
253
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
111 #endif |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
112 |
63 | 113 /* Create the Gdk data for logo pixmap */ |
114 gtk_widget_realize (xs_aboutwin); | |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
115 about_logo_pixmap = gdk_pixmap_create_from_xpm_d( |
63 | 116 xs_aboutwin->window, |
117 &about_logo_mask, | |
118 NULL, | |
119 (gchar **) xmms_sid_logo_xpm); | |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
120 |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
121 about_logo = gtk_pixmap_new(about_logo_pixmap, about_logo_mask); |
63 | 122 |
123 /* Create logo widget */ | |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
124 gtk_widget_set_name (about_logo, "about_logo"); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
125 gtk_widget_ref (about_logo); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
126 gtk_object_set_data_full (GTK_OBJECT (xs_aboutwin), "about_logo", about_logo, |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
127 (GtkDestroyNotify) gtk_widget_unref); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
128 gtk_widget_show (about_logo); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
129 gtk_container_add (GTK_CONTAINER (about_frame), about_logo); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
130 gtk_misc_set_padding (GTK_MISC (about_logo), 0, 6); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
131 |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
132 about_scrwin = gtk_scrolled_window_new (NULL, NULL); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
133 gtk_widget_set_name (about_scrwin, "about_scrwin"); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
134 gtk_widget_ref (about_scrwin); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
135 gtk_object_set_data_full (GTK_OBJECT (xs_aboutwin), "about_scrwin", about_scrwin, |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
136 (GtkDestroyNotify) gtk_widget_unref); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
137 gtk_widget_show (about_scrwin); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
138 gtk_box_pack_start (GTK_BOX (about_vbox1), about_scrwin, TRUE, TRUE, 0); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
139 gtk_container_set_border_width (GTK_CONTAINER (about_scrwin), 8); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
140 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (about_scrwin), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
141 |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
142 about_text = gtk_text_new (NULL, NULL); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
143 gtk_widget_set_name (about_text, "about_text"); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
144 gtk_widget_ref (about_text); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
145 gtk_object_set_data_full (GTK_OBJECT (xs_aboutwin), "about_text", about_text, |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
146 (GtkDestroyNotify) gtk_widget_unref); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
147 gtk_widget_show (about_text); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
148 gtk_container_add (GTK_CONTAINER (about_scrwin), about_text); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
149 gtk_widget_set_usize (about_text, -2, 100); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
150 gtk_text_insert (GTK_TEXT (about_text), NULL, NULL, NULL, |
264 | 151 "\n" |
262
0b7a65890a5a
Fixed typo in credits, cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
254
diff
changeset
|
152 "(C) Copyright 1999-2004\n" |
163
5970faa2530f
Added copyright information
Matti Hamalainen <ccr@tnsp.org>
parents:
154
diff
changeset
|
153 "\tTecnic Software productions (TNSP)\n" |
5970faa2530f
Added copyright information
Matti Hamalainen <ccr@tnsp.org>
parents:
154
diff
changeset
|
154 "\n" |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
155 "Programming and design\n" |
262
0b7a65890a5a
Fixed typo in credits, cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
254
diff
changeset
|
156 "\tMatti 'ccr' Hämäläinen\n" |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
157 "\n" |
253
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
158 #ifdef HAVE_SIDPLAY1 |
322
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
159 "libSIDPlay1 created by\n" |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
160 "\tMichael Schwendt\n" |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
161 "\n" |
253
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
162 #endif |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
163 #ifdef HAVE_SIDPLAY2 |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
164 "libSIDPlay2 and reSID created by\n" |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
165 "\tSimon White, Dag Lem,\n" |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
166 "\tMichael Schwendt and rest.\n" |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
167 "\n" |
253
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
168 #endif |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
169 #ifdef HAVE_THEMETUNE |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
170 "\"Kummatti City\", theme of XMMS-SID 0.8\n" |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
171 "\tby Ari 'Agemixer' Yliaho\n" |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
172 "\t(C) Copyright 1998 Scallop\n" |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
253
diff
changeset
|
173 "\t(Refer to README for license)\n" |
253
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
174 "\n" |
fa463b3ca57b
Compile-time optionally enabled themetune support in about-dialog (click the logo image)
Matti Hamalainen <ccr@tnsp.org>
parents:
177
diff
changeset
|
175 #endif |
262
0b7a65890a5a
Fixed typo in credits, cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
254
diff
changeset
|
176 "Original XMMS-SID (v0.4) by\n" |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
177 "\tWillem Monsuwe\n" |
322
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
178 "\n", -1); |
65
bf7b647b3239
The fabled 0.8-rewrite now works to some extent
Matti Hamalainen <ccr@tnsp.org>
parents:
63
diff
changeset
|
179 |
bf7b647b3239
The fabled 0.8-rewrite now works to some extent
Matti Hamalainen <ccr@tnsp.org>
parents:
63
diff
changeset
|
180 gtk_text_insert (GTK_TEXT (about_text), NULL, NULL, NULL, |
322
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
181 "Greetings fly out to ...\n" |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
182 "\tEveryone at #Linux.Fi, #Fireball,\n" |
322
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
183 "\t#TNSP and #c-64 of IRCNet, #xmms\n" |
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
184 "\tof Freenode.net.\n" |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
185 "\n" |
322
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
186 "\tDekadence, PWP, Byterapers,\n" |
328 | 187 "\tmfx, Unique, Fairlight, iSO,\n" |
65
bf7b647b3239
The fabled 0.8-rewrite now works to some extent
Matti Hamalainen <ccr@tnsp.org>
parents:
63
diff
changeset
|
188 "\tWrath Designs, Padua, Extend,\n" |
322
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
189 "\tPHn, Creators, Cosine, tAAt,\n" |
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
190 "\tViruz, Crest and Skalaria.\n" |
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
191 "\n", -1); |
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
192 |
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
193 gtk_text_insert (GTK_TEXT (about_text), NULL, NULL, NULL, |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
194 "Special thanks\n" |
322
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
195 "\tGerfried 'Alfie' Fuchs\n" |
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
196 "\tAndreas 'mrsid' Varga\n" |
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
197 "\tAll the betatesters.\n" |
d40c1ca754aa
Updated credits and greetings
Matti Hamalainen <ccr@tnsp.org>
parents:
264
diff
changeset
|
198 "\tAll the users!\n", -1); |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
199 |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
200 alignment6 = gtk_alignment_new (0.5, 0.5, 0.18, 1); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
201 gtk_widget_set_name (alignment6, "alignment6"); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
202 gtk_widget_ref (alignment6); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
203 gtk_object_set_data_full (GTK_OBJECT (xs_aboutwin), "alignment6", alignment6, |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
204 (GtkDestroyNotify) gtk_widget_unref); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
205 gtk_widget_show (alignment6); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
206 gtk_box_pack_start (GTK_BOX (about_vbox1), alignment6, FALSE, TRUE, 0); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
207 gtk_container_set_border_width (GTK_CONTAINER (alignment6), 8); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
208 |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
209 about_close = gtk_button_new_with_label ("Close"); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
210 gtk_widget_set_name (about_close, "about_close"); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
211 gtk_widget_ref (about_close); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
212 gtk_object_set_data_full (GTK_OBJECT (xs_aboutwin), "about_close", about_close, |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
213 (GtkDestroyNotify) gtk_widget_unref); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
214 gtk_widget_show (about_close); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
215 gtk_container_add (GTK_CONTAINER (alignment6), about_close); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
216 GTK_WIDGET_SET_FLAGS (about_close, GTK_CAN_DEFAULT); |
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
217 |
136
92952aeccb77
Minor fixes and improvements, nanosid support.
Matti Hamalainen <ccr@tnsp.org>
parents:
73
diff
changeset
|
218 gtk_signal_connect (GTK_OBJECT (about_close), "clicked", GTK_SIGNAL_FUNC (xs_about_ok), NULL); |
61
8207e95e0467
Made logo-pixmap internal again
Matti Hamalainen <ccr@tnsp.org>
parents:
46
diff
changeset
|
219 |
46 | 220 gtk_widget_show(xs_aboutwin); |
221 } | |
222 |