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