Mercurial > audlegacy
comparison audacious/about.c @ 503:1cc9edf68ce9 trunk
[svn] Remove crap that is unneeded from about.c, update credits information.
author | nenolod |
---|---|
date | Wed, 25 Jan 2006 18:40:41 -0800 |
parents | 3399d6a41f16 |
children | 9f135663aaee |
comparison
equal
deleted
inserted
replaced
502:3399d6a41f16 | 503:1cc9edf68ce9 |
---|---|
29 #include <gdk/gdk.h> | 29 #include <gdk/gdk.h> |
30 #include <gdk/gdkx.h> | 30 #include <gdk/gdkx.h> |
31 #include <gdk/gdkkeysyms.h> | 31 #include <gdk/gdkkeysyms.h> |
32 #include <gtk/gtk.h> | 32 #include <gtk/gtk.h> |
33 | 33 |
34 #include "audacious_logo.xpm" | |
35 | |
36 static GtkWidget *about_window = NULL; | 34 static GtkWidget *about_window = NULL; |
37 static GdkPixbuf *about_pixbuf = NULL; | 35 static GdkPixbuf *about_pixbuf = NULL; |
38 static GdkPixmap *mask_pixmap_window1 = NULL, | 36 static GdkPixmap *mask_pixmap_window1 = NULL, |
39 *mask_pixmap_window2 = NULL; | 37 *mask_pixmap_window2 = NULL; |
40 static GdkBitmap *mask_bitmap_window1 = NULL, | 38 static GdkBitmap *mask_bitmap_window1 = NULL, |
41 *mask_bitmap_window2 = NULL; | 39 *mask_bitmap_window2 = NULL; |
42 | 40 |
43 | |
44 enum { | |
45 COL_LEFT, | |
46 COL_RIGHT, | |
47 N_COLS | |
48 }; | |
49 | |
50 static const gchar *bmp_brief = | |
51 N_("<big><b>Audacious %s</b></big>\n" | |
52 "The future of UNIX multimedia.\n" | |
53 "\n" | |
54 "Copyright (C) 2005-2006 Audacious Development Team\n"); | |
55 | |
56 static const gchar *credit_text[] = { | |
57 N_("Developers:"), | |
58 N_("Giacomo Lozito"), | |
59 N_("William Pitcock"), | |
60 N_("Tony Vroon"), | |
61 NULL, | |
62 | |
63 N_("0.1.x developers:"), | |
64 N_("William Pitcock"), | |
65 N_("Mohammed Sameer"), | |
66 N_("Tony Vroon"), | |
67 NULL, | |
68 | |
69 N_("BMP Developers:"), | |
70 N_("Artem Baguinski"), | |
71 N_("Edward Brocklesby"), | |
72 N_("Chong Kai Xiong"), | |
73 N_("Milosz Derezynski"), | |
74 N_("David Lau"), | |
75 N_("Ole Andre Vadla Ravnaas"), | |
76 N_("Michiel Sikkes"), | |
77 N_("Andrei Badea"), | |
78 N_("Peter Behroozi"), | |
79 N_("Bernard Blackham"), | |
80 N_("Oliver Blin"), | |
81 N_("Tomas Bzatek"), | |
82 N_("Liviu Danicel"), | |
83 N_("Jon Dowland"), | |
84 N_("Artur Frysiak"), | |
85 N_("Sebastian Kapfer"), | |
86 N_("Lukas Koberstein"), | |
87 N_("Dan Korostelev"), | |
88 N_("Jolan Luff"), | |
89 N_("Michael Marineau"), | |
90 N_("Tim-Philipp Muller"), | |
91 N_("Julien Portalier"), | |
92 N_("Andrew Ruder"), | |
93 N_("Olivier Samyn"), | |
94 N_("Martijn Vernooij"), | |
95 NULL, | |
96 | |
97 NULL | |
98 }; | |
99 | |
100 static const gchar *translators[] = { | |
101 N_("Brazilian Portuguese:"), | |
102 N_("Philipi Pinto"), | |
103 NULL, | |
104 N_("Breton:"), | |
105 N_("Thierry Vignaud"), | |
106 NULL, | |
107 N_("Chinese:"), | |
108 N_("Chong Kai Xiong"), | |
109 N_("Chao-Hsiung Liao"), | |
110 NULL, | |
111 N_("Czech:"), | |
112 N_("Jan Narovec"), | |
113 NULL, | |
114 N_("Dutch:"), | |
115 N_("Laurens Buhler"), | |
116 NULL, | |
117 N_("Finnish:"), | |
118 N_("Pauli Virtanen"), | |
119 NULL, | |
120 N_("French:"), | |
121 N_("David Le Brun"), | |
122 NULL, | |
123 N_("German:"), | |
124 N_("Matthias Debus"), | |
125 NULL, | |
126 N_("Georgian: "), | |
127 N_("George Machitidze"), | |
128 NULL, | |
129 N_("Greek:"), | |
130 N_("Kouzinopoulos Haris"), | |
131 N_("Stavros Giannouris"), | |
132 NULL, | |
133 N_("Hindi:"), | |
134 N_("Dhananjaya Sharma"), | |
135 NULL, | |
136 N_("Hungarian:"), | |
137 N_("Laszlo Dvornik"), | |
138 NULL, | |
139 N_("Italian:"), | |
140 N_("Alessio D'Ascanio"), | |
141 NULL, | |
142 N_("Japanese:"), | |
143 N_("Dai"), | |
144 NULL, | |
145 N_("Korean:"), | |
146 N_("DongCheon Park"), | |
147 NULL, | |
148 N_("Lithuanian:"), | |
149 N_("Rimas Kudelis"), | |
150 NULL, | |
151 N_("Macedonian:"), | |
152 N_("Arangel Angov"), | |
153 NULL, | |
154 N_("Polish:"), | |
155 N_("Jacek Wolszczak"), | |
156 NULL, | |
157 N_("Romanian:"), | |
158 N_("Liviu Danicel"), | |
159 NULL, | |
160 N_("Russian:"), | |
161 N_("Pavlo Bohmat"), | |
162 N_("Dan Korostelev"), | |
163 N_("Vitaly Lipatov"), | |
164 NULL, | |
165 N_("Slovak:"), | |
166 N_("Pavel Kanzelsberger"), | |
167 NULL, | |
168 N_("Spanish:"), | |
169 N_("Francisco Javier F. Serrador"), | |
170 NULL, | |
171 N_("Swedish:"), | |
172 N_("Martin Persenius"), | |
173 NULL, | |
174 N_("Ukrainian:"), | |
175 N_("Mykola Lynnyk"), | |
176 NULL, | |
177 N_("Welsh:"), | |
178 N_("Edward Brocklesby"), | |
179 NULL, | |
180 | |
181 NULL | |
182 }; | |
183 | |
184 static gboolean | 41 static gboolean |
185 on_about_window_expose(GtkWidget *widget, GdkEventExpose *expose, gpointer data) | 42 on_about_window_expose(GtkWidget *widget, GdkEventExpose *expose, gpointer data) |
186 { | 43 { |
187 g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE); | 44 g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE); |
188 | 45 |
201 { | 58 { |
202 gtk_widget_hide (widget); | 59 gtk_widget_hide (widget); |
203 } | 60 } |
204 | 61 |
205 return FALSE; | 62 return FALSE; |
206 } | |
207 | |
208 static GtkWidget * | |
209 generate_credit_list(const gchar * text[], gboolean sec_space) | |
210 { | |
211 GtkWidget *scrollwin; | |
212 GtkWidget *treeview; | |
213 GtkListStore *list_store; | |
214 GtkTreeIter iter; | |
215 GtkTreeViewColumn *column; | |
216 GtkCellRenderer *renderer; | |
217 const gchar *const *item; | |
218 | |
219 list_store = gtk_list_store_new(N_COLS, G_TYPE_STRING, G_TYPE_STRING); | |
220 | |
221 item = text; | |
222 | |
223 while (*item) { | |
224 gtk_list_store_append(list_store, &iter); | |
225 gtk_list_store_set(list_store, &iter, | |
226 COL_LEFT, _(item[0]), COL_RIGHT, _(item[1]), -1); | |
227 item += 2; | |
228 | |
229 while (*item) { | |
230 gtk_list_store_append(list_store, &iter); | |
231 gtk_list_store_set(list_store, &iter, | |
232 COL_LEFT, "", COL_RIGHT, _(*item++), -1); | |
233 } | |
234 | |
235 ++item; | |
236 | |
237 if (*item && sec_space) { | |
238 gtk_list_store_append(list_store, &iter); | |
239 gtk_list_store_set(list_store, &iter, | |
240 COL_LEFT, "", COL_RIGHT, "", -1); | |
241 } | |
242 } | |
243 | |
244 treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(list_store)); | |
245 gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW(treeview), FALSE); | |
246 gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(treeview), FALSE); | |
247 gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)), | |
248 GTK_SELECTION_NONE); | |
249 | |
250 renderer = gtk_cell_renderer_text_new(); | |
251 g_object_set(renderer, "xalign", 1.0, NULL); | |
252 column = gtk_tree_view_column_new_with_attributes("Left", renderer, | |
253 "text", COL_LEFT, NULL); | |
254 gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | |
255 | |
256 renderer = gtk_cell_renderer_text_new(); | |
257 g_object_set(renderer, "xalign", 0.0, NULL); | |
258 column = gtk_tree_view_column_new_with_attributes("Right", renderer, | |
259 "text", COL_RIGHT, | |
260 NULL); | |
261 gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column); | |
262 | |
263 scrollwin = gtk_scrolled_window_new(NULL, NULL); | |
264 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), | |
265 GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); | |
266 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrollwin), GTK_SHADOW_IN); | |
267 gtk_container_add(GTK_CONTAINER(scrollwin), treeview); | |
268 gtk_container_set_border_width(GTK_CONTAINER(scrollwin), 10); | |
269 | |
270 gtk_widget_show_all(scrollwin); | |
271 | |
272 return scrollwin; | |
273 } | 63 } |
274 | 64 |
275 void | 65 void |
276 show_about_window(void) | 66 show_about_window(void) |
277 { | 67 { |