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