annotate Gui/mplayer/gtk/about.c @ 7527:20d408e7e346

added uhulinux url
author alex
date Sat, 28 Sep 2002 18:26:50 +0000
parents b82a3eb66d60
children e5dda05f9aab
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,
7395
b82a3eb66d60 add one line
pontscho
parents: 7080
diff changeset
138 "\n" \
7527
20d408e7e346 added uhulinux url
alex
parents: 7395
diff changeset
139 "GUI development sponsored by UHU Linux\n" \
20d408e7e346 added uhulinux url
alex
parents: 7395
diff changeset
140 " (http://www.uhulinux.hu/)\n" \
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
141 "\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
142 " MPlayer core team:\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
143 "\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
144 " * Arpad Gereoffy (A'rpi/ESP-team)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
145 " * Zoltan Ponekker (Pontscho/Fresh!mindworkz)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
146 " * Gabor Berczi (Gabucino)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
147 " * Alex Beregszaszi (al3x)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
148 " * Gabor Lenart (LGB)\n" \
7080
bab8be262e97 Fix small typo noticed by Francisco Javier Cabello <fjcabello@visual-tools.com>
atmos4
parents: 6903
diff changeset
149 " * Felix Buenemann (Atmos)\n" \
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
150 " * Alban Bedel (Albeu)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
151 " * pl\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
152 " * Michael Niedermayer\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
153 "\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
154 " Additional codes:\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
155 "\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
156 " * Szabolcs Berecz (Szabi)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
157 " * Laszlo Megyer (Lez, Laaz)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
158 " * Gyula Laszlo (Chass, Tegla)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
159 " * Zoltan Mark Vician (Se7en)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
160 " * Andreas Ackermann (Acki)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
161 " * TeLeNiEkO\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
162 " * Michael Graffam\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
163 " * Jens Hoffmann\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
164 " * German Gomez Garcia\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
165 " * Dariusz Pietrzak (Eyck)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
166 " * Marcus Comstedt\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
167 " * Jurgen Keil\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
168 " * Vladimir Kushnir\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
169 " * Bertrand BAUDET\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
170 " * Derek J Witt\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
171 " * Artur Zaprzala\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
172 " * lanzz@lanzz.org\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
173 " * Adam Tla/lka\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
174 " * Folke Ashberg\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
175 " * Kamil Toman\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
176 " * Ivan Kalvatchev\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
177 " * Sven Goethel\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
178 " * joy_ping\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
179 " * Eric Anholt\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
180 " * Jiri Svoboda\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
181 " * Oliver Schoenbrunner\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
182 " * Jeroen Dobbelaere\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
183 " * David Holm\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
184 " * Panagiotis Issaris\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
185 " * Mike Melanson\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
186 " * Tobias Diedrich\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
187 " * Kilian A. Foth\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
188 " * Tim Ferguson\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
189 " * Sam Lin\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
190 " * Johannes Feigl\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
191 " * Kim Minh Kaplan\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
192 " * Brian Kuschak\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
193 " * Stephen Davies\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
194 " * Rik Snel\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
195 " * Anders Johansson\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
196 " * Roberto Togni\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
197 " * Wojtek Kaniewski\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
198 " * Fredrik Kuivinen\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
199 "\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
200 " Main testers:\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
201 "\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
202 " * Tibor Balazs (Tibcu)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
203 " * Peter Sasi (SaPe)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
204 " * Christoph H. Lampert\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
205 " * Attila Kinali\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
206 " * Dirk Vornheder\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
207 " * Bohdan Horst (Nexus)\n" \
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
208 "\n",1481 );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
209
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
210 hseparator1=gtk_hseparator_new();
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
211 gtk_widget_set_name( hseparator1,"hseparator1" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
212 gtk_widget_ref( hseparator1 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
213 gtk_object_set_data_full( GTK_OBJECT( About ),"hseparator1",hseparator1,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
214 gtk_widget_show( hseparator1 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
215 gtk_box_pack_start( GTK_BOX( vbox1 ),hseparator1,FALSE,FALSE,0 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
216 gtk_widget_set_usize( hseparator1,-2,10 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
217
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
218 hbuttonbox1=gtk_hbutton_box_new( );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
219 gtk_widget_set_name( hbuttonbox1,"hbuttonbox1" );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
220 gtk_widget_ref( hbuttonbox1 );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
221 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
222 gtk_widget_set_usize( hbuttonbox1,-2,25 );
6a4155dce92c nesze LGB beleirtalak igy ;)
pontscho
parents: 2901
diff changeset
223 gtk_button_box_set_child_size( GTK_BUTTON_BOX( hbuttonbox1 ),75,0 );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
224 gtk_widget_show( hbuttonbox1 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
225 gtk_box_pack_start( GTK_BOX( vbox1 ),hbuttonbox1,FALSE,FALSE,0 );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
226
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
227 Ok=gtk_button_new_with_label( MSGTR_Ok );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
228 gtk_widget_set_name( Ok,MSGTR_Ok );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
229 gtk_widget_ref( Ok );
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
230 gtk_object_set_data_full( GTK_OBJECT( About ),MSGTR_Ok,Ok,(GtkDestroyNotify)gtk_widget_unref );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
231 gtk_widget_show( Ok );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
232 gtk_container_add( GTK_CONTAINER( hbuttonbox1 ),Ok );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
233
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
234 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
235 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
236 gtk_signal_connect( GTK_OBJECT( About ),"hide",GTK_SIGNAL_FUNC( ab_AboutBox_show ),0 );
b9651eb9749e fix some gtk bug...
pontscho
parents: 6044
diff changeset
237 gtk_signal_connect( GTK_OBJECT( Ok ),"released",GTK_SIGNAL_FUNC( ab_Ok_released ),0 );
2901
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
238
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
239 gtk_widget_add_accelerator( Ok,"released",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
240 gtk_widget_add_accelerator( Ok,"released",accel_group,GDK_Return,0,GTK_ACCEL_VISIBLE );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
241 gtk_window_add_accel_group( GTK_WINDOW( About ),accel_group );
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
242
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
243 return About;
f77f8379f28f rewrite ...
pontscho
parents:
diff changeset
244 }