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