| 628 gtk_widget_show(eedialog); |
628 gtk_widget_show(eedialog); |
| 629 } |
629 } |
| 630 |
630 |
| 631 void show_im_dialog() |
631 void show_im_dialog() |
| 632 { |
632 { |
| |
633 GtkWidget *mainbox; |
| |
634 GtkWidget *frame; |
| |
635 GtkWidget *fbox; |
| |
636 GtkWidget *bbox; |
| 633 GtkWidget *button; |
637 GtkWidget *button; |
| 634 GtkWidget *imentry; |
638 GtkWidget *imentry; |
| 635 GtkWidget *vbox; |
|
| 636 GtkWidget *ebox; |
|
| 637 GtkWidget *bbox; |
|
| 638 GtkWidget *label; |
639 GtkWidget *label; |
| 639 GtkWidget *frame; |
|
| 640 GtkWidget *fbox; |
|
| 641 |
640 |
| 642 if (!imdialog) { |
641 if (!imdialog) { |
| 643 |
642 |
| 644 imdialog = gtk_window_new(GTK_WINDOW_DIALOG); |
643 imdialog = gtk_window_new(GTK_WINDOW_DIALOG); |
| 645 gtk_window_set_wmclass(GTK_WINDOW(imdialog), "imdialog", |
644 gtk_window_set_wmclass(GTK_WINDOW(imdialog), "imdialog", |
| 646 "Gaim"); |
645 "Gaim"); |
| 647 gtk_widget_set_usize(imdialog, 255, 105); |
646 gtk_window_set_policy(GTK_WINDOW(imdialog), FALSE, TRUE, TRUE); |
| 648 gtk_container_border_width(GTK_CONTAINER(imdialog), 5); |
647 gtk_widget_realize(imdialog); |
| 649 gtk_window_set_policy(GTK_WINDOW(imdialog), FALSE, FALSE, TRUE); |
648 |
| 650 gtk_widget_show(imdialog); |
649 mainbox = gtk_vbox_new(FALSE, 5); |
| 651 |
650 gtk_container_set_border_width(GTK_CONTAINER(mainbox), 5); |
| 652 bbox = gtk_hbox_new(TRUE, 10); |
651 gtk_container_add(GTK_CONTAINER(imdialog), mainbox); |
| 653 vbox = gtk_vbox_new(FALSE, 5); |
|
| 654 ebox = gtk_hbox_new(FALSE, 2); |
|
| 655 fbox = gtk_vbox_new(TRUE, 10); |
|
| 656 |
652 |
| 657 frame = gtk_frame_new(_("Send Instant Message")); |
653 frame = gtk_frame_new(_("Send Instant Message")); |
| 658 |
654 gtk_box_pack_start(GTK_BOX(mainbox), frame, TRUE, TRUE, 0); |
| 659 imentry = gtk_entry_new(); |
655 |
| |
656 bbox = gtk_hbox_new(FALSE, 5); |
| |
657 gtk_box_pack_start(GTK_BOX(mainbox), bbox, FALSE, FALSE, 0); |
| |
658 |
| |
659 button = picture_button(imdialog, _("Cancel"), cancel_xpm); |
| |
660 gtk_box_pack_end(GTK_BOX(bbox), button, FALSE, FALSE, 0); |
| |
661 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
| |
662 GTK_SIGNAL_FUNC(destroy_dialog), imdialog); |
| 660 |
663 |
| 661 button = picture_button(imdialog, _("OK"), ok_xpm); |
664 button = picture_button(imdialog, _("OK"), ok_xpm); |
| 662 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); |
665 gtk_box_pack_end(GTK_BOX(bbox), button, FALSE, FALSE, 0); |
| 663 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
666 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
| 664 GTK_SIGNAL_FUNC(do_im), imentry); |
667 GTK_SIGNAL_FUNC(do_im), imentry); |
| 665 |
668 |
| 666 button = picture_button(imdialog, _("Cancel"), cancel_xpm); |
669 fbox = gtk_hbox_new(FALSE, 5); |
| 667 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); |
670 gtk_container_set_border_width(GTK_CONTAINER(fbox), 5); |
| 668 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
671 gtk_container_add(GTK_CONTAINER(frame), fbox); |
| 669 GTK_SIGNAL_FUNC(destroy_dialog), imdialog); |
|
| 670 |
672 |
| 671 label = gtk_label_new(_("IM who:")); |
673 label = gtk_label_new(_("IM who:")); |
| 672 gtk_box_pack_start(GTK_BOX(ebox), label, TRUE, TRUE, 10); |
674 gtk_box_pack_start(GTK_BOX(fbox), label, FALSE, FALSE, 0); |
| 673 gtk_widget_show(label); |
675 |
| 674 |
676 imentry = gtk_entry_new(); |
| 675 gtk_box_pack_start(GTK_BOX(ebox), imentry, TRUE, TRUE, 10); |
677 gtk_box_pack_start(GTK_BOX(fbox), imentry, TRUE, TRUE, 0); |
| 676 |
|
| 677 gtk_box_pack_start(GTK_BOX(vbox), ebox, FALSE, FALSE, 5); |
|
| 678 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 5); |
|
| 679 |
678 |
| 680 /* Handle closes right */ |
679 /* Handle closes right */ |
| 681 gtk_signal_connect(GTK_OBJECT(imentry), "activate", |
680 gtk_signal_connect(GTK_OBJECT(imentry), "activate", |
| 682 GTK_SIGNAL_FUNC(do_im), imentry); |
681 GTK_SIGNAL_FUNC(do_im), imentry); |
| 683 gtk_signal_connect(GTK_OBJECT(imdialog), "destroy", |
682 gtk_signal_connect(GTK_OBJECT(imdialog), "destroy", |
| 684 GTK_SIGNAL_FUNC(destroy_dialog), imdialog); |
683 GTK_SIGNAL_FUNC(destroy_dialog), imdialog); |
| 685 |
684 |
| 686 /* Finish up */ |
685 /* Finish up */ |
| 687 gtk_widget_show(ebox); |
|
| 688 gtk_widget_show(imentry); |
|
| 689 gtk_widget_show(bbox); |
|
| 690 gtk_widget_show(vbox); |
|
| 691 gtk_widget_show(fbox); |
|
| 692 gtk_widget_show(frame); |
|
| 693 gtk_container_add(GTK_CONTAINER(frame), vbox); |
|
| 694 gtk_box_pack_start(GTK_BOX(fbox), frame, FALSE, FALSE, 5); |
|
| 695 gtk_window_set_title(GTK_WINDOW(imdialog), _("Gaim - IM user")); |
686 gtk_window_set_title(GTK_WINDOW(imdialog), _("Gaim - IM user")); |
| 696 gtk_container_add(GTK_CONTAINER(imdialog), fbox); |
|
| 697 gtk_widget_grab_focus(imentry); |
687 gtk_widget_grab_focus(imentry); |
| 698 gtk_widget_realize(imdialog); |
|
| 699 |
688 |
| 700 aol_icon(imdialog->window); |
689 aol_icon(imdialog->window); |
| 701 |
|
| 702 } |
690 } |
| 703 gtk_widget_show(imdialog); |
691 gtk_widget_show_all(imdialog); |
| 704 } |
692 } |
| 705 |
693 |
| 706 void show_info_dialog() |
694 void show_info_dialog() |
| 707 { |
695 { |
| |
696 GtkWidget *mainbox; |
| |
697 GtkWidget *frame; |
| |
698 GtkWidget *fbox; |
| |
699 GtkWidget *bbox; |
| 708 GtkWidget *button; |
700 GtkWidget *button; |
| 709 GtkWidget *infoentry; |
701 GtkWidget *infoentry; |
| 710 GtkWidget *vbox; |
|
| 711 GtkWidget *ebox; |
|
| 712 GtkWidget *bbox; |
|
| 713 GtkWidget *label; |
702 GtkWidget *label; |
| 714 GtkWidget *frame; |
|
| 715 GtkWidget *fbox; |
|
| 716 |
703 |
| 717 if (!infodialog) { |
704 if (!infodialog) { |
| 718 |
705 |
| 719 infodialog = gtk_window_new(GTK_WINDOW_DIALOG); |
706 infodialog = gtk_window_new(GTK_WINDOW_DIALOG); |
| 720 gtk_window_set_wmclass(GTK_WINDOW(infodialog), "infodialog", |
707 gtk_window_set_wmclass(GTK_WINDOW(infodialog), "infodialog", |
| 721 "Gaim"); |
708 "Gaim"); |
| 722 gtk_widget_set_usize(infodialog, 255, 105); |
709 gtk_window_set_policy(GTK_WINDOW(infodialog), FALSE, TRUE, TRUE); |
| 723 gtk_container_border_width(GTK_CONTAINER(infodialog), 5); |
710 gtk_widget_realize(infodialog); |
| 724 gtk_window_set_policy(GTK_WINDOW(infodialog), FALSE, FALSE, TRUE); |
711 |
| 725 gtk_widget_show(infodialog); |
712 mainbox = gtk_vbox_new(FALSE, 5); |
| 726 |
713 gtk_container_set_border_width(GTK_CONTAINER(mainbox), 5); |
| 727 bbox = gtk_hbox_new(TRUE, 10); |
714 gtk_container_add(GTK_CONTAINER(infodialog), mainbox); |
| 728 vbox = gtk_vbox_new(FALSE, 5); |
|
| 729 ebox = gtk_hbox_new(FALSE, 2); |
|
| 730 fbox = gtk_vbox_new(TRUE, 10); |
|
| 731 |
715 |
| 732 frame = gtk_frame_new(_("Get User Info")); |
716 frame = gtk_frame_new(_("Get User Info")); |
| 733 |
717 gtk_box_pack_start(GTK_BOX(mainbox), frame, TRUE, TRUE, 0); |
| 734 infoentry = gtk_entry_new(); |
718 |
| |
719 bbox = gtk_hbox_new(FALSE, 5); |
| |
720 gtk_box_pack_start(GTK_BOX(mainbox), bbox, FALSE, FALSE, 0); |
| |
721 |
| |
722 button = picture_button(infodialog, _("Cancel"), cancel_xpm); |
| |
723 gtk_box_pack_end(GTK_BOX(bbox), button, FALSE, FALSE, 0); |
| |
724 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
| |
725 GTK_SIGNAL_FUNC(destroy_dialog), infodialog); |
| 735 |
726 |
| 736 button = picture_button(infodialog, _("OK"), ok_xpm); |
727 button = picture_button(infodialog, _("OK"), ok_xpm); |
| 737 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); |
728 gtk_box_pack_end(GTK_BOX(bbox), button, FALSE, FALSE, 0); |
| 738 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
729 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
| 739 GTK_SIGNAL_FUNC(do_info), infoentry); |
730 GTK_SIGNAL_FUNC(do_info), infoentry); |
| 740 |
731 |
| 741 button = picture_button(infodialog, _("Cancel"), cancel_xpm); |
732 fbox = gtk_hbox_new(FALSE, 5); |
| 742 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 5); |
733 gtk_container_set_border_width(GTK_CONTAINER(fbox), 5); |
| 743 gtk_signal_connect(GTK_OBJECT(button), "clicked", |
734 gtk_container_add(GTK_CONTAINER(frame), fbox); |
| 744 GTK_SIGNAL_FUNC(destroy_dialog), infodialog); |
|
| 745 |
735 |
| 746 label = gtk_label_new(_("User:")); |
736 label = gtk_label_new(_("User:")); |
| 747 gtk_box_pack_start(GTK_BOX(ebox), label, TRUE, TRUE, 10); |
737 gtk_box_pack_start(GTK_BOX(fbox), label, FALSE, FALSE, 0); |
| 748 gtk_widget_show(label); |
738 gtk_widget_show(label); |
| 749 |
739 |
| 750 gtk_box_pack_start(GTK_BOX(ebox), infoentry, TRUE, TRUE, 10); |
740 infoentry = gtk_entry_new(); |
| 751 |
741 gtk_box_pack_start(GTK_BOX(fbox), infoentry, TRUE, TRUE, 10); |
| 752 gtk_box_pack_start(GTK_BOX(vbox), ebox, FALSE, FALSE, 5); |
|
| 753 gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 5); |
|
| 754 |
742 |
| 755 /* Handle closes right */ |
743 /* Handle closes right */ |
| 756 gtk_signal_connect(GTK_OBJECT(infoentry), "activate", |
744 gtk_signal_connect(GTK_OBJECT(infoentry), "activate", |
| 757 GTK_SIGNAL_FUNC(do_info), infoentry); |
745 GTK_SIGNAL_FUNC(do_info), infoentry); |
| 758 gtk_signal_connect(GTK_OBJECT(infodialog), "destroy", |
746 gtk_signal_connect(GTK_OBJECT(infodialog), "destroy", |
| 759 GTK_SIGNAL_FUNC(destroy_dialog), infodialog); |
747 GTK_SIGNAL_FUNC(destroy_dialog), infodialog); |
| 760 |
748 |
| 761 /* Finish up */ |
749 /* Finish up */ |
| 762 gtk_widget_show(ebox); |
|
| 763 gtk_widget_show(infoentry); |
|
| 764 gtk_widget_show(bbox); |
|
| 765 gtk_widget_show(vbox); |
|
| 766 gtk_widget_show(fbox); |
|
| 767 gtk_widget_show(frame); |
|
| 768 gtk_container_add(GTK_CONTAINER(frame), vbox); |
|
| 769 gtk_box_pack_start(GTK_BOX(fbox), frame, FALSE, FALSE, 5); |
|
| 770 gtk_window_set_title(GTK_WINDOW(infodialog), _("Gaim - Get User Info")); |
750 gtk_window_set_title(GTK_WINDOW(infodialog), _("Gaim - Get User Info")); |
| 771 gtk_container_add(GTK_CONTAINER(infodialog), fbox); |
|
| 772 gtk_widget_grab_focus(infoentry); |
751 gtk_widget_grab_focus(infoentry); |
| 773 gtk_widget_realize(infodialog); |
|
| 774 |
752 |
| 775 aol_icon(infodialog->window); |
753 aol_icon(infodialog->window); |
| 776 |
|
| 777 } |
754 } |
| 778 gtk_widget_show(infodialog); |
755 gtk_widget_show_all(infodialog); |
| 779 } |
756 } |
| 780 |
757 |
| 781 |
758 |
| 782 /*------------------------------------------------------------------------*/ |
759 /*------------------------------------------------------------------------*/ |
| 783 /* The dialog for adding buddies */ |
760 /* The dialog for adding buddies */ |
| 936 gtk_widget_show(a->window); |
913 gtk_widget_show(a->window); |
| 937 } |
914 } |
| 938 |
915 |
| 939 void show_add_buddy(struct gaim_connection *gc, char *buddy, char *group) |
916 void show_add_buddy(struct gaim_connection *gc, char *buddy, char *group) |
| 940 { |
917 { |
| |
918 GtkWidget *mainbox; |
| |
919 GtkWidget *frame; |
| |
920 GtkWidget *table; |
| |
921 GtkWidget *bbox; |
| 941 GtkWidget *cancel; |
922 GtkWidget *cancel; |
| 942 GtkWidget *add; |
923 GtkWidget *add; |
| 943 GtkWidget *label; |
924 GtkWidget *label; |
| 944 GtkWidget *bbox; |
|
| 945 GtkWidget *vbox; |
|
| 946 GtkWidget *topbox; |
|
| 947 GtkWidget *topbox1; |
|
| 948 GtkWidget *topbox2; |
|
| 949 GtkWidget *frame; |
|
| 950 |
925 |
| 951 struct addbuddy *a = g_new0(struct addbuddy, 1); |
926 struct addbuddy *a = g_new0(struct addbuddy, 1); |
| 952 a->gc = gc; |
927 a->gc = gc; |
| 953 |
928 |
| 954 a->window = gtk_window_new(GTK_WINDOW_DIALOG); |
929 a->window = gtk_window_new(GTK_WINDOW_DIALOG); |
| 955 gtk_window_set_wmclass(GTK_WINDOW(a->window), "add_buddy", "Gaim"); |
930 gtk_window_set_wmclass(GTK_WINDOW(a->window), "add_buddy", "Gaim"); |
| 956 gtk_window_set_policy(GTK_WINDOW(a->window), FALSE, FALSE, TRUE); |
931 gtk_window_set_policy(GTK_WINDOW(a->window), FALSE, FALSE, TRUE); |
| 957 gtk_window_set_title(GTK_WINDOW(a->window), _("Gaim - Add Buddy")); |
932 gtk_window_set_title(GTK_WINDOW(a->window), _("Gaim - Add Buddy")); |
| 958 gtk_container_set_border_width(GTK_CONTAINER(a->window), 5); |
933 |
| 959 gtk_widget_realize(a->window); |
934 gtk_widget_realize(a->window); |
| 960 aol_icon(a->window->window); |
935 aol_icon(a->window->window); |
| 961 gtk_signal_connect(GTK_OBJECT(a->window), "destroy", |
936 gtk_signal_connect(GTK_OBJECT(a->window), "destroy", |
| 962 GTK_SIGNAL_FUNC(destroy_dialog), a->window); |
937 GTK_SIGNAL_FUNC(destroy_dialog), a->window); |
| 963 gtk_signal_connect(GTK_OBJECT(a->window), "destroy", |
938 gtk_signal_connect(GTK_OBJECT(a->window), "destroy", |
| 964 GTK_SIGNAL_FUNC(free_dialog), a); |
939 GTK_SIGNAL_FUNC(free_dialog), a); |
| 965 dialogwindows = g_list_prepend(dialogwindows, a->window); |
940 dialogwindows = g_list_prepend(dialogwindows, a->window); |
| 966 |
941 |
| |
942 mainbox = gtk_vbox_new(FALSE, 5); |
| |
943 gtk_container_set_border_width(GTK_CONTAINER(mainbox), 5); |
| |
944 gtk_container_add(GTK_CONTAINER(a->window), mainbox); |
| |
945 |
| 967 frame = gtk_frame_new(_("Add Buddy")); |
946 frame = gtk_frame_new(_("Add Buddy")); |
| 968 gtk_container_add(GTK_CONTAINER(a->window), frame); |
947 gtk_box_pack_start(GTK_BOX(mainbox), frame, TRUE, TRUE, 0); |
| 969 gtk_widget_show(frame); |
948 gtk_widget_show(frame); |
| 970 |
949 |
| 971 vbox = gtk_vbox_new(FALSE, 5); |
950 table = gtk_table_new(3, 2, FALSE); |
| 972 gtk_container_add(GTK_CONTAINER(frame), vbox); |
951 gtk_table_set_row_spacings(GTK_TABLE(table), 5); |
| 973 gtk_widget_show(vbox); |
952 gtk_table_set_col_spacings(GTK_TABLE(table), 5); |
| 974 |
953 gtk_container_set_border_width(GTK_CONTAINER(table), 5); |
| 975 topbox = gtk_hbox_new(FALSE, 5); |
954 gtk_container_add(GTK_CONTAINER(frame), table); |
| 976 gtk_box_pack_start(GTK_BOX(vbox), topbox, TRUE, TRUE, 5); |
|
| 977 gtk_widget_show(topbox); |
|
| 978 |
955 |
| 979 label = gtk_label_new(_("Buddy")); |
956 label = gtk_label_new(_("Buddy")); |
| 980 gtk_box_pack_start(GTK_BOX(topbox), label, FALSE, FALSE, 5); |
957 gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1); |
| 981 gtk_widget_show(label); |
|
| 982 |
958 |
| 983 a->entry = gtk_entry_new(); |
959 a->entry = gtk_entry_new(); |
| 984 gtk_box_pack_end(GTK_BOX(topbox), a->entry, FALSE, FALSE, 5); |
960 gtk_table_attach_defaults(GTK_TABLE(table), a->entry, 1, 2, 0, 1); |
| 985 gtk_window_set_focus(GTK_WINDOW(a->window), a->entry); |
961 gtk_window_set_focus(GTK_WINDOW(a->window), a->entry); |
| 986 if (buddy != NULL) |
962 if (buddy != NULL) |
| 987 gtk_entry_set_text(GTK_ENTRY(a->entry), buddy); |
963 gtk_entry_set_text(GTK_ENTRY(a->entry), buddy); |
| 988 gtk_signal_connect(GTK_OBJECT(a->entry), "activate", |
964 gtk_signal_connect(GTK_OBJECT(a->entry), "activate", |
| 989 GTK_SIGNAL_FUNC(do_add_buddy), a); |
965 GTK_SIGNAL_FUNC(do_add_buddy), a); |
| 990 gtk_widget_show(a->entry); |
|
| 991 |
|
| 992 topbox1 = gtk_hbox_new(FALSE, 5); |
|
| 993 gtk_box_pack_start(GTK_BOX(vbox), topbox1, TRUE, TRUE, 5); |
|
| 994 gtk_widget_show(topbox1); |
|
| 995 |
966 |
| 996 label = gtk_label_new(_("Alias")); |
967 label = gtk_label_new(_("Alias")); |
| 997 gtk_box_pack_start(GTK_BOX(topbox1), label, FALSE, FALSE, 5); |
968 gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 1, 2); |
| 998 gtk_widget_show(label); |
|
| 999 |
969 |
| 1000 a->entry_for_alias = gtk_entry_new(); |
970 a->entry_for_alias = gtk_entry_new(); |
| 1001 gtk_box_pack_end(GTK_BOX(topbox1), a->entry_for_alias, FALSE, FALSE, 5); |
971 gtk_table_attach_defaults(GTK_TABLE(table), a->entry_for_alias, 1, 2, 1, 2); |
| 1002 gtk_widget_show(a->entry_for_alias); |
|
| 1003 |
|
| 1004 topbox2 = gtk_hbox_new(FALSE, 5); |
|
| 1005 gtk_box_pack_start(GTK_BOX(vbox), topbox2, TRUE, TRUE, 5); |
|
| 1006 gtk_widget_show(topbox2); |
|
| 1007 |
972 |
| 1008 label = gtk_label_new(_("Group")); |
973 label = gtk_label_new(_("Group")); |
| 1009 gtk_box_pack_start(GTK_BOX(topbox2), label, FALSE, FALSE, 5); |
974 gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 2, 3); |
| 1010 gtk_widget_show(label); |
|
| 1011 |
975 |
| 1012 a->combo = gtk_combo_new(); |
976 a->combo = gtk_combo_new(); |
| 1013 gtk_combo_set_popdown_strings(GTK_COMBO(a->combo), groups_tree(gc ? gc : connections->data)); |
977 gtk_combo_set_popdown_strings(GTK_COMBO(a->combo), |
| |
978 groups_tree(gc ? gc : connections->data)); |
| 1014 if (group != NULL) |
979 if (group != NULL) |
| 1015 gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(a->combo)->entry), group); |
980 gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(a->combo)->entry), group); |
| 1016 gtk_box_pack_end(GTK_BOX(topbox2), a->combo, FALSE, FALSE, 5); |
981 gtk_table_attach_defaults(GTK_TABLE(table), a->combo, 1, 2, 2, 3); |
| 1017 gtk_widget_show(a->combo); |
982 |
| 1018 |
983 bbox = gtk_hbox_new(FALSE, 5); |
| 1019 bbox = gtk_hbox_new(TRUE, 10); |
984 gtk_box_pack_start(GTK_BOX(mainbox), bbox, TRUE, TRUE, 0); |
| 1020 gtk_box_pack_start(GTK_BOX(vbox), bbox, TRUE, TRUE, 5); |
985 |
| 1021 gtk_widget_show(bbox); |
986 cancel = picture_button(a->window, _("Cancel"), cancel_xpm); |
| |
987 gtk_box_pack_end(GTK_BOX(bbox), cancel, FALSE, FALSE, 0); |
| |
988 gtk_signal_connect(GTK_OBJECT(cancel), "clicked", |
| |
989 GTK_SIGNAL_FUNC(destroy_dialog), a->window); |
| 1022 |
990 |
| 1023 add = picture_button(a->window, _("Add"), add_xpm); |
991 add = picture_button(a->window, _("Add"), add_xpm); |
| 1024 gtk_box_pack_start(GTK_BOX(bbox), add, FALSE, FALSE, 5); |
992 gtk_box_pack_end(GTK_BOX(bbox), add, FALSE, FALSE, 0); |
| 1025 gtk_signal_connect(GTK_OBJECT(add), "clicked", |
993 gtk_signal_connect(GTK_OBJECT(add), "clicked", |
| 1026 GTK_SIGNAL_FUNC(do_add_buddy), a); |
994 GTK_SIGNAL_FUNC(do_add_buddy), a); |
| 1027 gtk_widget_show(add); |
995 |
| 1028 |
996 gtk_widget_show_all(a->window); |
| 1029 cancel = picture_button(a->window, _("Cancel"), cancel_xpm); |
|
| 1030 gtk_box_pack_end(GTK_BOX(bbox), cancel, FALSE, FALSE, 5); |
|
| 1031 gtk_signal_connect(GTK_OBJECT(cancel), "clicked", |
|
| 1032 GTK_SIGNAL_FUNC(destroy_dialog), a->window); |
|
| 1033 gtk_widget_show(cancel); |
|
| 1034 |
|
| 1035 gtk_widget_show(a->window); |
|
| 1036 } |
997 } |
| 1037 |
998 |
| 1038 |
999 |
| 1039 /*------------------------------------------------------------------------*/ |
1000 /*------------------------------------------------------------------------*/ |
| 1040 /* The dialog for new buddy pounces */ |
1001 /* The dialog for new buddy pounces */ |