Mercurial > audlegacy
annotate audacious/credits.c @ 1824:2a5621bfc610 trunk
[svn] - more mtime = 0 checks
- try to grab the tuple immediately on add
author | nenolod |
---|---|
date | Thu, 05 Oct 2006 03:03:56 -0700 |
parents | 687b63f7b18d |
children | 1830d09e33bf |
rev | line source |
---|---|
500 | 1 /* Audacious - Cross-platform multimedia player |
2 * Copyright (C) 2005-2006 Audacious Team | |
3 * | |
4 * XMMS - Cross-platform multimedia player | |
0 | 5 * Copyright (C) 1998-2003 Peter Alm, Mikael Alm, Olle Hallnas, |
6 * Thomas Nilsson and 4Front Technologies | |
7 * Copyright (C) 2000-2003 Haavard Kvaalen | |
8 * | |
9 * This program is free software; you can redistribute it and/or modify | |
1460 | 10 * it under the terms of the GNU General Public License as published by |
0 | 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 | |
1459 | 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
0 | 22 */ |
23 | |
24 #ifdef HAVE_CONFIG_H | |
25 # include "config.h" | |
26 #endif | |
27 | |
471 | 28 #include "credits.h" |
0 | 29 |
30 #include <glib.h> | |
31 #include <glib/gi18n.h> | |
32 #include <gtk/gtk.h> | |
33 | |
34 #include "audacious_logo.xpm" | |
35 | |
36 | |
37 enum { | |
38 COL_LEFT, | |
39 COL_RIGHT, | |
40 N_COLS | |
41 }; | |
42 | |
43 | |
44 static const gchar *bmp_brief = | |
45 N_("<big><b>Audacious %s</b></big>\n" | |
360
222a0d71cbcf
[svn] - change our slogan to "The future of UNIX multimedia."
nenolod
parents:
232
diff
changeset
|
46 "The future of UNIX multimedia.\n" |
0 | 47 "\n" |
360
222a0d71cbcf
[svn] - change our slogan to "The future of UNIX multimedia."
nenolod
parents:
232
diff
changeset
|
48 "Copyright (C) 2005-2006 Audacious Development Team\n"); |
0 | 49 |
50 static const gchar *credit_text[] = { | |
501
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
51 N_("Audacious core developers:"), |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
52 "George Averill", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
53 "Giacomo Lozito", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
54 "William Pitcock", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
55 "Derek Pomery", |
1802
687b63f7b18d
[svn] Just saw that it's ordered by last name. Of cours, I was to blind
js
parents:
1801
diff
changeset
|
56 "Jonathan Schleifer", |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
57 "Tony Vroon", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
58 "Yoshiki Yazawa", |
501
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
59 NULL, |
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
60 |
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
61 N_("Graphics:"), |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
62 "George Averill", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
63 "Stephan Sokolow", |
503
1cc9edf68ce9
[svn] Remove crap that is unneeded from about.c, update credits information.
nenolod
parents:
501
diff
changeset
|
64 NULL, |
1cc9edf68ce9
[svn] Remove crap that is unneeded from about.c, update credits information.
nenolod
parents:
501
diff
changeset
|
65 |
1cc9edf68ce9
[svn] Remove crap that is unneeded from about.c, update credits information.
nenolod
parents:
501
diff
changeset
|
66 N_("Default skin:"), |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
67 "George Averill", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
68 "William Pitcock", |
501
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
69 NULL, |
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
70 |
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
71 N_("Plugin development:"), |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
72 "Kiyoshi Aman", |
1660 | 73 "Luca Barbato", |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
74 "Shay Green", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
75 "Giacomo Lozito", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
76 "William Pitcock", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
77 "Derek Pomery", |
1802
687b63f7b18d
[svn] Just saw that it's ordered by last name. Of cours, I was to blind
js
parents:
1801
diff
changeset
|
78 "Jonathan Schleifer", |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
79 "Tony Vroon", |
0 | 80 NULL, |
81 | |
360
222a0d71cbcf
[svn] - change our slogan to "The future of UNIX multimedia."
nenolod
parents:
232
diff
changeset
|
82 N_("0.1.x developers:"), |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
83 "William Pitcock", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
84 "Mohammed Sameer", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
85 "Tony Vroon", |
0 | 86 NULL, |
87 | |
88 N_("BMP Developers:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
89 "Artem Baguinski", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
90 "Edward Brocklesby", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
91 "Chong Kai Xiong", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
92 "Milosz Derezynski", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
93 "David Lau", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
94 "Ole Andre Vadla Ravnaas", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
95 "Michiel Sikkes", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
96 "Andrei Badea", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
97 "Peter Behroozi", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
98 "Bernard Blackham", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
99 "Oliver Blin", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
100 "Tomas Bzatek", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
101 "Liviu Danicel", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
102 "Jon Dowland", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
103 "Artur Frysiak", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
104 "Sebastian Kapfer", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
105 "Lukas Koberstein", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
106 "Dan Korostelev", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
107 "Jolan Luff", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
108 "Michael Marineau", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
109 "Tim-Philipp Muller", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
110 "Julien Portalier", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
111 "Andrew Ruder", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
112 "Olivier Samyn", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
113 "Martijn Vernooij", |
0 | 114 NULL, |
115 | |
116 NULL | |
117 }; | |
118 | |
119 static const gchar *translators[] = { | |
120 N_("Brazilian Portuguese:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
121 "Philipi Pinto", |
0 | 122 NULL, |
123 N_("Breton:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
124 "Thierry Vignaud", |
0 | 125 NULL, |
126 N_("Chinese:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
127 "Chong Kai Xiong", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
128 "Chao-Hsiung Liao", |
0 | 129 NULL, |
130 N_("Czech:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
131 "Jan Narovec", |
0 | 132 NULL, |
133 N_("Dutch:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
134 "Laurens Buhler", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
135 "Tony Vroon", |
0 | 136 NULL, |
137 N_("Finnish:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
138 "Pauli Virtanen", |
0 | 139 NULL, |
140 N_("French:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
141 "David Le Brun", |
0 | 142 NULL, |
143 N_("German:"), | |
1334
fe42b588cb53
[svn] Update translation credits for German (hansmi) & Polish (vojcek).
chainsaw
parents:
1132
diff
changeset
|
144 "Michael Hanselmann", |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
145 "Matthias Debus", |
0 | 146 NULL, |
147 N_("Georgian: "), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
148 "George Machitidze", |
0 | 149 NULL, |
150 N_("Greek:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
151 "Kouzinopoulos Haris", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
152 "Stavros Giannouris", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
153 "Stathis Kamperis", |
0 | 154 NULL, |
155 N_("Hindi:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
156 "Dhananjaya Sharma", |
0 | 157 NULL, |
158 N_("Hungarian:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
159 "Laszlo Dvornik", |
0 | 160 NULL, |
161 N_("Italian:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
162 "Alessio D'Ascanio", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
163 "Diego Pettenò", |
0 | 164 NULL, |
165 N_("Japanese:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
166 "Dai", |
0 | 167 NULL, |
168 N_("Korean:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
169 "DongCheon Park", |
0 | 170 NULL, |
171 N_("Lithuanian:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
172 "Rimas Kudelis", |
0 | 173 NULL, |
174 N_("Macedonian:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
175 "Arangel Angov", |
0 | 176 NULL, |
177 N_("Polish:"), | |
1334
fe42b588cb53
[svn] Update translation credits for German (hansmi) & Polish (vojcek).
chainsaw
parents:
1132
diff
changeset
|
178 "Wojciech Myrda" |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
179 "Jacek Wolszczak", |
0 | 180 NULL, |
181 N_("Romanian:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
182 "Liviu Danicel", |
0 | 183 NULL, |
184 N_("Russian:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
185 "Pavlo Bohmat", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
186 "Dan Korostelev", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
187 "Vitaly Lipatov", |
0 | 188 NULL, |
189 N_("Slovak:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
190 "Pavel Kanzelsberger", |
0 | 191 NULL, |
192 N_("Spanish:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
193 "Gustavo D. Vranjes", |
0 | 194 NULL, |
195 N_("Swedish:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
196 "Martin Persenius", |
0 | 197 NULL, |
198 N_("Ukrainian:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
199 "Mykola Lynnyk", |
0 | 200 NULL, |
201 N_("Welsh:"), | |
1132
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
202 "Edward Brocklesby", |
0 | 203 NULL, |
204 | |
205 NULL | |
206 }; | |
207 | |
208 | |
209 static GtkWidget * | |
210 generate_credit_list(const gchar * text[], gboolean sec_space) | |
211 { | |
212 GtkWidget *scrollwin; | |
213 GtkWidget *treeview; | |
214 GtkListStore *list_store; | |
215 GtkTreeIter iter; | |
216 GtkTreeViewColumn *column; | |
217 GtkCellRenderer *renderer; | |
218 const gchar *const *item; | |
219 | |
220 list_store = gtk_list_store_new(N_COLS, G_TYPE_STRING, G_TYPE_STRING); | |
221 | |
222 item = text; | |
223 | |
224 while (*item) { | |
225 gtk_list_store_append(list_store, &iter); | |
226 gtk_list_store_set(list_store, &iter, | |
227 COL_LEFT, _(item[0]), COL_RIGHT, _(item[1]), -1); | |
228 item += 2; | |
229 | |
230 while (*item) { | |
231 gtk_list_store_append(list_store, &iter); | |
232 gtk_list_store_set(list_store, &iter, | |
233 COL_LEFT, "", COL_RIGHT, _(*item++), -1); | |
234 } | |
235 | |
236 ++item; | |
237 | |
238 if (*item && sec_space) { | |
239 gtk_list_store_append(list_store, &iter); | |
240 gtk_list_store_set(list_store, &iter, | |
241 COL_LEFT, "", COL_RIGHT, "", -1); | |
242 } | |
243 } | |
244 | |
245 treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(list_store)); | |
246 gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(treeview), FALSE); | |
247 gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(treeview), FALSE); | |
248 gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)), | |
249 GTK_SELECTION_NONE); | |
250 | |
251 renderer = gtk_cell_renderer_text_new(); | |
252 g_object_set(renderer, "xalign", 1.0, NULL); | |
253 column = gtk_tree_view_column_new_with_attributes("Left", renderer, | |
254 "text", COL_LEFT, NULL); | |
255 gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | |
256 | |
257 renderer = gtk_cell_renderer_text_new(); | |
258 g_object_set(renderer, "xalign", 0.0, NULL); | |
259 column = gtk_tree_view_column_new_with_attributes("Right", renderer, | |
260 "text", COL_RIGHT, | |
261 NULL); | |
262 gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | |
263 | |
264 scrollwin = gtk_scrolled_window_new(NULL, NULL); | |
265 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), | |
266 GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); | |
267 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrollwin), GTK_SHADOW_IN); | |
268 gtk_container_add(GTK_CONTAINER(scrollwin), treeview); | |
269 gtk_container_set_border_width(GTK_CONTAINER(scrollwin), 10); | |
270 | |
271 gtk_widget_show_all(scrollwin); | |
272 | |
273 return scrollwin; | |
274 } | |
275 | |
276 void | |
500 | 277 show_credits_window(void) |
0 | 278 { |
279 static GtkWidget *about_window = NULL; | |
280 | |
281 GdkPixmap *beep_logo_pmap = NULL, *beep_logo_mask = NULL; | |
282 GtkWidget *about_vbox; | |
283 GtkWidget *about_credits_logo_box, *about_credits_logo_frame; | |
284 GtkWidget *about_credits_logo; | |
285 GtkWidget *about_notebook; | |
286 GtkWidget *list; | |
287 GtkWidget *bbox, *close_btn; | |
288 GtkWidget *label; | |
289 gchar *text; | |
290 | |
291 if (about_window) | |
292 return; | |
293 | |
294 about_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | |
295 gtk_window_set_type_hint(GTK_WINDOW(about_window), | |
296 GDK_WINDOW_TYPE_HINT_DIALOG); | |
297 | |
501
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
298 gtk_window_set_default_size(GTK_WINDOW(about_window), -1, 512); |
0 | 299 gtk_window_set_title(GTK_WINDOW(about_window), _("About Audacious")); |
300 gtk_window_set_position(GTK_WINDOW(about_window), GTK_WIN_POS_CENTER); | |
301 gtk_window_set_resizable(GTK_WINDOW(about_window), TRUE); | |
302 gtk_container_set_border_width(GTK_CONTAINER(about_window), 10); | |
303 | |
304 g_signal_connect(about_window, "destroy", | |
305 G_CALLBACK(gtk_widget_destroyed), &about_window); | |
306 | |
307 gtk_widget_realize(about_window); | |
308 | |
309 about_vbox = gtk_vbox_new(FALSE, 5); | |
310 gtk_container_add(GTK_CONTAINER(about_window), about_vbox); | |
311 | |
312 if (!beep_logo_pmap) | |
313 beep_logo_pmap = | |
314 gdk_pixmap_create_from_xpm_d(about_window->window, | |
315 &beep_logo_mask, NULL, audacious_logo_xpm); | |
316 | |
317 about_credits_logo_box = gtk_hbox_new(TRUE, 0); | |
318 gtk_box_pack_start(GTK_BOX(about_vbox), about_credits_logo_box, | |
319 FALSE, FALSE, 0); | |
320 | |
321 about_credits_logo_frame = gtk_frame_new(NULL); | |
322 gtk_frame_set_shadow_type(GTK_FRAME(about_credits_logo_frame), | |
323 GTK_SHADOW_ETCHED_OUT); | |
324 gtk_box_pack_start(GTK_BOX(about_credits_logo_box), | |
325 about_credits_logo_frame, FALSE, FALSE, 0); | |
326 | |
327 about_credits_logo = gtk_pixmap_new(beep_logo_pmap, beep_logo_mask); | |
328 gtk_container_add(GTK_CONTAINER(about_credits_logo_frame), | |
329 about_credits_logo); | |
330 | |
331 label = gtk_label_new(NULL); | |
332 text = g_strdup_printf(_(bmp_brief), VERSION); | |
333 gtk_label_set_markup(GTK_LABEL(label), text); | |
334 gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_CENTER); | |
335 g_free(text); | |
336 | |
337 gtk_box_pack_start(GTK_BOX(about_vbox), label, FALSE, FALSE, 0); | |
338 | |
339 about_notebook = gtk_notebook_new(); | |
340 gtk_box_pack_start(GTK_BOX(about_vbox), about_notebook, TRUE, TRUE, 0); | |
341 | |
342 list = generate_credit_list(credit_text, TRUE); | |
343 gtk_notebook_append_page(GTK_NOTEBOOK(about_notebook), list, | |
344 gtk_label_new(_("Credits"))); | |
345 | |
346 list = generate_credit_list(translators, FALSE); | |
347 gtk_notebook_append_page(GTK_NOTEBOOK(about_notebook), list, | |
348 gtk_label_new(_("Translators"))); | |
349 | |
350 bbox = gtk_hbutton_box_new(); | |
351 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); | |
352 gtk_button_box_set_spacing(GTK_BUTTON_BOX(bbox), 5); | |
353 gtk_box_pack_start(GTK_BOX(about_vbox), bbox, FALSE, FALSE, 0); | |
354 | |
355 close_btn = gtk_button_new_from_stock(GTK_STOCK_CLOSE); | |
356 g_signal_connect_swapped(close_btn, "clicked", | |
357 G_CALLBACK(gtk_widget_destroy), about_window); | |
358 GTK_WIDGET_SET_FLAGS(close_btn, GTK_CAN_DEFAULT); | |
359 gtk_box_pack_start(GTK_BOX(bbox), close_btn, TRUE, TRUE, 0); | |
360 gtk_widget_grab_default(close_btn); | |
361 | |
362 gtk_widget_show_all(about_window); | |
363 } |