Mercurial > pidgin.yaz
changeset 5524:101384b068c1
[gaim-migrate @ 5924]
Fixification.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 26 May 2003 02:58:45 +0000 |
parents | fe76565d93c4 |
children | 53c06031f86c |
files | src/gtknotify.c |
diffstat | 1 files changed, 11 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtknotify.c Mon May 26 01:58:06 2003 +0000 +++ b/src/gtknotify.c Mon May 26 02:58:45 2003 +0000 @@ -126,7 +126,11 @@ GCallback cb, void *user_data) { return gaim_gtk_notify_emails(1, TRUE, - &subject, &from, &to, &url, cb, user_data); + (subject == NULL ? NULL : &subject), + (from == NULL ? NULL : &from), + (to == NULL ? NULL : &to), + (url == NULL ? NULL : &url), + cb, user_data); } static void * @@ -149,11 +153,12 @@ data->url = g_strdup(urls[0]); /* Create the dialog. */ - dialog = gtk_dialog_new_with_buttons("", NULL, 0, - GTK_STOCK_CLOSE, 1, - GAIM_STOCK_OPEN_MAIL, 0, - NULL); - data->dialog = dialog; + data->dialog = dialog = gtk_dialog_new(); + + gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CLOSE, 1); + + if (urls != NULL) + gtk_dialog_add_button(GTK_DIALOG(dialog), GAIM_STOCK_OPEN_MAIL, 1); g_signal_connect(G_OBJECT(dialog), "response", G_CALLBACK(__email_response_cb), data);