| 167 |
169 |
| 168 /* Let's give'em something to talk about -- woah woah woah */ |
170 /* Let's give'em something to talk about -- woah woah woah */ |
| 169 gtk_widget_show_all(about); |
171 gtk_widget_show_all(about); |
| 170 |
172 |
| 171 } |
173 } |
| |
174 |
| |
175 static void destroy_help() |
| |
176 { |
| |
177 if (help) |
| |
178 gtk_widget_destroy(help); |
| |
179 help = NULL; |
| |
180 } |
| |
181 |
| |
182 void gaim_help(GtkWidget *w, void *x) |
| |
183 { |
| |
184 GtkWidget *vbox; |
| |
185 GdkPixmap *pm; |
| |
186 GdkBitmap *bm; |
| |
187 GtkWidget *pix; |
| |
188 GtkWidget *label; |
| |
189 GtkWidget *hbox; |
| |
190 GtkWidget *close; |
| |
191 |
| |
192 if (!help) { |
| |
193 |
| |
194 help = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
| |
195 gtk_window_set_title(GTK_WINDOW(help), "Gaim Help"); |
| |
196 gtk_window_set_wmclass(GTK_WINDOW(help), "help", "Gaim"); |
| |
197 gtk_window_set_policy(GTK_WINDOW(help), FALSE, TRUE, TRUE); |
| |
198 gtk_widget_realize(help); |
| |
199 aol_icon(help->window); |
| |
200 gtk_signal_connect(GTK_OBJECT(help), "destroy", |
| |
201 GTK_SIGNAL_FUNC(destroy_help), GTK_OBJECT(help)); |
| |
202 gtk_widget_set_usize(help, 240, -1); |
| |
203 |
| |
204 vbox = gtk_vbox_new(FALSE, 10); |
| |
205 gtk_container_add(GTK_CONTAINER(help), vbox); |
| |
206 |
| |
207 hbox = gtk_hbox_new(FALSE, 10); |
| |
208 gtk_box_pack_end(GTK_BOX(vbox), hbox, FALSE, FALSE, 5); |
| |
209 |
| |
210 close = picture_button(help, _("Close"), cancel_xpm); |
| |
211 gtk_box_pack_end(GTK_BOX(hbox), close, FALSE, FALSE, 5); |
| |
212 gtk_signal_connect(GTK_OBJECT(close), "clicked", |
| |
213 GTK_SIGNAL_FUNC(destroy_help), NULL); |
| |
214 |
| |
215 pm = gdk_pixmap_create_from_xpm_d(help->window, &bm, NULL, panic_xpm); |
| |
216 pix = gtk_pixmap_new(pm, bm); |
| |
217 gdk_pixmap_unref(pm); |
| |
218 gdk_bitmap_unref(bm); |
| |
219 gtk_box_pack_start(GTK_BOX(vbox), pix, FALSE, FALSE, 5); |
| |
220 |
| |
221 label = gtk_label_new(_("Relax, help is just around the corner. " |
| |
222 "The first thing you'll need to do is get an AIM " |
| |
223 "account; you can get one from http://aim.aol.com/. " |
| |
224 "Just click the button that says \"New Users\" and " |
| |
225 "you can create an account that way. Once you have " |
| |
226 "your account, enter the username and password into " |
| |
227 "the login window that comes up when you start Gaim, " |
| |
228 "and click the Signon button. Once you're online, " |
| |
229 "you can talk to one of the Gaim developers for more " |
| |
230 "assistance; their contact information is in the " |
| |
231 "AUTHORS file in the Gaim source, or at " |
| |
232 WEBSITE "contact.shtml. If you can't get online and " |
| |
233 "still need more assistance, feel free to email us " |
| |
234 "at gaim@marko.net. Thanks for using Gaim!")); |
| |
235 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); |
| |
236 gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); |
| |
237 gtk_box_pack_end(GTK_BOX(vbox), label, FALSE, FALSE, 5); |
| |
238 } |
| |
239 |
| |
240 gtk_widget_show_all(help); |
| |
241 } |