Mercurial > audlegacy
annotate src/audacious/ui_credits.c @ 4299:a16edefb8836
- 1st attempt to integrate MPlayer's equalizer (will work in 24bit mode too).
Please, check sound quality! Let me know, if you will find it not
appropriate.
- EQ pregain doesn't work yet.
author | Eugene Zagidullin <e.asphyx@gmail.com> |
---|---|
date | Sat, 23 Feb 2008 16:34:10 +0300 |
parents | 7ebcd1d559c6 |
children | ffc124a4725b |
rev | line source |
---|---|
2313 | 1 /* Audacious - Cross-platform multimedia player |
2 * Copyright (C) 2005-2007 Audacious Team | |
3 * | |
4 * Based on BMP: | |
5 * Copyright (C) 2003-2004 BMP development team | |
6 * | |
7 * Based on XMMS: | |
8 * Copyright (C) 1998-2003 XMMS development team | |
9 * | |
10 * This program is free software; you can redistribute it and/or modify | |
11 * it under the terms of the GNU General Public License as published by | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
3104
diff
changeset
|
12 * the Free Software Foundation; under version 3 of the License. |
2313 | 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 | |
3121
3b6d316f8b09
GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents:
3104
diff
changeset
|
20 * along with this program. If not, see <http://www.gnu.org/licenses>. |
3123
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
21 * |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
22 * The Audacious team does not consider modular code linking to |
f1c756f39e6c
Invoke "Plugins are not derived work" clause provided by GPL3.
William Pitcock <nenolod@atheme-project.org>
parents:
3121
diff
changeset
|
23 * Audacious or using our public API to be a derived work. |
2313 | 24 */ |
25 | |
26 #ifdef HAVE_CONFIG_H | |
27 # include "config.h" | |
28 #endif | |
29 | |
30 #include "ui_credits.h" | |
31 | |
32 #include <glib.h> | |
33 #include <glib/gi18n.h> | |
34 #include <gtk/gtk.h> | |
35 | |
36 #include "audacious_logo.xpm" | |
37 | |
38 | |
39 enum { | |
40 COL_LEFT, | |
41 COL_RIGHT, | |
42 N_COLS | |
43 }; | |
44 | |
45 | |
3457
16690eeb7db5
Added myself to credits in "plugin authors" section... and what BMP?
Matti Hamalainen <ccr@tnsp.org>
parents:
3426
diff
changeset
|
46 static const gchar *audacious_brief = |
2313 | 47 N_("<big><b>Audacious %s</b></big>\n" |
3697
cdc65ca04db4
We're multi-platform now and stuff.
William Pitcock <nenolod@atheme.org>
parents:
3589
diff
changeset
|
48 "A skinned multimedia player for many platforms.\n" |
2313 | 49 "\n" |
4143
c9fb06a5688e
It's 2008. Update copyright notices.
William Pitcock <nenolod@atheme.org>
parents:
4066
diff
changeset
|
50 "Copyright (C) 2005-2008 Audacious Development Team\n"); |
2313 | 51 |
52 static const gchar *credit_text[] = { | |
53 N_("Audacious core developers:"), | |
54 "George Averill", | |
2376
e1513290ee3c
[svn] Add a VFSFile method for getting metadata associated with the file.
iabervon
parents:
2330
diff
changeset
|
55 "Daniel Barkalow", |
3239
d2eec0a406e9
Update credits a little bit.
William Pitcock <nenolod@atheme-project.org>
parents:
3163
diff
changeset
|
56 "Christian Birchinger", |
2313 | 57 "Daniel Bradshaw", |
58 "Adam Cecile", | |
2330 | 59 "Michael Färber", |
2313 | 60 "Troels Bang Jensen", |
61 "Giacomo Lozito", | |
3398
f1eb9642a601
added myself to the credits
Cristi Magherusan <majeru@atheme-project.org>
parents:
3294
diff
changeset
|
62 "Cristi Măgherușan", |
3294
2c167f1fbbe9
oops, I haven't noticed that credits are sorted alphabetically by surname
Tomasz Mon <desowin@gmail.com>
parents:
3239
diff
changeset
|
63 "Tomasz Moń", |
2313 | 64 "William Pitcock", |
65 "Derek Pomery", | |
66 "Jonathan Schleifer", | |
4016 | 67 "Ben Tucker", |
2313 | 68 "Tony Vroon", |
69 "Yoshiki Yazawa", | |
70 NULL, | |
71 | |
72 N_("Graphics:"), | |
73 "George Averill", | |
74 "Stephan Sokolow", | |
75 NULL, | |
76 | |
77 N_("Default skin:"), | |
78 "George Averill", | |
3876 | 79 "Michael Färber", |
2313 | 80 "William Pitcock", |
81 NULL, | |
82 | |
83 N_("Plugin development:"), | |
84 "Kiyoshi Aman", | |
85 "Luca Barbato", | |
2376
e1513290ee3c
[svn] Add a VFSFile method for getting metadata associated with the file.
iabervon
parents:
2330
diff
changeset
|
86 "Daniel Barkalow", |
2972
3298ebb6f5db
Gave myself the well-earned credit :P
mf0102 <0102@gmx.at>
parents:
2921
diff
changeset
|
87 "Michael Färber", |
2313 | 88 "Shay Green", |
3458
2048a7c9572f
credits are alphabetical order
William Pitcock <nenolod@atheme.org>
parents:
3457
diff
changeset
|
89 "Matti Hämäläinen", |
4192
7ebcd1d559c6
Add myself to plugin authors for the hotkey plugin
Sascha Hlusiak <contact@saschahlusiak.de>
parents:
4191
diff
changeset
|
90 "Sascha Hlusiak", |
2313 | 91 "Giacomo Lozito", |
3398
f1eb9642a601
added myself to the credits
Cristi Magherusan <majeru@atheme-project.org>
parents:
3294
diff
changeset
|
92 "Cristi Măgherușan", |
4191
3d8b2bbcb555
add myself to plugin authors
Tomasz Mon <desowin@gmail.com>
parents:
4143
diff
changeset
|
93 "Tomasz Moń", |
2313 | 94 "William Pitcock", |
95 "Derek Pomery", | |
96 "Jonathan Schleifer", | |
97 "Tony Vroon", | |
2594 | 98 "Yoshiki Yazawa", |
2313 | 99 NULL, |
100 | |
101 N_("Patch authors:"), | |
3239
d2eec0a406e9
Update credits a little bit.
William Pitcock <nenolod@atheme-project.org>
parents:
3163
diff
changeset
|
102 "Massimo Cavalleri", |
2313 | 103 "Laszlo Dvornik", |
104 "Ralf Ertzinger", | |
105 "Mike Frysinger", | |
2493
b7f48f00a342
[svn] - patch from Mark Glines to ad https:// URI support to playlists.
nenolod
parents:
2470
diff
changeset
|
106 "Mark Glines", |
2594 | 107 "Teru KAMOGASHIRA", |
2313 | 108 "Chris Kehler", |
2591
f14a639354b3
[svn] - there was a missing delimeter in the patch credits
nenolod
parents:
2582
diff
changeset
|
109 "Alex Maclean", |
2313 | 110 "Michael Hanselmann", |
2434
1102fb4280d7
[svn] Add Joseph Jezak to the list of patch submitters.
chainsaw
parents:
2376
diff
changeset
|
111 "Joseph Jezak", |
2313 | 112 "Henrik Johansson", |
113 "Rodrigo Martins de Matos Ventura", | |
114 "Diego Pettenò", | |
115 "Kazuki Shimura", | |
116 "Valentine Sinitsyn", | |
117 "Johan Tavelin", | |
118 "Tim Yamin", | |
119 NULL, | |
120 | |
121 N_("0.1.x developers:"), | |
122 "William Pitcock", | |
123 "Mohammed Sameer", | |
124 "Tony Vroon", | |
125 NULL, | |
126 | |
127 N_("BMP Developers:"), | |
128 "Artem Baguinski", | |
129 "Edward Brocklesby", | |
130 "Chong Kai Xiong", | |
131 "Milosz Derezynski", | |
132 "David Lau", | |
133 "Ole Andre Vadla Ravnaas", | |
134 "Michiel Sikkes", | |
135 "Andrei Badea", | |
136 "Peter Behroozi", | |
137 "Bernard Blackham", | |
138 "Oliver Blin", | |
139 "Tomas Bzatek", | |
140 "Liviu Danicel", | |
141 "Jon Dowland", | |
142 "Artur Frysiak", | |
143 "Sebastian Kapfer", | |
144 "Lukas Koberstein", | |
145 "Dan Korostelev", | |
146 "Jolan Luff", | |
147 "Michael Marineau", | |
148 "Tim-Philipp Muller", | |
149 "Julien Portalier", | |
150 "Andrew Ruder", | |
151 "Olivier Samyn", | |
152 "Martijn Vernooij", | |
153 NULL, | |
154 | |
155 NULL | |
156 }; | |
157 | |
158 static const gchar *translators[] = { | |
159 N_("Brazilian Portuguese:"), | |
3426 | 160 "Fábio Antunes", |
2313 | 161 "Philipi Pinto", |
162 NULL, | |
163 N_("Breton:"), | |
164 "Thierry Vignaud", | |
165 NULL, | |
166 N_("Bulgarian:"), | |
167 "Andrew Ivanov", | |
168 NULL, | |
2511
0197fb284f79
[svn] - add Catalan translation file. Closes #786.
nenolod
parents:
2493
diff
changeset
|
169 N_("Catalan:"), |
0197fb284f79
[svn] - add Catalan translation file. Closes #786.
nenolod
parents:
2493
diff
changeset
|
170 "Ernest Adrogu", |
0197fb284f79
[svn] - add Catalan translation file. Closes #786.
nenolod
parents:
2493
diff
changeset
|
171 NULL, |
2435
5b23e9b07317
[svn] - new croatian translation from Marin Glibic
nenolod
parents:
2434
diff
changeset
|
172 N_("Croatian:"), |
5b23e9b07317
[svn] - new croatian translation from Marin Glibic
nenolod
parents:
2434
diff
changeset
|
173 "Marin Glibic", |
5b23e9b07317
[svn] - new croatian translation from Marin Glibic
nenolod
parents:
2434
diff
changeset
|
174 NULL, |
2313 | 175 N_("Czech:"), |
2582 | 176 "Petr Pisar", |
2313 | 177 NULL, |
178 N_("Dutch:"), | |
179 "Laurens Buhler", | |
180 "Tony Vroon", | |
181 NULL, | |
4032
74fb60e011ff
Estonian translation (bugzilla #2).
William Pitcock <nenolod@atheme.org>
parents:
4016
diff
changeset
|
182 N_("Estonian:"), |
74fb60e011ff
Estonian translation (bugzilla #2).
William Pitcock <nenolod@atheme.org>
parents:
4016
diff
changeset
|
183 "Ivar Smolin", |
74fb60e011ff
Estonian translation (bugzilla #2).
William Pitcock <nenolod@atheme.org>
parents:
4016
diff
changeset
|
184 NULL, |
2313 | 185 N_("Finnish:"), |
186 "Pauli Virtanen", | |
187 NULL, | |
188 N_("French:"), | |
189 "Adam Cecile", | |
3589
9197ea39a08a
Include new French translation and add translator to credits
mf0102 <0102@gmx.at>
parents:
3458
diff
changeset
|
190 "Stanislas Zeller", |
4066
83455611c927
Updated French translation.
Stany HENRY <StrassBoy@gmail.com>
parents:
4032
diff
changeset
|
191 "Stany Henry", |
2313 | 192 NULL, |
193 N_("German:"), | |
3163
d087e747efb7
- Took over the German translation and fixed tiny language inaccuracies
mf0102 <0102@gmx.at>
parents:
3123
diff
changeset
|
194 "Michael Färber", |
2313 | 195 "Michael Hanselmann", |
196 "Matthias Debus", | |
197 NULL, | |
198 N_("Georgian:"), | |
199 "George Machitidze", | |
200 NULL, | |
201 N_("Greek:"), | |
202 "Kouzinopoulos Haris", | |
203 "Stavros Giannouris", | |
204 "Stathis Kamperis", | |
205 NULL, | |
206 N_("Hindi:"), | |
207 "Dhananjaya Sharma", | |
208 NULL, | |
209 N_("Hungarian:"), | |
210 "Laszlo Dvornik", | |
211 NULL, | |
212 N_("Italian:"), | |
213 "Alessio D'Ascanio", | |
214 "Diego Pettenò", | |
215 NULL, | |
216 N_("Japanese:"), | |
217 "Dai", | |
218 NULL, | |
219 N_("Korean:"), | |
220 "DongCheon Park", | |
221 NULL, | |
222 N_("Lithuanian:"), | |
223 "Rimas Kudelis", | |
224 NULL, | |
225 N_("Macedonian:"), | |
226 "Arangel Angov", | |
227 NULL, | |
228 N_("Polish:"), | |
229 "Wojciech Myrda", | |
230 NULL, | |
231 N_("Romanian:"), | |
232 "Daniel Patriche", | |
3398
f1eb9642a601
added myself to the credits
Cristi Magherusan <majeru@atheme-project.org>
parents:
3294
diff
changeset
|
233 "Cristi Măgherușan", |
2313 | 234 NULL, |
235 N_("Russian:"), | |
236 "Alexandr Orlov", | |
237 NULL, | |
238 N_("Serbian (Latin):"), | |
239 "Strahinja Kustudić", | |
240 NULL, | |
241 N_("Serbian (Cyrillic):"), | |
242 "Strahinja Kustudić", | |
243 NULL, | |
244 N_("Simplified Chinese:"), | |
245 "Yang Zhang", | |
246 NULL, | |
247 N_("Slovak:"), | |
2617 | 248 "Andrej Herceg", |
2313 | 249 NULL, |
250 N_("Spanish:"), | |
251 "Gustavo D. Vranjes", | |
252 NULL, | |
253 N_("Swedish:"), | |
254 "Martin Persenius", | |
255 NULL, | |
256 N_("Traditional Chinese:"), | |
257 "Cheng-Wei Chien", | |
258 NULL, | |
2470 | 259 N_("Turkish:"), |
2815
b04dffba4449
[svn] Correct name of turkish translator Murat enel.
chainsaw
parents:
2617
diff
changeset
|
260 "Murat Şenel", |
2470 | 261 "Eren Turkay", |
262 NULL, | |
2313 | 263 N_("Ukrainian:"), |
264 "Mykola Lynnyk", | |
265 NULL, | |
266 N_("Welsh:"), | |
267 "Edward Brocklesby", | |
268 "William Pitcock", | |
269 NULL, | |
270 | |
271 NULL | |
272 }; | |
273 | |
274 | |
275 static GtkWidget * | |
276 generate_credit_list(const gchar * text[], gboolean sec_space) | |
277 { | |
278 GtkWidget *scrollwin; | |
279 GtkWidget *treeview; | |
280 GtkListStore *list_store; | |
281 GtkTreeIter iter; | |
282 GtkTreeViewColumn *column; | |
283 GtkCellRenderer *renderer; | |
284 const gchar *const *item; | |
285 | |
286 list_store = gtk_list_store_new(N_COLS, G_TYPE_STRING, G_TYPE_STRING); | |
287 | |
288 item = text; | |
289 | |
290 while (*item) { | |
291 gtk_list_store_append(list_store, &iter); | |
292 gtk_list_store_set(list_store, &iter, | |
293 COL_LEFT, _(item[0]), COL_RIGHT, _(item[1]), -1); | |
294 item += 2; | |
295 | |
296 while (*item) { | |
297 gtk_list_store_append(list_store, &iter); | |
298 gtk_list_store_set(list_store, &iter, | |
299 COL_LEFT, "", COL_RIGHT, _(*item++), -1); | |
300 } | |
301 | |
302 ++item; | |
303 | |
304 if (*item && sec_space) { | |
305 gtk_list_store_append(list_store, &iter); | |
306 gtk_list_store_set(list_store, &iter, | |
307 COL_LEFT, "", COL_RIGHT, "", -1); | |
308 } | |
309 } | |
310 | |
311 treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(list_store)); | |
312 gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(treeview), FALSE); | |
313 gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(treeview), FALSE); | |
314 gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)), | |
315 GTK_SELECTION_NONE); | |
316 | |
317 renderer = gtk_cell_renderer_text_new(); | |
318 g_object_set(renderer, "xalign", 1.0, NULL); | |
319 column = gtk_tree_view_column_new_with_attributes("Left", renderer, | |
320 "text", COL_LEFT, NULL); | |
321 gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | |
322 | |
323 renderer = gtk_cell_renderer_text_new(); | |
324 g_object_set(renderer, "xalign", 0.0, NULL); | |
325 column = gtk_tree_view_column_new_with_attributes("Right", renderer, | |
326 "text", COL_RIGHT, | |
327 NULL); | |
328 gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | |
329 | |
330 scrollwin = gtk_scrolled_window_new(NULL, NULL); | |
331 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), | |
332 GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); | |
333 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrollwin), GTK_SHADOW_IN); | |
334 gtk_container_add(GTK_CONTAINER(scrollwin), treeview); | |
335 gtk_container_set_border_width(GTK_CONTAINER(scrollwin), 10); | |
336 | |
337 gtk_widget_show_all(scrollwin); | |
338 | |
339 return scrollwin; | |
340 } | |
341 | |
342 void | |
343 show_credits_window(void) | |
344 { | |
345 static GtkWidget *about_window = NULL; | |
346 | |
3078
407395e030c7
Use GdkPixbuf to display the credits logo.
William Pitcock <nenolod@atheme-project.org>
parents:
2972
diff
changeset
|
347 GdkPixbuf *logo_pixbuf; |
2313 | 348 GtkWidget *about_vbox; |
349 GtkWidget *about_credits_logo_box, *about_credits_logo_frame; | |
350 GtkWidget *about_credits_logo; | |
351 GtkWidget *about_notebook; | |
352 GtkWidget *list; | |
353 GtkWidget *bbox, *close_btn; | |
354 GtkWidget *label; | |
355 gchar *text; | |
356 | |
357 if (about_window) | |
358 return; | |
359 | |
360 about_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | |
361 gtk_window_set_type_hint(GTK_WINDOW(about_window), | |
362 GDK_WINDOW_TYPE_HINT_DIALOG); | |
363 | |
364 gtk_window_set_default_size(GTK_WINDOW(about_window), -1, 512); | |
365 gtk_window_set_title(GTK_WINDOW(about_window), _("About Audacious")); | |
366 gtk_window_set_position(GTK_WINDOW(about_window), GTK_WIN_POS_CENTER); | |
367 gtk_window_set_resizable(GTK_WINDOW(about_window), TRUE); | |
368 gtk_container_set_border_width(GTK_CONTAINER(about_window), 10); | |
369 | |
370 g_signal_connect(about_window, "destroy", | |
371 G_CALLBACK(gtk_widget_destroyed), &about_window); | |
372 | |
373 gtk_widget_realize(about_window); | |
374 | |
375 about_vbox = gtk_vbox_new(FALSE, 5); | |
376 gtk_container_add(GTK_CONTAINER(about_window), about_vbox); | |
377 | |
3104 | 378 logo_pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)audacious_logo_xpm); |
2313 | 379 |
380 about_credits_logo_box = gtk_hbox_new(TRUE, 0); | |
381 gtk_box_pack_start(GTK_BOX(about_vbox), about_credits_logo_box, | |
382 FALSE, FALSE, 0); | |
383 | |
384 about_credits_logo_frame = gtk_frame_new(NULL); | |
385 gtk_frame_set_shadow_type(GTK_FRAME(about_credits_logo_frame), | |
386 GTK_SHADOW_ETCHED_OUT); | |
387 gtk_box_pack_start(GTK_BOX(about_credits_logo_box), | |
388 about_credits_logo_frame, FALSE, FALSE, 0); | |
389 | |
3078
407395e030c7
Use GdkPixbuf to display the credits logo.
William Pitcock <nenolod@atheme-project.org>
parents:
2972
diff
changeset
|
390 about_credits_logo = gtk_image_new_from_pixbuf(logo_pixbuf); |
2313 | 391 gtk_container_add(GTK_CONTAINER(about_credits_logo_frame), |
392 about_credits_logo); | |
3078
407395e030c7
Use GdkPixbuf to display the credits logo.
William Pitcock <nenolod@atheme-project.org>
parents:
2972
diff
changeset
|
393 g_object_unref(logo_pixbuf); |
2313 | 394 |
395 label = gtk_label_new(NULL); | |
3457
16690eeb7db5
Added myself to credits in "plugin authors" section... and what BMP?
Matti Hamalainen <ccr@tnsp.org>
parents:
3426
diff
changeset
|
396 text = g_strdup_printf(_(audacious_brief), VERSION); |
2313 | 397 gtk_label_set_markup(GTK_LABEL(label), text); |
398 gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_CENTER); | |
399 g_free(text); | |
400 | |
401 gtk_box_pack_start(GTK_BOX(about_vbox), label, FALSE, FALSE, 0); | |
402 | |
403 about_notebook = gtk_notebook_new(); | |
404 gtk_box_pack_start(GTK_BOX(about_vbox), about_notebook, TRUE, TRUE, 0); | |
405 | |
406 list = generate_credit_list(credit_text, TRUE); | |
407 gtk_notebook_append_page(GTK_NOTEBOOK(about_notebook), list, | |
408 gtk_label_new(_("Credits"))); | |
409 | |
410 list = generate_credit_list(translators, FALSE); | |
411 gtk_notebook_append_page(GTK_NOTEBOOK(about_notebook), list, | |
412 gtk_label_new(_("Translators"))); | |
413 | |
414 bbox = gtk_hbutton_box_new(); | |
415 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); | |
416 gtk_button_box_set_spacing(GTK_BUTTON_BOX(bbox), 5); | |
417 gtk_box_pack_start(GTK_BOX(about_vbox), bbox, FALSE, FALSE, 0); | |
418 | |
419 close_btn = gtk_button_new_from_stock(GTK_STOCK_CLOSE); | |
420 g_signal_connect_swapped(close_btn, "clicked", | |
421 G_CALLBACK(gtk_widget_destroy), about_window); | |
422 GTK_WIDGET_SET_FLAGS(close_btn, GTK_CAN_DEFAULT); | |
423 gtk_box_pack_start(GTK_BOX(bbox), close_btn, TRUE, TRUE, 0); | |
424 gtk_widget_grab_default(close_btn); | |
425 | |
426 gtk_widget_show_all(about_window); | |
427 } |