Mercurial > audlegacy
annotate audacious/credits.c @ 1683:e9c24e35bd76 trunk
[svn] - File stream API for audacious vfs; uses real getc/ungetc functions for vfs_stdio and emulated functions for vfs_gnome
author | giacomo |
---|---|
date | Wed, 13 Sep 2006 15:59:49 -0700 |
parents | 4c72daee66e3 |
children | 8d7f4260022d |
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", |
d63b74dd62a3
[svn] Updated italian translation and removal of translation tags for developer names by Diego "FlameEyes" Petteno from Gentoo.
chainsaw
parents:
1108
diff
changeset
|
56 "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
|
57 "Yoshiki Yazawa", |
501
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
58 NULL, |
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
59 |
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
60 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
|
61 "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
|
62 "Stephan Sokolow", |
503
1cc9edf68ce9
[svn] Remove crap that is unneeded from about.c, update credits information.
nenolod
parents:
501
diff
changeset
|
63 NULL, |
1cc9edf68ce9
[svn] Remove crap that is unneeded from about.c, update credits information.
nenolod
parents:
501
diff
changeset
|
64 |
1cc9edf68ce9
[svn] Remove crap that is unneeded from about.c, update credits information.
nenolod
parents:
501
diff
changeset
|
65 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
|
66 "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
|
67 "William Pitcock", |
501
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
68 NULL, |
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
69 |
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
70 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
|
71 "Kiyoshi Aman", |
1660 | 72 "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
|
73 "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
|
74 "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
|
75 "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
|
76 "Derek Pomery", |
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 "Tony Vroon", |
0 | 78 NULL, |
79 | |
360
222a0d71cbcf
[svn] - change our slogan to "The future of UNIX multimedia."
nenolod
parents:
232
diff
changeset
|
80 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
|
81 "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
|
82 "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
|
83 "Tony Vroon", |
0 | 84 NULL, |
85 | |
86 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
|
87 "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
|
88 "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
|
89 "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
|
90 "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
|
91 "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
|
92 "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
|
93 "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
|
94 "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
|
95 "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
|
96 "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
|
97 "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
|
98 "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
|
99 "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
|
100 "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
|
101 "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
|
102 "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
|
103 "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
|
104 "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
|
105 "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
|
106 "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
|
107 "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
|
108 "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
|
109 "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
|
110 "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
|
111 "Martijn Vernooij", |
0 | 112 NULL, |
113 | |
114 NULL | |
115 }; | |
116 | |
117 static const gchar *translators[] = { | |
118 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
|
119 "Philipi Pinto", |
0 | 120 NULL, |
121 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
|
122 "Thierry Vignaud", |
0 | 123 NULL, |
124 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
|
125 "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
|
126 "Chao-Hsiung Liao", |
0 | 127 NULL, |
128 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
|
129 "Jan Narovec", |
0 | 130 NULL, |
131 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
|
132 "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
|
133 "Tony Vroon", |
0 | 134 NULL, |
135 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
|
136 "Pauli Virtanen", |
0 | 137 NULL, |
138 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
|
139 "David Le Brun", |
0 | 140 NULL, |
141 N_("German:"), | |
1334
fe42b588cb53
[svn] Update translation credits for German (hansmi) & Polish (vojcek).
chainsaw
parents:
1132
diff
changeset
|
142 "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
|
143 "Matthias Debus", |
0 | 144 NULL, |
145 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
|
146 "George Machitidze", |
0 | 147 NULL, |
148 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
|
149 "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
|
150 "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
|
151 "Stathis Kamperis", |
0 | 152 NULL, |
153 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
|
154 "Dhananjaya Sharma", |
0 | 155 NULL, |
156 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
|
157 "Laszlo Dvornik", |
0 | 158 NULL, |
159 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
|
160 "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
|
161 "Diego Pettenò", |
0 | 162 NULL, |
163 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
|
164 "Dai", |
0 | 165 NULL, |
166 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
|
167 "DongCheon Park", |
0 | 168 NULL, |
169 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
|
170 "Rimas Kudelis", |
0 | 171 NULL, |
172 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
|
173 "Arangel Angov", |
0 | 174 NULL, |
175 N_("Polish:"), | |
1334
fe42b588cb53
[svn] Update translation credits for German (hansmi) & Polish (vojcek).
chainsaw
parents:
1132
diff
changeset
|
176 "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
|
177 "Jacek Wolszczak", |
0 | 178 NULL, |
179 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
|
180 "Liviu Danicel", |
0 | 181 NULL, |
182 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
|
183 "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
|
184 "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
|
185 "Vitaly Lipatov", |
0 | 186 NULL, |
187 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
|
188 "Pavel Kanzelsberger", |
0 | 189 NULL, |
190 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
|
191 "Gustavo D. Vranjes", |
0 | 192 NULL, |
193 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
|
194 "Martin Persenius", |
0 | 195 NULL, |
196 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
|
197 "Mykola Lynnyk", |
0 | 198 NULL, |
199 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
|
200 "Edward Brocklesby", |
0 | 201 NULL, |
202 | |
203 NULL | |
204 }; | |
205 | |
206 | |
207 static GtkWidget * | |
208 generate_credit_list(const gchar * text[], gboolean sec_space) | |
209 { | |
210 GtkWidget *scrollwin; | |
211 GtkWidget *treeview; | |
212 GtkListStore *list_store; | |
213 GtkTreeIter iter; | |
214 GtkTreeViewColumn *column; | |
215 GtkCellRenderer *renderer; | |
216 const gchar *const *item; | |
217 | |
218 list_store = gtk_list_store_new(N_COLS, G_TYPE_STRING, G_TYPE_STRING); | |
219 | |
220 item = text; | |
221 | |
222 while (*item) { | |
223 gtk_list_store_append(list_store, &iter); | |
224 gtk_list_store_set(list_store, &iter, | |
225 COL_LEFT, _(item[0]), COL_RIGHT, _(item[1]), -1); | |
226 item += 2; | |
227 | |
228 while (*item) { | |
229 gtk_list_store_append(list_store, &iter); | |
230 gtk_list_store_set(list_store, &iter, | |
231 COL_LEFT, "", COL_RIGHT, _(*item++), -1); | |
232 } | |
233 | |
234 ++item; | |
235 | |
236 if (*item && sec_space) { | |
237 gtk_list_store_append(list_store, &iter); | |
238 gtk_list_store_set(list_store, &iter, | |
239 COL_LEFT, "", COL_RIGHT, "", -1); | |
240 } | |
241 } | |
242 | |
243 treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(list_store)); | |
244 gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(treeview), FALSE); | |
245 gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(treeview), FALSE); | |
246 gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)), | |
247 GTK_SELECTION_NONE); | |
248 | |
249 renderer = gtk_cell_renderer_text_new(); | |
250 g_object_set(renderer, "xalign", 1.0, NULL); | |
251 column = gtk_tree_view_column_new_with_attributes("Left", renderer, | |
252 "text", COL_LEFT, NULL); | |
253 gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | |
254 | |
255 renderer = gtk_cell_renderer_text_new(); | |
256 g_object_set(renderer, "xalign", 0.0, NULL); | |
257 column = gtk_tree_view_column_new_with_attributes("Right", renderer, | |
258 "text", COL_RIGHT, | |
259 NULL); | |
260 gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | |
261 | |
262 scrollwin = gtk_scrolled_window_new(NULL, NULL); | |
263 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), | |
264 GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); | |
265 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrollwin), GTK_SHADOW_IN); | |
266 gtk_container_add(GTK_CONTAINER(scrollwin), treeview); | |
267 gtk_container_set_border_width(GTK_CONTAINER(scrollwin), 10); | |
268 | |
269 gtk_widget_show_all(scrollwin); | |
270 | |
271 return scrollwin; | |
272 } | |
273 | |
274 void | |
500 | 275 show_credits_window(void) |
0 | 276 { |
277 static GtkWidget *about_window = NULL; | |
278 | |
279 GdkPixmap *beep_logo_pmap = NULL, *beep_logo_mask = NULL; | |
280 GtkWidget *about_vbox; | |
281 GtkWidget *about_credits_logo_box, *about_credits_logo_frame; | |
282 GtkWidget *about_credits_logo; | |
283 GtkWidget *about_notebook; | |
284 GtkWidget *list; | |
285 GtkWidget *bbox, *close_btn; | |
286 GtkWidget *label; | |
287 gchar *text; | |
288 | |
289 if (about_window) | |
290 return; | |
291 | |
292 about_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | |
293 gtk_window_set_type_hint(GTK_WINDOW(about_window), | |
294 GDK_WINDOW_TYPE_HINT_DIALOG); | |
295 | |
501
3a940b8dac46
[svn] Add credits.c to makefile, and fill in as much information as I have.
nenolod
parents:
500
diff
changeset
|
296 gtk_window_set_default_size(GTK_WINDOW(about_window), -1, 512); |
0 | 297 gtk_window_set_title(GTK_WINDOW(about_window), _("About Audacious")); |
298 gtk_window_set_position(GTK_WINDOW(about_window), GTK_WIN_POS_CENTER); | |
299 gtk_window_set_resizable(GTK_WINDOW(about_window), TRUE); | |
300 gtk_container_set_border_width(GTK_CONTAINER(about_window), 10); | |
301 | |
302 g_signal_connect(about_window, "destroy", | |
303 G_CALLBACK(gtk_widget_destroyed), &about_window); | |
304 | |
305 gtk_widget_realize(about_window); | |
306 | |
307 about_vbox = gtk_vbox_new(FALSE, 5); | |
308 gtk_container_add(GTK_CONTAINER(about_window), about_vbox); | |
309 | |
310 if (!beep_logo_pmap) | |
311 beep_logo_pmap = | |
312 gdk_pixmap_create_from_xpm_d(about_window->window, | |
313 &beep_logo_mask, NULL, audacious_logo_xpm); | |
314 | |
315 about_credits_logo_box = gtk_hbox_new(TRUE, 0); | |
316 gtk_box_pack_start(GTK_BOX(about_vbox), about_credits_logo_box, | |
317 FALSE, FALSE, 0); | |
318 | |
319 about_credits_logo_frame = gtk_frame_new(NULL); | |
320 gtk_frame_set_shadow_type(GTK_FRAME(about_credits_logo_frame), | |
321 GTK_SHADOW_ETCHED_OUT); | |
322 gtk_box_pack_start(GTK_BOX(about_credits_logo_box), | |
323 about_credits_logo_frame, FALSE, FALSE, 0); | |
324 | |
325 about_credits_logo = gtk_pixmap_new(beep_logo_pmap, beep_logo_mask); | |
326 gtk_container_add(GTK_CONTAINER(about_credits_logo_frame), | |
327 about_credits_logo); | |
328 | |
329 label = gtk_label_new(NULL); | |
330 text = g_strdup_printf(_(bmp_brief), VERSION); | |
331 gtk_label_set_markup(GTK_LABEL(label), text); | |
332 gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_CENTER); | |
333 g_free(text); | |
334 | |
335 gtk_box_pack_start(GTK_BOX(about_vbox), label, FALSE, FALSE, 0); | |
336 | |
337 about_notebook = gtk_notebook_new(); | |
338 gtk_box_pack_start(GTK_BOX(about_vbox), about_notebook, TRUE, TRUE, 0); | |
339 | |
340 list = generate_credit_list(credit_text, TRUE); | |
341 gtk_notebook_append_page(GTK_NOTEBOOK(about_notebook), list, | |
342 gtk_label_new(_("Credits"))); | |
343 | |
344 list = generate_credit_list(translators, FALSE); | |
345 gtk_notebook_append_page(GTK_NOTEBOOK(about_notebook), list, | |
346 gtk_label_new(_("Translators"))); | |
347 | |
348 bbox = gtk_hbutton_box_new(); | |
349 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); | |
350 gtk_button_box_set_spacing(GTK_BUTTON_BOX(bbox), 5); | |
351 gtk_box_pack_start(GTK_BOX(about_vbox), bbox, FALSE, FALSE, 0); | |
352 | |
353 close_btn = gtk_button_new_from_stock(GTK_STOCK_CLOSE); | |
354 g_signal_connect_swapped(close_btn, "clicked", | |
355 G_CALLBACK(gtk_widget_destroy), about_window); | |
356 GTK_WIDGET_SET_FLAGS(close_btn, GTK_CAN_DEFAULT); | |
357 gtk_box_pack_start(GTK_BOX(bbox), close_btn, TRUE, TRUE, 0); | |
358 gtk_widget_grab_default(close_btn); | |
359 | |
360 gtk_widget_show_all(about_window); | |
361 } |