Mercurial > pidgin.yaz
comparison src/dialogs.c @ 4142:b45a29ad4e14
[gaim-migrate @ 4360]
Ari Pollak (sourceo): " This cleans up dialogs.c, fixes a warning on gaim exit
when the File->New Message dialog has been opened, and made the dialogs a bit
more consistent"
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 26 Dec 2002 00:15:43 +0000 |
parents | 6b2d0ce7fb18 |
children | d3c8d2b40494 |
comparison
equal
deleted
inserted
replaced
4141:ccec4fde84f4 | 4142:b45a29ad4e14 |
---|---|
686 g_free(filename); | 686 g_free(filename); |
687 | 687 |
688 if (!imdialog) { | 688 if (!imdialog) { |
689 info = g_new0(struct getuserinfo, 1); | 689 info = g_new0(struct getuserinfo, 1); |
690 info->gc = connections->data; | 690 info->gc = connections->data; |
691 imdialog = gtk_dialog_new_with_buttons("", NULL, GTK_DIALOG_MODAL, | 691 imdialog = gtk_dialog_new_with_buttons("Gaim - New Message", blist ? GTK_WINDOW(blist) : NULL, GTK_DIALOG_MODAL, |
692 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); | 692 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); |
693 gtk_dialog_set_default_response (GTK_DIALOG(imdialog), GTK_RESPONSE_OK); | 693 gtk_dialog_set_default_response (GTK_DIALOG(imdialog), GTK_RESPONSE_OK); |
694 gtk_container_set_border_width (GTK_CONTAINER(imdialog), 6); | 694 gtk_container_set_border_width (GTK_CONTAINER(imdialog), 6); |
695 gtk_window_set_resizable(GTK_WINDOW(imdialog), FALSE); | 695 gtk_window_set_resizable(GTK_WINDOW(imdialog), FALSE); |
696 gtk_dialog_set_has_separator(GTK_DIALOG(imdialog), FALSE); | 696 gtk_dialog_set_has_separator(GTK_DIALOG(imdialog), FALSE); |
762 | 762 |
763 gtk_option_menu_set_menu(GTK_OPTION_MENU(info->account), menu); | 763 gtk_option_menu_set_menu(GTK_OPTION_MENU(info->account), menu); |
764 } | 764 } |
765 | 765 |
766 g_signal_connect(G_OBJECT(imdialog), "response", G_CALLBACK(do_im), info); | 766 g_signal_connect(G_OBJECT(imdialog), "response", G_CALLBACK(do_im), info); |
767 | |
768 dialogwindows = g_list_prepend(dialogwindows, imdialog->window); | |
769 } | 767 } |
770 | 768 |
771 gtk_widget_show_all(imdialog); | 769 gtk_widget_show_all(imdialog); |
772 if (info) | 770 if (info) |
773 gtk_widget_grab_focus(GTK_WIDGET(info->entry)); | 771 gtk_widget_grab_focus(GTK_WIDGET(info->entry)); |
786 char buf[256]; | 784 char buf[256]; |
787 | 785 |
788 g_free(filename); | 786 g_free(filename); |
789 info->gc = connections->data; | 787 info->gc = connections->data; |
790 | 788 |
791 window = gtk_dialog_new_with_buttons("", blist ? GTK_WINDOW(blist) : NULL, GTK_DIALOG_MODAL, | 789 window = gtk_dialog_new_with_buttons("Gaim - Get User Info", blist ? GTK_WINDOW(blist) : NULL, GTK_DIALOG_MODAL, |
792 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); | 790 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); |
793 gtk_dialog_set_default_response (GTK_DIALOG(window), GTK_RESPONSE_OK); | 791 gtk_dialog_set_default_response (GTK_DIALOG(window), GTK_RESPONSE_OK); |
794 gtk_container_set_border_width (GTK_CONTAINER(window), 6); | 792 gtk_container_set_border_width (GTK_CONTAINER(window), 6); |
795 gtk_window_set_resizable(GTK_WINDOW(window), FALSE); | 793 gtk_window_set_resizable(GTK_WINDOW(window), FALSE); |
796 gtk_dialog_set_has_separator(GTK_DIALOG(window), FALSE); | 794 gtk_dialog_set_has_separator(GTK_DIALOG(window), FALSE); |
3471 void create_away_mess(GtkWidget *widget, void *dummy) | 3469 void create_away_mess(GtkWidget *widget, void *dummy) |
3472 { | 3470 { |
3473 GtkWidget *hbox; | 3471 GtkWidget *hbox; |
3474 GtkWidget *titlebox; | 3472 GtkWidget *titlebox; |
3475 GtkWidget *tbox; | 3473 GtkWidget *tbox; |
3476 GtkWidget *sw; | |
3477 GtkWidget *label; | 3474 GtkWidget *label; |
3478 GtkWidget *frame; | 3475 GtkWidget *frame; |
3479 GtkWidget *fbox; | 3476 GtkWidget *fbox; |
3480 GtkWidget *button; | 3477 GtkWidget *button; |
3481 GtkTextBuffer *buffer; | |
3482 | 3478 |
3483 struct create_away *ca = g_new0(struct create_away, 1); | 3479 struct create_away *ca = g_new0(struct create_away, 1); |
3484 | 3480 |
3485 /* Set up window */ | 3481 /* Set up window */ |
3486 GAIM_DIALOG(ca->window); | 3482 GAIM_DIALOG(ca->window); |
3719 { | 3715 { |
3720 GtkWidget *vbox; | 3716 GtkWidget *vbox; |
3721 GtkWidget *bbox; | 3717 GtkWidget *bbox; |
3722 GtkWidget *cancel; | 3718 GtkWidget *cancel; |
3723 static GtkWidget *add = NULL; | 3719 static GtkWidget *add = NULL; |
3724 const char *name = g_malloc(80); | |
3725 GtkWidget *label; | 3720 GtkWidget *label; |
3726 GtkWidget *topbox; | 3721 GtkWidget *topbox; |
3727 static int a, c; | 3722 static int a, c; |
3728 | 3723 |
3729 if (aliasdlg) | 3724 if (aliasdlg) |
5241 | 5236 |
5242 | 5237 |
5243 /*------------------------------------------------------------------------*/ | 5238 /*------------------------------------------------------------------------*/ |
5244 /* End dialog for setting v-card info */ | 5239 /* End dialog for setting v-card info */ |
5245 /*------------------------------------------------------------------------*/ | 5240 /*------------------------------------------------------------------------*/ |
5246 |