| 737 cancel = gtk_button_new_with_label("Cancel"); |
737 cancel = gtk_button_new_with_label("Cancel"); |
| 738 add = gtk_button_new_with_label("Add"); |
738 add = gtk_button_new_with_label("Add"); |
| 739 bbox = gtk_hbox_new(TRUE, 10); |
739 bbox = gtk_hbox_new(TRUE, 10); |
| 740 topbox = gtk_hbox_new(FALSE, 5); |
740 topbox = gtk_hbox_new(FALSE, 5); |
| 741 vbox = gtk_vbox_new(FALSE, 5); |
741 vbox = gtk_vbox_new(FALSE, 5); |
| |
742 |
| 742 a->entry = gtk_entry_new(); |
743 a->entry = gtk_entry_new(); |
| 743 a->combo = gtk_combo_new(); |
744 a->combo = gtk_combo_new(); |
| 744 /* Fix the combo box */ |
745 /* Fix the combo box */ |
| 745 gtk_combo_set_popdown_strings(GTK_COMBO(a->combo), groups_tree()); |
746 gtk_combo_set_popdown_strings(GTK_COMBO(a->combo), groups_tree()); |
| 746 /* Put the buttons in the box */ |
747 /* Put the buttons in the box */ |
| 788 gtk_widget_show(bbox); |
789 gtk_widget_show(bbox); |
| 789 gtk_widget_show(vbox); |
790 gtk_widget_show(vbox); |
| 790 gtk_widget_show(frame); |
791 gtk_widget_show(frame); |
| 791 gtk_window_set_title(GTK_WINDOW(a->window), "Gaim - Add Buddy"); |
792 gtk_window_set_title(GTK_WINDOW(a->window), "Gaim - Add Buddy"); |
| 792 gtk_window_set_focus(GTK_WINDOW(a->window), a->entry); |
793 gtk_window_set_focus(GTK_WINDOW(a->window), a->entry); |
| 793 gtk_container_add(GTK_CONTAINER(frame), vbox); |
794 gtk_container_add(GTK_CONTAINER(frame), topbox); |
| |
795 gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 5); |
| |
796 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 5); |
| 794 gtk_container_add(GTK_CONTAINER(a->window), frame); |
797 gtk_container_add(GTK_CONTAINER(a->window), frame); |
| 795 gtk_container_set_border_width(GTK_CONTAINER(a->window), 5); |
798 gtk_container_set_border_width(GTK_CONTAINER(a->window), 5); |
| 796 gtk_widget_realize(a->window); |
799 gtk_widget_realize(a->window); |
| 797 aol_icon(a->window->window); |
800 aol_icon(a->window->window); |
| 798 |
801 |