Mercurial > mplayer.hg
annotate Gui/mplayer/gtk/about.c @ 5194:c298c4a21d48
small update to english version.
author | jonas |
---|---|
date | Tue, 19 Mar 2002 11:01:37 +0000 |
parents | 3473ca9ef158 |
children | 153fc4ed86ad |
rev | line source |
---|---|
2901 | 1 |
2 #include "../../events.h" | |
3 #include "../../../config.h" | |
4 #include "../../../help_mp.h" | |
5 | |
6 #include "pixmaps/about.xpm" | |
7 #include "../widgets.h" | |
8 #include "about.h" | |
9 | |
10 void ab_Ok_released( GtkButton * button,gpointer user_data ) | |
11 { | |
12 gtk_widget_hide( AboutBox ); | |
13 } | |
14 | |
15 GtkWidget * create_About( void ) | |
16 { | |
17 GtkWidget * About; | |
18 GtkWidget * frame1; | |
19 GtkWidget * frame2; | |
20 GtkWidget * frame3; | |
21 GtkWidget * frame4; | |
22 GtkWidget * vbox1; | |
23 GtkWidget * pixmap1; | |
24 GtkWidget * hseparator2; | |
25 GtkWidget * scrolledwindow1; | |
26 GtkWidget * AboutText; | |
27 GtkWidget * hseparator1; | |
28 GtkWidget * hbuttonbox1; | |
29 GtkWidget * Ok; | |
30 | |
31 GtkStyle * pixmapstyle; | |
3616 | 32 GdkPixmap * pixmapwid; |
2901 | 33 GdkBitmap * mask; |
34 | |
35 GtkAccelGroup * accel_group; | |
36 | |
37 accel_group=gtk_accel_group_new( ); | |
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 ); | |
46 | |
47 frame1=gtk_frame_new( NULL ); | |
48 gtk_widget_set_name( frame1,"frame1" ); | |
49 gtk_widget_ref( frame1 ); | |
50 gtk_object_set_data_full( GTK_OBJECT( About ),"frame1",frame1,( GtkDestroyNotify ) gtk_widget_unref ); | |
51 gtk_widget_show( frame1 ); | |
52 gtk_container_add( GTK_CONTAINER( About ),frame1 ); | |
53 gtk_frame_set_shadow_type( GTK_FRAME( frame1 ),GTK_SHADOW_IN ); | |
54 | |
55 frame2=gtk_frame_new( NULL ); | |
56 gtk_widget_set_name( frame2,"frame2" ); | |
57 gtk_widget_ref( frame2 ); | |
58 gtk_object_set_data_full( GTK_OBJECT( About ),"frame2",frame2,( GtkDestroyNotify ) gtk_widget_unref ); | |
59 gtk_widget_show( frame2 ); | |
60 gtk_container_add( GTK_CONTAINER( frame1 ),frame2 ); | |
61 gtk_frame_set_shadow_type( GTK_FRAME( frame2 ),GTK_SHADOW_NONE ); | |
62 | |
63 frame3=gtk_frame_new( NULL ); | |
64 gtk_widget_set_name( frame3,"frame3" ); | |
65 gtk_widget_ref( frame3 ); | |
66 gtk_object_set_data_full( GTK_OBJECT( About ),"frame3",frame3,( GtkDestroyNotify ) gtk_widget_unref ); | |
67 gtk_widget_show( frame3 ); | |
68 gtk_container_add( GTK_CONTAINER( frame2 ),frame3 ); | |
69 gtk_frame_set_shadow_type( GTK_FRAME( frame3 ),GTK_SHADOW_ETCHED_OUT ); | |
70 | |
71 frame4=gtk_frame_new( NULL ); | |
72 gtk_widget_set_name( frame4,"frame4" ); | |
73 gtk_widget_ref( frame4 ); | |
74 gtk_object_set_data_full( GTK_OBJECT( About ),"frame4",frame4,( GtkDestroyNotify ) gtk_widget_unref ); | |
75 gtk_widget_show( frame4 ); | |
76 gtk_container_add( GTK_CONTAINER( frame3 ),frame4 ); | |
77 gtk_frame_set_shadow_type( GTK_FRAME( frame4 ),GTK_SHADOW_NONE ); | |
78 | |
79 vbox1=gtk_vbox_new( FALSE,0 ); | |
80 gtk_widget_set_name( vbox1,"vbox1" ); | |
81 gtk_widget_ref( vbox1 ); | |
82 gtk_object_set_data_full( GTK_OBJECT( About ),"vbox1",vbox1,( GtkDestroyNotify ) gtk_widget_unref ); | |
83 gtk_widget_show( vbox1 ); | |
84 gtk_container_add( GTK_CONTAINER( frame4 ),vbox1 ); | |
85 | |
86 pixmapstyle=gtk_widget_get_style( About ); | |
3616 | 87 pixmapwid=gdk_pixmap_colormap_create_from_xpm_d( About->window,gdk_colormap_get_system(),&mask,&pixmapstyle->bg[GTK_STATE_NORMAL],about_xpm ); |
2901 | 88 pixmap1=gtk_pixmap_new( pixmapwid,mask ); |
89 | |
90 gtk_widget_set_name( pixmap1,"pixmap1" ); | |
91 gtk_widget_ref( pixmap1 ); | |
92 gtk_object_set_data_full( GTK_OBJECT( About ),"pixmap1",pixmap1,( GtkDestroyNotify ) gtk_widget_unref ); | |
93 gtk_widget_show( pixmap1 ); | |
94 gtk_box_pack_start( GTK_BOX( vbox1 ),pixmap1,FALSE,FALSE,0 ); | |
95 gtk_widget_set_usize( pixmap1,-2,174 ); | |
96 | |
97 hseparator2=gtk_hseparator_new( ); | |
98 gtk_widget_set_name( hseparator2,"hseparator2" ); | |
99 gtk_widget_ref( hseparator2 ); | |
100 gtk_object_set_data_full( GTK_OBJECT( About ),"hseparator2",hseparator2,( GtkDestroyNotify ) gtk_widget_unref ); | |
101 gtk_widget_show( hseparator2 ); | |
102 gtk_box_pack_start( GTK_BOX( vbox1 ),hseparator2,FALSE,FALSE,0 ); | |
103 gtk_widget_set_usize( hseparator2,-2,7 ); | |
104 | |
105 scrolledwindow1=gtk_scrolled_window_new( NULL,NULL ); | |
106 gtk_widget_set_name( scrolledwindow1,"scrolledwindow1" ); | |
107 gtk_widget_ref( scrolledwindow1 ); | |
108 gtk_object_set_data_full( GTK_OBJECT( About ),"scrolledwindow1",scrolledwindow1,( GtkDestroyNotify ) gtk_widget_unref ); | |
109 gtk_widget_show( scrolledwindow1 ); | |
110 gtk_box_pack_start( GTK_BOX( vbox1 ),scrolledwindow1,TRUE,TRUE,0 ); | |
111 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC ); | |
112 | |
113 AboutText=gtk_text_new( NULL,NULL ); | |
114 gtk_widget_set_name( AboutText,"AboutText" ); | |
115 gtk_widget_ref( AboutText ); | |
116 gtk_object_set_data_full( GTK_OBJECT( About ),"AboutText",AboutText,( GtkDestroyNotify ) gtk_widget_unref ); | |
117 gtk_widget_show( AboutText ); | |
118 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText ); | |
119 gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL, | |
120 "\nMPlayer code:\n" \ | |
121 " fileformat detection,demuxers - A'rpi\n" \ | |
122 " DVD support - ( alpha version was: LGB ) now: ?\n" \ | |
123 " network streaming - Bertrand BAUDET\n" \ | |
124 " A-V sync code - A'rpi\n" \ | |
125 " subtitles file parser/reader - Lez( most of them )\n" \ | |
126 " config files & commandline parser - Szabi\n" \ | |
127 " fastmemcpy - Nick Kurshev\n" \ | |
128 " LIRC support - Acki\n" \ | |
129 " SUB/OSD renderer - Adam Tla/lka\n" \ | |
130 " Gui - Pontscho\n\nlibvo drivers:\n" \ | |
131 " vo_aa.c - Folke Ashberg\n" \ | |
132 " vo_dga.c - Acki\n" \ | |
133 " vo_fbdev.c - Szabi\n" \ | |
134 " vo_ggi.c - al3x\n" \ | |
135 " vo_gl.c - A'rpi\n" \ | |
136 " vo_md5.c - A'rpi\n" \ | |
137 " vo_mga.c - A'rpi\n" \ | |
138 " vo_null.c - A'rpi\n" \ | |
139 " vo_odivx.c - A'rpi\n" \ | |
140 " vo_pgm.c - A'rpi\n" \ | |
141 " vo_png.c - Atmos\n" \ | |
142 " vo_sdl.c - Atmos\n" \ | |
143 " vo_svga.c - se7en\n" \ | |
144 " vo_x11.c - Pontscho\n"\ | |
145 " vo_xmga.c - Pontscho\n"\ | |
146 " vo_xv.c - Pontscho\n" \ | |
147 " vo_aa.c - Folke Ashberg\n\n" \ | |
148 "libao2 drivers:\n" \ | |
149 " ao_alsa5.c - al3x\n" \ | |
150 " ao_alsa9.c - al3x( BUGGY,use oss )\n" \ | |
151 " ao_null.c - A'rpi\n" \ | |
152 " ao_oss.c - A'rpi\n" \ | |
153 " ao_pcm.c - Atmos\n" \ | |
154 " ao_sdl.c - Atmos\n" \ | |
155 " ao_sun.c - Jürgen Keil\n\n" \ | |
156 "Homepage:\n" \ | |
157 " Design: Chass\n" \ | |
3616 | 158 " Contents: Gabucino\n" \ |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
3616
diff
changeset
|
159 " LGB\n\n" \ |
2901 | 160 "English documentation:\n" \ |
161 " tech-*.txt: A'rpi\n" \ | |
162 " all the others: Gabucino\n\n" \ | |
163 "Documentation translations:\n" \ | |
164 " Hungarian - Gabucino\n" \ | |
165 " Spanish - TeLeNiEkO\n" \ | |
166 " Russian - Nick Kurshev\n" \ | |
167 " Polish - Dariush Pietrzak\n" \ | |
168 " German - Atmosfear\n\n" \ | |
169 "Platforms/ports:\n" \ | |
170 " DEBIAN packaging - Dariush Pietrzak\n" \ | |
171 " FreeBSD support - Vladimir Kushnir\n" \ | |
172 " Solaris 8 support - Jürgen Keil\n",1535 ); | |
173 | |
174 hseparator1=gtk_hseparator_new( ); | |
175 gtk_widget_set_name( hseparator1,"hseparator1" ); | |
176 gtk_widget_ref( hseparator1 ); | |
177 gtk_object_set_data_full( GTK_OBJECT( About ),"hseparator1",hseparator1, | |
178 ( GtkDestroyNotify ) gtk_widget_unref ); | |
179 gtk_widget_show( hseparator1 ); | |
180 gtk_box_pack_start( GTK_BOX( vbox1 ),hseparator1,FALSE,FALSE,0 ); | |
181 gtk_widget_set_usize( hseparator1,-2,10 ); | |
182 | |
183 hbuttonbox1=gtk_hbutton_box_new( ); | |
184 gtk_widget_set_name( hbuttonbox1,"hbuttonbox1" ); | |
185 gtk_widget_ref( hbuttonbox1 ); | |
186 gtk_object_set_data_full( GTK_OBJECT( About ),"hbuttonbox1",hbuttonbox1, | |
187 ( GtkDestroyNotify ) gtk_widget_unref ); | |
3616 | 188 gtk_widget_set_usize( hbuttonbox1,-2,25 ); |
189 gtk_button_box_set_child_size( GTK_BUTTON_BOX( hbuttonbox1 ),75,0 ); | |
2901 | 190 gtk_widget_show( hbuttonbox1 ); |
191 gtk_box_pack_start( GTK_BOX( vbox1 ),hbuttonbox1,FALSE,FALSE,0 ); | |
192 | |
193 Ok=gtk_button_new_with_label( MSGTR_Ok ); | |
194 gtk_widget_set_name( Ok,MSGTR_Ok ); | |
195 gtk_widget_ref( Ok ); | |
196 gtk_object_set_data_full( GTK_OBJECT( About ),MSGTR_Ok,Ok,( GtkDestroyNotify ) gtk_widget_unref ); | |
197 gtk_widget_show( Ok ); | |
198 gtk_container_add( GTK_CONTAINER( hbuttonbox1 ),Ok ); | |
199 | |
200 gtk_signal_connect( GTK_OBJECT( About ),"destroy",GTK_SIGNAL_FUNC( ab_Ok_released ),NULL ); | |
201 gtk_signal_connect( GTK_OBJECT( Ok ),"released",GTK_SIGNAL_FUNC( ab_Ok_released ),NULL ); | |
202 | |
203 gtk_widget_add_accelerator( Ok,"released",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE ); | |
204 gtk_widget_add_accelerator( Ok,"released",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE ); | |
205 gtk_window_add_accel_group( GTK_WINDOW( About ),accel_group ); | |
206 | |
207 return About; | |
208 } |