Mercurial > mplayer.hg
annotate gui/dialog/about.c @ 35557:11c649dc2907
Limit internal automatic audio CD track advancing.
author | ib |
---|---|
date | Mon, 10 Dec 2012 12:43:07 +0000 |
parents | 8ad4d2fb46e8 |
children | 3734172b4af6 |
rev | line source |
---|---|
26458 | 1 /* |
2 * This file is part of MPlayer. | |
3 * | |
4 * MPlayer is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; either version 2 of the License, or | |
7 * (at your option) any later version. | |
8 * | |
9 * MPlayer is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License along | |
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 */ | |
18 | |
26203 | 19 #include "config.h" |
35525 | 20 #include "gui/app/app.h" |
23077 | 21 #include "help_mp.h" |
33963 | 22 #include "version.h" |
23077 | 23 |
35526 | 24 #include "pixmaps/emblem.xpm" |
35529 | 25 #include "dialog.h" |
23077 | 26 #include "about.h" |
33572 | 27 #include "tools.h" |
23077 | 28 |
29 GtkWidget * About = NULL; | |
30 | |
31 void ShowAboutBox( void ) | |
32 { | |
33 if ( About ) gtkActive( About ); | |
34 else About=create_About(); | |
35 gtk_widget_show( About ); | |
36 } | |
37 | |
34466
a650895d50a5
Use correct data types and common variable names in GTK callback functions.
ib
parents:
33963
diff
changeset
|
38 static void abWidgetDestroy( GtkButton * button, gpointer user_data ) |
23077 | 39 { WidgetDestroy( NULL,&About ); } |
40 | |
41 GtkWidget * create_About( void ) | |
42 { | |
43 GtkWidget * vbox; | |
44 GtkWidget * pixmap1; | |
45 GtkWidget * scrolledwindow1; | |
46 GtkWidget * AboutText; | |
47 GtkWidget * Ok; | |
48 | |
27343 | 49 #ifdef CONFIG_GTK2 |
23077 | 50 GtkTextBuffer * AboutTextBuffer; |
51 GtkTextIter iter; | |
27343 | 52 #endif /* CONFIG_GTK2 */ |
23077 | 53 |
54 GtkStyle * pixmapstyle; | |
55 GdkPixmap * pixmapwid; | |
56 GdkBitmap * mask; | |
57 | |
58 GtkAccelGroup * accel_group; | |
59 | |
33963 | 60 char title[128]; |
61 | |
23077 | 62 accel_group=gtk_accel_group_new(); |
63 | |
64 About=gtk_window_new( GTK_WINDOW_TOPLEVEL ); | |
65 gtk_widget_set_name( About,MSGTR_About ); | |
66 gtk_object_set_data( GTK_OBJECT( About ),MSGTR_About,About ); | |
67 gtk_widget_set_usize( About,340,415 ); | |
68 gtk_window_set_title( GTK_WINDOW( About ),MSGTR_About ); | |
69 gtk_window_set_position( GTK_WINDOW( About ),GTK_WIN_POS_CENTER ); | |
70 gtk_window_set_policy( GTK_WINDOW( About ),TRUE,FALSE,FALSE ); | |
71 gtk_window_set_wmclass( GTK_WINDOW( About ),"About","MPlayer" ); | |
72 | |
73 gtk_widget_realize( About ); | |
74 gtkAddIcon( About ); | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
75 |
23077 | 76 vbox=AddVBox( AddDialogFrame( About ),0 ); |
77 | |
78 pixmapstyle=gtk_widget_get_style( About ); | |
33570 | 79 pixmapwid=gdk_pixmap_colormap_create_from_xpm_d( About->window,gdk_colormap_get_system(),&mask,&pixmapstyle->bg[GTK_STATE_NORMAL],(gchar **) emblem_xpm ); |
23077 | 80 pixmap1=gtk_pixmap_new( pixmapwid,mask ); |
81 | |
82 gtk_widget_set_name( pixmap1,"pixmap1" ); | |
83 gtk_widget_show( pixmap1 ); | |
84 gtk_box_pack_start( GTK_BOX( vbox ),pixmap1,FALSE,FALSE,0 ); | |
85 gtk_widget_set_usize( pixmap1,-2,174 ); | |
86 | |
87 AddHSeparator( vbox ); | |
88 | |
89 scrolledwindow1=gtk_scrolled_window_new( NULL,NULL ); | |
90 gtk_widget_set_name( scrolledwindow1,"scrolledwindow1" ); | |
91 gtk_widget_show( scrolledwindow1 ); | |
92 gtk_box_pack_start( GTK_BOX( vbox ),scrolledwindow1,TRUE,TRUE,0 ); | |
93 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC ); | |
94 | |
27343 | 95 #ifdef CONFIG_GTK2 |
23077 | 96 AboutText = gtk_text_view_new(); |
97 gtk_text_view_set_editable(GTK_TEXT_VIEW(AboutText), FALSE); | |
98 gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(AboutText), FALSE); | |
99 AboutTextBuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (AboutText)); | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
100 gtk_text_buffer_get_iter_at_offset (AboutTextBuffer, &iter, 0); |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
101 #else |
23077 | 102 AboutText=gtk_text_new( NULL,NULL ); |
103 gtk_text_set_editable(GTK_TEXT(AboutText), FALSE); | |
104 #endif | |
105 gtk_widget_set_name( AboutText,"AboutText" ); | |
106 gtk_widget_show( AboutText ); | |
107 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText ); | |
33963 | 108 snprintf(title, sizeof(title), MP_TITLE, "MPlayer"); |
27343 | 109 #ifdef CONFIG_GTK2 |
33963 | 110 gtk_text_buffer_insert (AboutTextBuffer, &iter, title, -1); |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
111 gtk_text_buffer_insert (AboutTextBuffer, &iter, |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
112 #else |
33963 | 113 gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL, title, -1 ); |
23077 | 114 gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL, |
115 #endif | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
116 "\n" |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
117 MSGTR_ABOUT_UHU |
33963 | 118 " (http://www.uhulinux.hu/)\n" |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
119 "\n" |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
120 MSGTR_ABOUT_Contributors |
23077 | 121 "\n" |
33963 | 122 " * Andreas Ackermann\n" |
23077 | 123 " * adland\n" |
33963 | 124 " * Eric Anholt\n" |
125 " * Folke Ashberg\n" | |
126 " * Dénes Balatoni\n" | |
127 " * Zsolt Barat\n" | |
128 " * Luca Barbato\n" | |
129 " * Dmitry Baryshkov\n" | |
130 " * Bertrand Baudet\n" | |
131 " * Alban Bedel\n" | |
132 " * Michael Behrisch\n" | |
133 " * Luchezar Belev\n" | |
134 " * Gábor Bérczi\n" | |
135 " * Szabolcs Berecz\n" | |
136 " * Alex Beregszászi\n" | |
137 " * Tilmann Bitterberg\n" | |
138 " * Diego Biurrun\n" | |
139 " * Marcsu Blomenkamp\n" | |
140 " * Ingo Brückl\n" | |
141 " * Andrew Buehler\n" | |
142 " * Eviv Bulgroz\n" | |
143 " * Felix Bünemann\n" | |
144 " * Moritz Bunkus\n" | |
145 " * Dan Villiom Podlaski Christiansen\n" | |
146 " * Jeff Clagg\n" | |
147 " * compn\n" | |
148 " * Marcus Comstedt\n" | |
149 " * Kees Cook\n" | |
150 " * Stephen Davies\n" | |
151 " * Piero Di Vita\n" | |
152 " * Tobias Diedrich\n" | |
153 " * Florian Dietrich\n" | |
154 " * Jeroen Dobbelaere\n" | |
155 " * Reimar Döffinger\n" | |
156 " * Romain Dolbeau\n" | |
157 " * Ismail Dönmez\n" | |
158 " * Robert Edele\n" | |
159 " * Christoph Egger\n" | |
160 " * Paul Wilhelm Elsinghorst\n" | |
161 " * Bernd Ernesti\n" | |
162 " * Salvatore Falco\n" | |
163 " * Johannes Feigl\n" | |
164 " * D Richard III Felker\n" | |
165 " * Tim Ferguson\n" | |
166 " * Ross Finlayson\n" | |
167 " * Daniele Forghieri\n" | |
168 " * Kilian A. Foth\n" | |
169 " * Fabian Franz\n" | |
170 " * Martin Gansser\n" | |
171 " * Árpád Gereöffy\n" | |
172 " * Matteo Giani\n" | |
173 " * Sven Goethel\n" | |
174 " * German Gomez Garcia\n" | |
175 " * Alexander Gottwald\n" | |
176 " * Michael Graffam\n" | |
177 " * Andriy N. Gritsenko\n" | |
178 " * Rémi Guyomarch\n" | |
179 " * Jürgen Hammelmann\n" | |
180 " * Christopher R. Hertel\n" | |
181 " * Andreas Hess\n" | |
182 " * Corey Hickey\n" | |
183 " * Zoltán Hidvégi\n" | |
184 " * Jens Hoffmann\n" | |
185 " * David Holm\n" | |
186 " * Bohdan Horst\n" | |
187 " * Hampa Hug\n" | |
188 " * Tomas Hurka\n" | |
189 " * Sidik Isani\n" | |
190 " * Panagiotis Issaris\n" | |
191 " * Aurelien Jacobs\n" | |
192 " * Reza Jelveh\n" | |
193 " * Jonas Jermann\n" | |
194 " * Anders Johansson\n" | |
195 " * Nicholas Kain\n" | |
196 " * Filip Kalinski\n" | |
197 " * Ivan Kalvachev\n" | |
198 " * Wojtek Kaniewski\n" | |
199 " * Kim Minh Kaplan\n" | |
200 " * Samuli Kärkkäinen\n" | |
201 " * Jürgen Keil\n" | |
202 " * Robert Kesterson\n" | |
203 " * Attila Kinali\n" | |
204 " * Gregory Kovriga\n" | |
205 " * David Kühling\n" | |
206 " * Fredrik Kuivinen\n" | |
207 " * Nick Kurshev\n" | |
208 " * Brian Kuschak\n" | |
209 " * Vladimir Kushnir\n" | |
210 " * Dave Lambley\n" | |
211 " * Gyula László\n" | |
212 " * Nicolas Le Gaillart\n" | |
213 " * Gábor Lénárt\n" | |
214 " * Colin Leroy\n" | |
215 " * Oskar Liljeblad\n" | |
216 " * Sam Lin\n" | |
217 " * Pierre Lombard\n" | |
218 " * Puk Madick\n" | |
219 " * Jindrich Makovicka\n" | |
220 " * Rudolf Marek\n" | |
221 " * László Megyer\n" | |
222 " * Mike Melanson\n" | |
223 " * Arwed von Merkatz\n" | |
224 " * Loren Merritt\n" | |
225 " * Dominik Mierzejewski\n" | |
226 " * Mihail Milushev\n" | |
227 " * Nehal Mistry\n" | |
228 " * András Mohari\n" | |
229 " * Steven Mueller\n" | |
230 " * Alexander Neundorf\n" | |
231 " * Michael Niedermayer\n" | |
232 " * Fredrik Noring\n" | |
233 " * Christian Ohm\n" | |
234 " * Joey Parrish\n" | |
235 " * Dariusz Pietrzak\n" | |
236 " * Nicolas Plourde\n" | |
237 " * Lennart Poettering\n" | |
238 " * Guillaume Poirier\n" | |
239 " * Zoltán Ponekker\n" | |
240 " * Ivo van Poorten\n" | |
241 " * Lu Ran\n" | |
242 " * Uwe Reder\n" | |
23077 | 243 " * rgselk\n" |
244 " * Rune Petersen\n" | |
33963 | 245 " * Ville Saari\n" |
246 " * Nico Sabbi\n" | |
247 " * Björn Sandell\n" | |
248 " * Tilman Sauerbeck\n" | |
249 " * Frank Scherthan\n" | |
250 " * Florian Schneider\n" | |
251 " * Oliver Schoenbrunner\n" | |
252 " * Oded Shimon\n" | |
253 " * Peter Simon\n" | |
254 " * Rik Snel\n" | |
255 " * Sascha Sommer\n" | |
256 " * Alexander Strasser\n" | |
257 " * Kamil Strzelecki\n" | |
258 " * Jiri Svoboda\n" | |
259 " * Robert Swain\n" | |
260 " * Ville Syrjälä\n" | |
261 " * Gabor Szecsi\n" | |
262 " * Jason Tackaberry\n" | |
263 " * Howell Tam\n" | |
264 " * Adam Tlalka\n" | |
265 " * Gianluigi Tiesi\n" | |
266 " * Roberto Togni\n" | |
267 " * Salvador Eduardo Tropea\n" | |
268 " * Miklós Vajna\n" | |
269 " * Reynaldo H. Verdejo Pinochet\n" | |
270 " * Per Wigren\n" | |
271 " * Derek J Witt\n" | |
272 " * Alan Young\n" | |
273 " * Artur Zaprzala\n" | |
274 " * Mark Zealey\n" | |
275 " * Matan Ziv-Av\n" | |
276 " * Márk Vicián Zoltán\n" | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
277 "\n" |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
278 MSGTR_ABOUT_Codecs_libs_contributions |
23077 | 279 "\n" |
33963 | 280 " * Fabrice Bellard\n" |
281 " * Vivien Chappelier\n" | |
282 " * Michael Hipp\n" | |
283 " * Aaron Holtzman\n" | |
284 " * Jake Janovetz\n" | |
285 " * Zdenek Kabelac\n" | |
286 " * Eugene Kuznetsov\n" | |
287 " * Michel Lespinasse\n" | |
288 " * Mark Podlipec\n" | |
289 " * Damien Vincent\n" | |
23077 | 290 "\n" |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
291 MSGTR_ABOUT_Translations |
23077 | 292 "\n" |
33963 | 293 " * Marcin Biernat\n" |
294 " * Marc Fargas\n" | |
295 " * Jiri Heryan\n" | |
296 " * Marek Jarycki\n" | |
297 " * Leszek Kaplita\n" | |
298 " * Sebastian Krämer\n" | |
299 " * Juan Martin López\n" | |
300 " * Piotr Michniewski\n" | |
301 " * Jakub Misiorny\n" | |
302 " * Gábor Mizda\n" | |
303 " * Maciej Paszta\n" | |
304 " * Łukasz Proszek\n" | |
305 " * Wacław Schiller\n" | |
306 " * Andoni Zubimendi\n" | |
23077 | 307 "\n" |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
308 MSGTR_ABOUT_Skins |
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
27343
diff
changeset
|
309 "\n" |
23077 | 310 " * Azrael\n" |
33963 | 311 " * Viktor Bekesi\n" |
312 " * Ingo Brückl\n" | |
313 " * Andrew Carpenter\n" | |
314 " * Charles Foucault\n" | |
315 " * Attila Gyimesi\n" | |
316 " * Alban Hertroys\n" | |
317 " * Balint Kiss\n" | |
318 " * Andre Kuehne\n" | |
319 " * Rüdiger Kuhlmann\n" | |
320 " * Dan Naumov\n" | |
321 " * Ryan Northam\n" | |
322 " * Juan Pablo Oyarzun Arroyo\n" | |
323 " * DongCheon Park\n" | |
324 " * Jurgen Pehrson\n" | |
325 " * Nikola Pizurica\n" | |
326 " * Oliwier Ptak\n" | |
327 " * Pasquale Riccio\n" | |
23077 | 328 " * Burt.S.\n" |
33963 | 329 " * Jesper Schultz\n" |
330 " * Marcin Szumiela\n" | |
331 " * Massimo Tisi\n" | |
332 " * Jiri jun. Tyr\n" | |
333 " * Ognian Vasilev\n" | |
334 " * Imre Veres\n" | |
335 " * Radic Vesko\n" | |
336 " * Balasz Vigvary\n" | |
337 " * Andrew Weber\n" | |
338 " * Gary Jr. Whitmore\n" | |
339 " * Franciszek Wilamowski\n" | |
340 " * Michael Zeising", -1 ); | |
23077 | 341 |
342 AddHSeparator( vbox ); | |
343 Ok=AddButton( MSGTR_Ok,AddHButtonBox( vbox ) ); | |
344 | |
345 gtk_signal_connect( GTK_OBJECT( About ),"destroy",GTK_SIGNAL_FUNC( WidgetDestroy ),&About ); | |
346 gtk_signal_connect_object( GTK_OBJECT( Ok ),"clicked",GTK_SIGNAL_FUNC( abWidgetDestroy ),NULL ); | |
347 | |
348 gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE ); | |
349 gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE ); | |
350 gtk_window_add_accel_group( GTK_WINDOW( About ),accel_group ); | |
351 | |
352 return About; | |
353 } |