annotate Gui/mplayer/gtk/about.c @ 4611:7b793875a640

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