Mercurial > pidgin
changeset 7378:fd17af0b7df1
[gaim-migrate @ 7973]
ok, now it works, but doesn't close the window or clear the contents of it.
that won't keep me up nights.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 30 Oct 2003 07:00:11 +0000 |
parents | d26b9508d5f8 |
children | 6ce768cd1c80 |
files | src/dialogs.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dialogs.c Thu Oct 30 06:49:41 2003 +0000 +++ b/src/dialogs.c Thu Oct 30 07:00:11 2003 +0000 @@ -1969,23 +1969,27 @@ g_free(filename); - gtk_widget_destroy(view->window); + if(view) + gtk_widget_destroy(view->window); } static void show_clear_log(GtkWidget *w, struct view_log *view) { char *text; + void *clear_handle; if ((view != NULL ) && (view->clear_handle != NULL)) return; text = g_strdup_printf(_("You are about to remove the log file for %s. Do you want to continue?"), view ? view->name : _("System Log")); - view->clear_handle = gaim_request_action(NULL, NULL, _("Remove Log"), + clear_handle = gaim_request_action(NULL, NULL, _("Remove Log"), text, -1, view, 2, _("Remove Log"), G_CALLBACK(do_clear_log_file), _("Cancel"), NULL); + if(view) + view->clear_handle = clear_handle; g_free(text); }