Mercurial > pidgin
comparison src/aim.c @ 621:991bf4e3c9fe
[gaim-migrate @ 631]
is dialogs.c about to hit v2.0 or 1.100? ;)
committer: Tailor Script <tailor@pidgin.im>
author | Todd Kulesza <fflewddur> |
---|---|
date | Sat, 05 Aug 2000 21:54:36 +0000 |
parents | a3e32af35b30 |
children | 7f8b85e2e894 |
comparison
equal
deleted
inserted
replaced
620:43c67e5583eb | 621:991bf4e3c9fe |
---|---|
46 #include <stdlib.h> | 46 #include <stdlib.h> |
47 #include <ctype.h> | 47 #include <ctype.h> |
48 #include "gaim.h" | 48 #include "gaim.h" |
49 #ifndef USE_APPLET | 49 #ifndef USE_APPLET |
50 #include "pixmaps/logo.xpm" | 50 #include "pixmaps/logo.xpm" |
51 #include "pixmaps/gnome_preferences.xpm" | |
52 #include "pixmaps/join.xpm" | |
53 #include "pixmaps/cancel.xpm" | |
54 #include "pixmaps/plugins.xpm" | |
55 #include "pixmaps/register.xpm" | |
51 #endif /* USE_APPLET */ | 56 #endif /* USE_APPLET */ |
52 #if HAVE_SIGNAL_H | 57 #if HAVE_SIGNAL_H |
53 #include <signal.h> | 58 #include <signal.h> |
54 #endif | 59 #endif |
55 #include "locale.h" | 60 #include "locale.h" |
324 GtkWidget *plugs; | 329 GtkWidget *plugs; |
325 #endif | 330 #endif |
326 GtkWidget *reg; | 331 GtkWidget *reg; |
327 GtkWidget *bbox; | 332 GtkWidget *bbox; |
328 GtkWidget *hbox; | 333 GtkWidget *hbox; |
334 GtkWidget *rbox; | |
329 GtkWidget *sbox; | 335 GtkWidget *sbox; |
330 GtkWidget *label; | 336 GtkWidget *label; |
331 GtkWidget *table; | 337 GtkWidget *table; |
332 GtkWidget *remember; | 338 GtkWidget *remember; |
333 | 339 |
342 gtk_widget_show(mainwindow); | 348 gtk_widget_show(mainwindow); |
343 return; | 349 return; |
344 } | 350 } |
345 | 351 |
346 mainwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 352 mainwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
347 signon = gtk_button_new_with_label(_("Signon")); | 353 gtk_widget_realize(mainwindow); |
348 cancel = gtk_button_new_with_label(_("Cancel")); | 354 signon = picture_button(mainwindow, _("Signon"), join_xpm); |
349 reg = gtk_button_new_with_label(_("Register")); | 355 cancel = picture_button(mainwindow, _("Cancel"), cancel_xpm); |
350 options = gtk_button_new_with_label(_("Options")); | 356 reg = picture_button(mainwindow, _("Create Account"), register_xpm); |
351 #ifdef GAIM_PLUGINS | 357 options = picture_button(mainwindow, _("Options"), gnome_preferences_xpm); |
352 plugs = gtk_button_new_with_label(_("Plugins")); | 358 #ifdef GAIM_PLUGINS |
359 plugs = picture_button(mainwindow, _("Plugins"), plugins_xpm); | |
353 #endif | 360 #endif |
354 table = gtk_table_new(8, 2, FALSE); | 361 table = gtk_table_new(8, 2, FALSE); |
355 name = gtk_combo_new(); | 362 name = gtk_combo_new(); |
356 pass = gtk_entry_new(); | 363 pass = gtk_entry_new(); |
357 notice = gtk_statusbar_new(); | 364 notice = gtk_statusbar_new(); |
358 progress = gtk_progress_bar_new(); | 365 progress = gtk_progress_bar_new(); |
359 | 366 |
360 gtk_combo_set_popdown_strings(GTK_COMBO(name), combo_user_names()); | 367 gtk_combo_set_popdown_strings(GTK_COMBO(name), combo_user_names()); |
361 | 368 |
362 if (display_options & OPT_DISP_COOL_LOOK) | 369 if (display_options & OPT_DISP_COOL_LOOK) |
363 { | 370 { |
364 gtk_button_set_relief(GTK_BUTTON(signon), GTK_RELIEF_NONE); | 371 gtk_button_set_relief(GTK_BUTTON(signon), GTK_RELIEF_NONE); |
365 gtk_button_set_relief(GTK_BUTTON(cancel), GTK_RELIEF_NONE); | 372 gtk_button_set_relief(GTK_BUTTON(cancel), GTK_RELIEF_NONE); |
401 gtk_signal_connect(GTK_OBJECT(mainwindow), "delete_event", | 408 gtk_signal_connect(GTK_OBJECT(mainwindow), "delete_event", |
402 GTK_SIGNAL_FUNC(cancel_logon), mainwindow); | 409 GTK_SIGNAL_FUNC(cancel_logon), mainwindow); |
403 /* Homogenous spacing, 10 padding */ | 410 /* Homogenous spacing, 10 padding */ |
404 bbox = gtk_hbox_new(TRUE, 10); | 411 bbox = gtk_hbox_new(TRUE, 10); |
405 hbox = gtk_hbox_new(TRUE, 10); | 412 hbox = gtk_hbox_new(TRUE, 10); |
406 sbox = gtk_vbox_new(TRUE, 10); | 413 rbox = gtk_hbox_new(TRUE, 10); |
407 | 414 sbox = gtk_vbox_new(TRUE, 5); |
408 gtk_box_pack_start(GTK_BOX(bbox), reg, TRUE, TRUE, 0); | 415 |
416 gtk_box_pack_start(GTK_BOX(rbox), reg, TRUE, TRUE, 0); | |
409 gtk_box_pack_start(GTK_BOX(bbox), cancel, TRUE, TRUE, 0); | 417 gtk_box_pack_start(GTK_BOX(bbox), cancel, TRUE, TRUE, 0); |
410 gtk_box_pack_start(GTK_BOX(bbox), signon, TRUE, TRUE, 0); | 418 gtk_box_pack_start(GTK_BOX(bbox), signon, TRUE, TRUE, 0); |
411 | 419 |
412 gtk_box_pack_start(GTK_BOX(hbox), options, TRUE, TRUE, 0); | 420 gtk_box_pack_start(GTK_BOX(hbox), options, TRUE, TRUE, 0); |
413 #ifdef GAIM_PLUGINS | 421 #ifdef GAIM_PLUGINS |
414 gtk_box_pack_start(GTK_BOX(hbox), plugs, TRUE, TRUE, 0); | 422 gtk_box_pack_start(GTK_BOX(hbox), plugs, TRUE, TRUE, 0); |
415 #endif | 423 #endif |
416 | 424 |
417 gtk_box_pack_start(GTK_BOX(sbox), bbox, TRUE, TRUE, 0); | 425 gtk_box_pack_start(GTK_BOX(sbox), bbox, TRUE, TRUE, 0); |
418 gtk_box_pack_start(GTK_BOX(sbox), hbox, TRUE, TRUE, 0); | 426 gtk_box_pack_start(GTK_BOX(sbox), hbox, TRUE, TRUE, 0); |
427 gtk_box_pack_start(GTK_BOX(sbox), rbox, TRUE, TRUE, 0); | |
419 | 428 |
420 /* Labels for selectors and text boxes */ | 429 /* Labels for selectors and text boxes */ |
421 #if 0 | 430 #if 0 |
422 label = gtk_label_new("TOC: "); | 431 label = gtk_label_new("TOC: "); |
423 gtk_table_attach(GTK_TABLE(table), label, 0,1,1,2,0,0, 5, 5); | 432 gtk_table_attach(GTK_TABLE(table), label, 0,1,1,2,0,0, 5, 5); |
437 #ifdef GAIM_PLUGINS | 446 #ifdef GAIM_PLUGINS |
438 gtk_widget_show(plugs); | 447 gtk_widget_show(plugs); |
439 #endif | 448 #endif |
440 | 449 |
441 /* Adjust sizes of inputs */ | 450 /* Adjust sizes of inputs */ |
442 gtk_widget_set_usize(name,95,0); | 451 gtk_widget_set_usize(name,100,0); |
443 gtk_widget_set_usize(pass,95,0); | 452 gtk_widget_set_usize(pass,100,0); |
444 | 453 |
445 | 454 |
446 /* Status and label */ | 455 /* Status and label */ |
447 gtk_widget_show(notice); | 456 gtk_widget_show(notice); |
448 | 457 |
458 gtk_widget_show(signon); | 467 gtk_widget_show(signon); |
459 gtk_widget_show(cancel); | 468 gtk_widget_show(cancel); |
460 gtk_widget_show(reg); | 469 gtk_widget_show(reg); |
461 gtk_widget_show(bbox); | 470 gtk_widget_show(bbox); |
462 gtk_widget_show(hbox); | 471 gtk_widget_show(hbox); |
472 gtk_widget_show(rbox); | |
463 gtk_widget_show(sbox); | 473 gtk_widget_show(sbox); |
464 gtk_table_attach(GTK_TABLE(table), sbox, 0,2,7,8,0,0, 5, 5); | 474 gtk_table_attach(GTK_TABLE(table), sbox, 0,2,7,8,0,0, 5, 5); |
465 | 475 |
466 /* Text fields */ | 476 /* Text fields */ |
467 | 477 |