annotate Gui/mplayer/gtk/about.c @ 7250:27a1315d6af4

Checked if the connection succeeded before writing in the socket.
author bertrand
date Tue, 03 Sep 2002 01:25:31 +0000
parents bab8be262e97
children b82a3eb66d60
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
6625
54cfbaaf161b remove unneded config files
pontscho
parents: 6146
diff changeset
6 #include "mplayer/pixmaps/about.xpm"
2901
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
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
10 int gtkVAboutBox = 0;
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
11 GtkWidget * AboutBox;
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
12
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
13 void ShowAboutBox( void )
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
14 {
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
15 if ( gtkVAboutBox ) gtkActive( AboutBox );
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
16 else AboutBox=create_About();
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
17 gtk_widget_show( AboutBox );
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
18 }
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
19
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
20 void ab_AboutBox_show( GtkButton * button,gpointer user_data )
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
21 { gtkVAboutBox=(int)user_data; }
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
22
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
23 void ab_Ok_released( GtkButton * button,gpointer user_data )
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
24 {
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
25 gtkVAboutBox=(int)user_data;
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
26 gtk_widget_destroy( AboutBox );
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
27 }
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
28
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
29 GtkWidget * create_About( void )
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
30 {
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
31 GtkWidget * About;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
32 GtkWidget * frame1;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
33 GtkWidget * frame2;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
34 GtkWidget * frame3;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
35 GtkWidget * frame4;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
36 GtkWidget * vbox1;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
37 GtkWidget * pixmap1;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
38 GtkWidget * hseparator2;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
39 GtkWidget * scrolledwindow1;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
40 GtkWidget * AboutText;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
41 GtkWidget * hseparator1;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
42 GtkWidget * hbuttonbox1;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
43 GtkWidget * Ok;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
44
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
45 GtkStyle * pixmapstyle;
3616
6a4155dce92c nesze LGB beleirtalak igy ;)
pontscho
parents: 2901
diff changeset
46 GdkPixmap * pixmapwid;
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
47 GdkBitmap * mask;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
48
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
49 GtkAccelGroup * accel_group;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
50
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
51 accel_group=gtk_accel_group_new();
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
52
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
53 About=gtk_window_new( GTK_WINDOW_TOPLEVEL );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
54 gtk_widget_set_name( About,MSGTR_About );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
55 gtk_object_set_data( GTK_OBJECT( About ),MSGTR_About,About );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
56 gtk_widget_set_usize( About,340,415 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
57 gtk_window_set_title( GTK_WINDOW( About ),MSGTR_About );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
58 gtk_window_set_position( GTK_WINDOW( About ),GTK_WIN_POS_CENTER );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
59 gtk_window_set_policy( GTK_WINDOW( About ),TRUE,FALSE,FALSE );
6651
8f49c75a2824 - add icon (nice, but very ugly hakk:)
pontscho
parents: 6625
diff changeset
60 gtk_window_set_wmclass( GTK_WINDOW( About ),MSGTR_About,"MPlayer" );
8f49c75a2824 - add icon (nice, but very ugly hakk:)
pontscho
parents: 6625
diff changeset
61
8f49c75a2824 - add icon (nice, but very ugly hakk:)
pontscho
parents: 6625
diff changeset
62 gtk_widget_realize( About );
8f49c75a2824 - add icon (nice, but very ugly hakk:)
pontscho
parents: 6625
diff changeset
63 gtkAddIcon( About );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
64
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
65 frame1=gtk_frame_new( NULL );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
66 gtk_widget_set_name( frame1,"frame1" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
67 gtk_widget_ref( frame1 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
68 gtk_object_set_data_full( GTK_OBJECT( About ),"frame1",frame1,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
69 gtk_widget_show( frame1 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
70 gtk_container_add( GTK_CONTAINER( About ),frame1 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
71 gtk_frame_set_shadow_type( GTK_FRAME( frame1 ),GTK_SHADOW_IN );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
72
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
73 frame2=gtk_frame_new( NULL );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
74 gtk_widget_set_name( frame2,"frame2" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
75 gtk_widget_ref( frame2 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
76 gtk_object_set_data_full( GTK_OBJECT( About ),"frame2",frame2,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
77 gtk_widget_show( frame2 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
78 gtk_container_add( GTK_CONTAINER( frame1 ),frame2 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
79 gtk_frame_set_shadow_type( GTK_FRAME( frame2 ),GTK_SHADOW_NONE );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
80
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
81 frame3=gtk_frame_new( NULL );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
82 gtk_widget_set_name( frame3,"frame3" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
83 gtk_widget_ref( frame3 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
84 gtk_object_set_data_full( GTK_OBJECT( About ),"frame3",frame3,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
85 gtk_widget_show( frame3 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
86 gtk_container_add( GTK_CONTAINER( frame2 ),frame3 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
87 gtk_frame_set_shadow_type( GTK_FRAME( frame3 ),GTK_SHADOW_ETCHED_OUT );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
88
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
89 frame4=gtk_frame_new( NULL );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
90 gtk_widget_set_name( frame4,"frame4" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
91 gtk_widget_ref( frame4 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
92 gtk_object_set_data_full( GTK_OBJECT( About ),"frame4",frame4,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
93 gtk_widget_show( frame4 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
94 gtk_container_add( GTK_CONTAINER( frame3 ),frame4 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
95 gtk_frame_set_shadow_type( GTK_FRAME( frame4 ),GTK_SHADOW_NONE );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
96
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
97 vbox1=gtk_vbox_new( FALSE,0 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
98 gtk_widget_set_name( vbox1,"vbox1" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
99 gtk_widget_ref( vbox1 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
100 gtk_object_set_data_full( GTK_OBJECT( About ),"vbox1",vbox1,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
101 gtk_widget_show( vbox1 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
102 gtk_container_add( GTK_CONTAINER( frame4 ),vbox1 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
103
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
104 pixmapstyle=gtk_widget_get_style( About );
3616
6a4155dce92c nesze LGB beleirtalak igy ;)
pontscho
parents: 2901
diff changeset
105 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
106 pixmap1=gtk_pixmap_new( pixmapwid,mask );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
107
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
108 gtk_widget_set_name( pixmap1,"pixmap1" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
109 gtk_widget_ref( pixmap1 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
110 gtk_object_set_data_full( GTK_OBJECT( About ),"pixmap1",pixmap1,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
111 gtk_widget_show( pixmap1 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
112 gtk_box_pack_start( GTK_BOX( vbox1 ),pixmap1,FALSE,FALSE,0 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
113 gtk_widget_set_usize( pixmap1,-2,174 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
114
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
115 hseparator2=gtk_hseparator_new( );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
116 gtk_widget_set_name( hseparator2,"hseparator2" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
117 gtk_widget_ref( hseparator2 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
118 gtk_object_set_data_full( GTK_OBJECT( About ),"hseparator2",hseparator2,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
119 gtk_widget_show( hseparator2 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
120 gtk_box_pack_start( GTK_BOX( vbox1 ),hseparator2,FALSE,FALSE,0 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
121 gtk_widget_set_usize( hseparator2,-2,7 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
122
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
123 scrolledwindow1=gtk_scrolled_window_new( NULL,NULL );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
124 gtk_widget_set_name( scrolledwindow1,"scrolledwindow1" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
125 gtk_widget_ref( scrolledwindow1 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
126 gtk_object_set_data_full( GTK_OBJECT( About ),"scrolledwindow1",scrolledwindow1,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
127 gtk_widget_show( scrolledwindow1 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
128 gtk_box_pack_start( GTK_BOX( vbox1 ),scrolledwindow1,TRUE,TRUE,0 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
129 gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( scrolledwindow1 ),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
130
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
131 AboutText=gtk_text_new( NULL,NULL );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
132 gtk_widget_set_name( AboutText,"AboutText" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
133 gtk_widget_ref( AboutText );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
134 gtk_object_set_data_full( GTK_OBJECT( About ),"AboutText",AboutText,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
135 gtk_widget_show( AboutText );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
136 gtk_container_add( GTK_CONTAINER( scrolledwindow1 ),AboutText );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
137 gtk_text_insert( GTK_TEXT( AboutText ),NULL,NULL,NULL,
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
138 "\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
139 " MPlayer core team:\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
140 "\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
141 " * Arpad Gereoffy (A'rpi/ESP-team)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
142 " * Zoltan Ponekker (Pontscho/Fresh!mindworkz)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
143 " * Gabor Berczi (Gabucino)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
144 " * Alex Beregszaszi (al3x)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
145 " * Gabor Lenart (LGB)\n" \
7080
bab8be262e97 Fix small typo noticed by Francisco Javier Cabello <fjcabello@visual-tools.com>
atmos4
parents: 6903
diff changeset
146 " * Felix Buenemann (Atmos)\n" \
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
147 " * Alban Bedel (Albeu)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
148 " * pl\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
149 " * Michael Niedermayer\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
150 "\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
151 " Additional codes:\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
152 "\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
153 " * Szabolcs Berecz (Szabi)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
154 " * Laszlo Megyer (Lez, Laaz)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
155 " * Gyula Laszlo (Chass, Tegla)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
156 " * Zoltan Mark Vician (Se7en)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
157 " * Andreas Ackermann (Acki)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
158 " * TeLeNiEkO\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
159 " * Michael Graffam\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
160 " * Jens Hoffmann\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
161 " * German Gomez Garcia\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
162 " * Dariusz Pietrzak (Eyck)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
163 " * Marcus Comstedt\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
164 " * Jurgen Keil\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
165 " * Vladimir Kushnir\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
166 " * Bertrand BAUDET\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
167 " * Derek J Witt\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
168 " * Artur Zaprzala\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
169 " * lanzz@lanzz.org\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
170 " * Adam Tla/lka\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
171 " * Folke Ashberg\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
172 " * Kamil Toman\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
173 " * Ivan Kalvatchev\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
174 " * Sven Goethel\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
175 " * joy_ping\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
176 " * Eric Anholt\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
177 " * Jiri Svoboda\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
178 " * Oliver Schoenbrunner\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
179 " * Jeroen Dobbelaere\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
180 " * David Holm\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
181 " * Panagiotis Issaris\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
182 " * Mike Melanson\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
183 " * Tobias Diedrich\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
184 " * Kilian A. Foth\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
185 " * Tim Ferguson\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
186 " * Sam Lin\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
187 " * Johannes Feigl\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
188 " * Kim Minh Kaplan\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
189 " * Brian Kuschak\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
190 " * Stephen Davies\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
191 " * Rik Snel\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
192 " * Anders Johansson\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
193 " * Roberto Togni\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
194 " * Wojtek Kaniewski\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
195 " * Fredrik Kuivinen\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
196 "\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
197 " Main testers:\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
198 "\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
199 " * Tibor Balazs (Tibcu)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
200 " * Peter Sasi (SaPe)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
201 " * Christoph H. Lampert\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
202 " * Attila Kinali\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
203 " * Dirk Vornheder\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
204 " * Bohdan Horst (Nexus)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
205 "\n",1481 );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
206
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
207 hseparator1=gtk_hseparator_new();
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
208 gtk_widget_set_name( hseparator1,"hseparator1" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
209 gtk_widget_ref( hseparator1 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
210 gtk_object_set_data_full( GTK_OBJECT( About ),"hseparator1",hseparator1,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
211 gtk_widget_show( hseparator1 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
212 gtk_box_pack_start( GTK_BOX( vbox1 ),hseparator1,FALSE,FALSE,0 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
213 gtk_widget_set_usize( hseparator1,-2,10 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
214
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
215 hbuttonbox1=gtk_hbutton_box_new( );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
216 gtk_widget_set_name( hbuttonbox1,"hbuttonbox1" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
217 gtk_widget_ref( hbuttonbox1 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
218 gtk_object_set_data_full( GTK_OBJECT( About ),"hbuttonbox1",hbuttonbox1,(GtkDestroyNotify)gtk_widget_unref );
3616
6a4155dce92c nesze LGB beleirtalak igy ;)
pontscho
parents: 2901
diff changeset
219 gtk_widget_set_usize( hbuttonbox1,-2,25 );
6a4155dce92c nesze LGB beleirtalak igy ;)
pontscho
parents: 2901
diff changeset
220 gtk_button_box_set_child_size( GTK_BUTTON_BOX( hbuttonbox1 ),75,0 );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
221 gtk_widget_show( hbuttonbox1 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
222 gtk_box_pack_start( GTK_BOX( vbox1 ),hbuttonbox1,FALSE,FALSE,0 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
223
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
224 Ok=gtk_button_new_with_label( MSGTR_Ok );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
225 gtk_widget_set_name( Ok,MSGTR_Ok );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
226 gtk_widget_ref( Ok );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
227 gtk_object_set_data_full( GTK_OBJECT( About ),MSGTR_Ok,Ok,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
228 gtk_widget_show( Ok );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
229 gtk_container_add( GTK_CONTAINER( hbuttonbox1 ),Ok );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
230
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
231 gtk_signal_connect( GTK_OBJECT( About ),"destroy",GTK_SIGNAL_FUNC( ab_Ok_released ),0 );
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6755
diff changeset
232 gtk_signal_connect( GTK_OBJECT( About ),"show",GTK_SIGNAL_FUNC( ab_AboutBox_show ),(void *)1 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
233 gtk_signal_connect( GTK_OBJECT( About ),"hide",GTK_SIGNAL_FUNC( ab_AboutBox_show ),0 );
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
234 gtk_signal_connect( GTK_OBJECT( Ok ),"released",GTK_SIGNAL_FUNC( ab_Ok_released ),0 );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
235
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
236 gtk_widget_add_accelerator( Ok,"released",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
237 gtk_widget_add_accelerator( Ok,"released",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
238 gtk_window_add_accel_group( GTK_WINDOW( About ),accel_group );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
239
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
240 return About;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
241 }