# HG changeset patch # User Nathan Walp # Date 1067497211 0 # Node ID fd17af0b7df168116f471fe4a6767ff8c8b508aa # Parent d26b9508d5f8a3d92b542a2a9a4d7828ec6d9e1a [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 diff -r d26b9508d5f8 -r fd17af0b7df1 src/dialogs.c --- 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); }