comparison src/aim.c @ 622:7f8b85e2e894

[gaim-migrate @ 632] Let's go back to this until I figure out what I want to do with the user interface. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Sun, 06 Aug 2000 03:35:17 +0000
parents 991bf4e3c9fe
children 83b0caceea9a
comparison
equal deleted inserted replaced
621:991bf4e3c9fe 622:7f8b85e2e894
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"
56 #endif /* USE_APPLET */ 51 #endif /* USE_APPLET */
57 #if HAVE_SIGNAL_H 52 #if HAVE_SIGNAL_H
58 #include <signal.h> 53 #include <signal.h>
59 #endif 54 #endif
60 #include "locale.h" 55 #include "locale.h"
329 GtkWidget *plugs; 324 GtkWidget *plugs;
330 #endif 325 #endif
331 GtkWidget *reg; 326 GtkWidget *reg;
332 GtkWidget *bbox; 327 GtkWidget *bbox;
333 GtkWidget *hbox; 328 GtkWidget *hbox;
334 GtkWidget *rbox;
335 GtkWidget *sbox; 329 GtkWidget *sbox;
336 GtkWidget *label; 330 GtkWidget *label;
337 GtkWidget *table; 331 GtkWidget *table;
338 GtkWidget *remember; 332 GtkWidget *remember;
339 333
349 return; 343 return;
350 } 344 }
351 345
352 mainwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL); 346 mainwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
353 gtk_widget_realize(mainwindow); 347 gtk_widget_realize(mainwindow);
354 signon = picture_button(mainwindow, _("Signon"), join_xpm); 348 signon = gtk_button_new_with_label(_("Signon"));
355 cancel = picture_button(mainwindow, _("Cancel"), cancel_xpm); 349 cancel = gtk_button_new_with_label(_("Cancel"));
356 reg = picture_button(mainwindow, _("Create Account"), register_xpm); 350 reg = gtk_button_new_with_label(_("Register"));
357 options = picture_button(mainwindow, _("Options"), gnome_preferences_xpm); 351 options = gtk_button_new_with_label(_("Options"));
358 #ifdef GAIM_PLUGINS 352 #ifdef GAIM_PLUGINS
359 plugs = picture_button(mainwindow, _("Plugins"), plugins_xpm); 353 plugs = gtk_button_new_with_label(_("Plugins"));
360 #endif 354 #endif
361 table = gtk_table_new(8, 2, FALSE); 355 table = gtk_table_new(8, 2, FALSE);
362 name = gtk_combo_new(); 356 name = gtk_combo_new();
363 pass = gtk_entry_new(); 357 pass = gtk_entry_new();
364 notice = gtk_statusbar_new(); 358 notice = gtk_statusbar_new();
408 gtk_signal_connect(GTK_OBJECT(mainwindow), "delete_event", 402 gtk_signal_connect(GTK_OBJECT(mainwindow), "delete_event",
409 GTK_SIGNAL_FUNC(cancel_logon), mainwindow); 403 GTK_SIGNAL_FUNC(cancel_logon), mainwindow);
410 /* Homogenous spacing, 10 padding */ 404 /* Homogenous spacing, 10 padding */
411 bbox = gtk_hbox_new(TRUE, 10); 405 bbox = gtk_hbox_new(TRUE, 10);
412 hbox = gtk_hbox_new(TRUE, 10); 406 hbox = gtk_hbox_new(TRUE, 10);
413 rbox = gtk_hbox_new(TRUE, 10);
414 sbox = gtk_vbox_new(TRUE, 5); 407 sbox = gtk_vbox_new(TRUE, 5);
415 408
416 gtk_box_pack_start(GTK_BOX(rbox), reg, TRUE, TRUE, 0); 409 gtk_box_pack_start(GTK_BOX(bbox), reg, TRUE, TRUE, 0);
417 gtk_box_pack_start(GTK_BOX(bbox), cancel, TRUE, TRUE, 0); 410 gtk_box_pack_start(GTK_BOX(bbox), cancel, TRUE, TRUE, 0);
418 gtk_box_pack_start(GTK_BOX(bbox), signon, TRUE, TRUE, 0); 411 gtk_box_pack_start(GTK_BOX(bbox), signon, TRUE, TRUE, 0);
419 412
420 gtk_box_pack_start(GTK_BOX(hbox), options, TRUE, TRUE, 0); 413 gtk_box_pack_start(GTK_BOX(hbox), options, TRUE, TRUE, 0);
421 #ifdef GAIM_PLUGINS 414 #ifdef GAIM_PLUGINS
422 gtk_box_pack_start(GTK_BOX(hbox), plugs, TRUE, TRUE, 0); 415 gtk_box_pack_start(GTK_BOX(hbox), plugs, TRUE, TRUE, 0);
423 #endif 416 #endif
424 417
425 gtk_box_pack_start(GTK_BOX(sbox), bbox, TRUE, TRUE, 0); 418 gtk_box_pack_start(GTK_BOX(sbox), bbox, TRUE, TRUE, 0);
426 gtk_box_pack_start(GTK_BOX(sbox), hbox, TRUE, TRUE, 0); 419 gtk_box_pack_start(GTK_BOX(sbox), hbox, TRUE, TRUE, 0);
427 gtk_box_pack_start(GTK_BOX(sbox), rbox, TRUE, TRUE, 0);
428 420
429 /* Labels for selectors and text boxes */ 421 /* Labels for selectors and text boxes */
430 #if 0 422 #if 0
431 label = gtk_label_new("TOC: "); 423 label = gtk_label_new("TOC: ");
432 gtk_table_attach(GTK_TABLE(table), label, 0,1,1,2,0,0, 5, 5); 424 gtk_table_attach(GTK_TABLE(table), label, 0,1,1,2,0,0, 5, 5);
467 gtk_widget_show(signon); 459 gtk_widget_show(signon);
468 gtk_widget_show(cancel); 460 gtk_widget_show(cancel);
469 gtk_widget_show(reg); 461 gtk_widget_show(reg);
470 gtk_widget_show(bbox); 462 gtk_widget_show(bbox);
471 gtk_widget_show(hbox); 463 gtk_widget_show(hbox);
472 gtk_widget_show(rbox);
473 gtk_widget_show(sbox); 464 gtk_widget_show(sbox);
474 gtk_table_attach(GTK_TABLE(table), sbox, 0,2,7,8,0,0, 5, 5); 465 gtk_table_attach(GTK_TABLE(table), sbox, 0,2,7,8,0,0, 5, 5);
475 466
476 /* Text fields */ 467 /* Text fields */
477 468