Mercurial > mplayer.hg
annotate Gui/mplayer/gtk/about.c @ 13847:939ec0981090
several updates in video filters section, almost finished sync
added a tag to indicate how far the sync process has gone
1.799: vo_gl should work fine with -fixed-vo
author | kraymer |
---|---|
date | Tue, 02 Nov 2004 00:03:38 +0000 |
parents | 5f154628f928 |
children | 683d7592d9dc |
rev | line source |
---|---|
2901 | 1 |
8043 | 2 #include "../../app.h" |
2901 | 3 #include "../../../config.h" |
4 #include "../../../help_mp.h" | |
5 | |
6625 | 6 #include "mplayer/pixmaps/about.xpm" |
2901 | 7 #include "../widgets.h" |
8 #include "about.h" | |
8299 | 9 #include "common.h" |
2901 | 10 |
8299 | 11 GtkWidget * About = NULL; |
6146 | 12 |
13 void ShowAboutBox( void ) | |
14 { | |
8299 | 15 if ( About ) gtkActive( About ); |
16 else About=create_About(); | |
17 gtk_widget_show( About ); | |
6146 | 18 } |
2901 | 19 |
8719
dc27303ae528
correct widget destroy event handler (thank for D J Hawkey Jr <hawkeyd@visi.com>)
pontscho
parents:
8299
diff
changeset
|
20 void abWidgetDestroy( GtkWidget * widget,GtkWidget ** widget_pointer ) |
dc27303ae528
correct widget destroy event handler (thank for D J Hawkey Jr <hawkeyd@visi.com>)
pontscho
parents:
8299
diff
changeset
|
21 { WidgetDestroy( NULL,&About ); } |
dc27303ae528
correct widget destroy event handler (thank for D J Hawkey Jr <hawkeyd@visi.com>)
pontscho
parents:
8299
diff
changeset
|
22 |
2901 | 23 GtkWidget * create_About( void ) |
24 { | |
8299 | 25 GtkWidget * vbox; |
2901 | 26 GtkWidget * pixmap1; |
27 GtkWidget * scrolledwindow1; | |
28 GtkWidget * AboutText; | |
29 GtkWidget * Ok; | |
30 | |
31 GtkStyle * pixmapstyle; | |
3616 | 32 GdkPixmap * pixmapwid; |
2901 | 33 GdkBitmap * mask; |
34 | |
35 GtkAccelGroup * accel_group; | |
36 | |
6146 | 37 accel_group=gtk_accel_group_new(); |
2901 | 38 |
39 About=gtk_window_new( GTK_WINDOW_TOPLEVEL ); | |
40 gtk_widget_set_name( About,MSGTR_About ); | |
41 gtk_object_set_data( GTK_OBJECT( About ),MSGTR_About,About ); | |
42 gtk_widget_set_usize( About,340,415 ); | |
43 gtk_window_set_title( GTK_WINDOW( About ),MSGTR_About ); | |
44 gtk_window_set_position( GTK_WINDOW( About ),GTK_WIN_POS_CENTER ); | |
45 gtk_window_set_policy( GTK_WINDOW( About ),TRUE,FALSE,FALSE ); | |
8299 | 46 gtk_window_set_wmclass( GTK_WINDOW( About ),"About","MPlayer" ); |
6651 | 47 |
48 gtk_widget_realize( About ); | |
49 gtkAddIcon( About ); | |
8299 | 50 |
51 vbox=AddVBox( AddDialogFrame( About ),0 ); | |
2901 | 52 |
53 pixmapstyle=gtk_widget_get_style( About ); | |
3616 | 54 pixmapwid=gdk_pixmap_colormap_create_from_xpm_d( About->window,gdk_colormap_get_system(),&mask,&pixmapstyle->bg[GTK_STATE_NORMAL],about_xpm ); |
2901 | 55 pixmap1=gtk_pixmap_new( pixmapwid,mask ); |
56 | |
57 gtk_widget_set_name( pixmap1,"pixmap1" ); | |
58 gtk_widget_show( pixmap1 ); | |
8299 | 59 gtk_box_pack_start( GTK_BOX( vbox ),pixmap1,FALSE,FALSE,0 ); |
2901 | 60 gtk_widget_set_usize( pixmap1,-2,174 ); |
61 | |
8299 | 62 AddHSeparator( vbox ); |
2901 | 63 |
64 scrolledwindow1=gtk_scrolled_window_new( NULL,NULL ); | |
65 gtk_widget_set_name( scrolledwindow1,"scrolledwindow1" ); | |
66 gtk_widget_show( scrolledwindow1 ); | |
8299 | 67 gtk_box_pack_start( GTK_BOX( vbox ),scrolledwindow1,TRUE,TRUE,0 ); |
2901 | 68 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC ); |
69 | |
70 AboutText=gtk_text_new( NULL,NULL ); | |
71 gtk_widget_set_name( AboutText,"AboutText" ); | |
72 gtk_widget_show( AboutText ); | |
73 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText ); | |
74 gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL, | |
9189 | 75 "\n" |
76 MSGTR_ABOUT_UHU | |
77 " (http://www.uhulinux.hu/)\n" | |
78 "\n" | |
79 MSGTR_ABOUT_CoreTeam | |
80 "\n" | |
81 " * Arpad Gereoffy (A'rpi/ESP-team)\n" | |
82 " * Zoltan Ponekker (Pontscho/fresh!mindworkz)\n" | |
83 " * Gabor Berczi (Gabucino)\n" | |
84 " * Alex Beregszaszi (al3x)\n" | |
85 " * Gabor Lenart (LGB)\n" | |
86 " * Felix Buenemann (Atmos)\n" | |
87 " * Alban Bedel (Albeu)\n" | |
9612 | 88 " * Pierre Lombard (pl)\n" |
9189 | 89 " * Michael Niedermayer\n" |
90 "\n" | |
91 MSGTR_ABOUT_AdditionalCoders | |
92 "\n" | |
93 " * Szabolcs Berecz (Szabi)\n" | |
94 " * Laszlo Megyer (Lez, Laaz)\n" | |
95 " * Gyula Laszlo (Chass, Tegla)\n" | |
96 " * Zoltan Mark Vician (Se7en)\n" | |
97 " * Andreas Ackermann (Acki)\n" | |
98 " * Michael Graffam\n" | |
99 " * Jens Hoffmann\n" | |
100 " * German Gomez Garcia\n" | |
101 " * Dariusz Pietrzak (Eyck)\n" | |
102 " * Marcus Comstedt\n" | |
103 " * Juergen Keil\n" | |
104 " * Vladimir Kushnir\n" | |
105 " * Bertrand Baudet\n" | |
106 " * Derek J Witt\n" | |
107 " * Artur Zaprzala\n" | |
108 " * Adam Tla/lka\n" | |
109 " * Folke Ashberg\n" | |
110 " * Kamil Toman\n" | |
111 " * Ivan Kalvatchev\n" | |
112 " * Sven Goethel\n" | |
9612 | 113 " * Joy Winter\n" |
9189 | 114 " * Eric Anholt\n" |
115 " * Jiri Svoboda\n" | |
116 " * Oliver Schoenbrunner\n" | |
117 " * Jeroen Dobbelaere\n" | |
118 " * David Holm\n" | |
119 " * Panagiotis Issaris\n" | |
120 " * Mike Melanson\n" | |
121 " * Tobias Diedrich\n" | |
122 " * Kilian A. Foth\n" | |
123 " * Tim Ferguson\n" | |
124 " * Sam Lin\n" | |
125 " * Johannes Feigl\n" | |
126 " * Kim Minh Kaplan\n" | |
127 " * Brian Kuschak\n" | |
128 " * Stephen Davies\n" | |
129 " * Rik Snel\n" | |
130 " * Anders Johansson\n" | |
131 " * Roberto Togni\n" | |
132 " * Wojtek Kaniewski\n" | |
133 " * Fredrik Kuivinen\n" | |
134 " * Diego Biurrun\n" | |
135 " * Sascha Sommer\n" | |
136 " * Jindrich Makovicka\n" | |
137 " * D Richard Felker III\n" | |
138 " * Moritz Bunkus\n" | |
139 " * Colin Leroy\n" | |
140 " * Joey Parrish\n" | |
141 " * Dominik Mierzejewski\n" | |
142 " * Florian Schneider\n" | |
9612 | 143 " * Sidik Isani\n" |
144 " * Fredrik Noring\n" | |
145 " * Kees Cook\n" | |
146 " * Hampa Hug\n" | |
147 " * Uwe Reder\n" | |
148 " * Andriy N. Gritsenko\n" | |
149 " * Juergen Hammelmann\n" | |
150 " * Martin Gansser\n" | |
151 " * Matteo Giani\n" | |
152 " * Rudolf Marek\n" | |
153 " * Tilman Sauerbeck\n" | |
154 " * Mark Zealey\n" | |
155 " * Gregory Kovriga\n" | |
156 " * Remi Guyomarch\n" | |
157 " * Salvatore Falco\n" | |
158 " * Ville Syrjala\n" | |
159 " * Bjorn Sandell\n" | |
160 " * Per Wigren\n" | |
161 " * Nicolas Le Gaillart\n" | |
162 " * Lu Ran\n" | |
163 " * Andras Mohari\n" | |
164 " * Denes Balatoni\n" | |
165 " * Oskar Liljeblad\n" | |
166 " * Bernd Ernesti\n" | |
9189 | 167 "\n" |
168 MSGTR_ABOUT_MainTesters | |
169 "\n" | |
170 " * Tibor Balazs (Tibcu)\n" | |
171 " * Peter Sasi (SaPe)\n" | |
9612 | 172 " * Christoph H. Lampert (Gruel)\n" |
173 " * Attila Kinali (KotH)\n" | |
9189 | 174 " * Bohdan Horst (Nexus)\n" |
175 "\n",-1 ); | |
2901 | 176 |
8299 | 177 AddHSeparator( vbox ); |
178 Ok=AddButton( MSGTR_Ok,AddHButtonBox( vbox ) ); | |
2901 | 179 |
8719
dc27303ae528
correct widget destroy event handler (thank for D J Hawkey Jr <hawkeyd@visi.com>)
pontscho
parents:
8299
diff
changeset
|
180 gtk_signal_connect( GTK_OBJECT( About ),"destroy",GTK_SIGNAL_FUNC( WidgetDestroy ),&About ); |
dc27303ae528
correct widget destroy event handler (thank for D J Hawkey Jr <hawkeyd@visi.com>)
pontscho
parents:
8299
diff
changeset
|
181 gtk_signal_connect_object( GTK_OBJECT( Ok ),"clicked",GTK_SIGNAL_FUNC( abWidgetDestroy ),NULL ); |
2901 | 182 |
8299 | 183 gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE ); |
184 gtk_widget_add_accelerator( Ok,"clicked",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE ); | |
2901 | 185 gtk_window_add_accel_group( GTK_WINDOW( About ),accel_group ); |
186 | |
187 return About; | |
188 } |