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