*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
*/
#ifdef HAVE_CONFIG_H
/***/
-static const gchar *DEBUG_SCRIPT = "bt\nkill\nq";
+static const gchar *DEBUG_SCRIPT = "thread all apply\nbt full\nkill\nq";
/***/
GtkTextBuffer *buffer;
GtkTextIter iter;
- window1 = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ window1 = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "crash");
gtk_container_set_border_width(GTK_CONTAINER(window1), 5);
gtk_window_set_title(GTK_WINDOW(window1), _("Claws Mail has crashed"));
gtk_window_set_position(GTK_WINDOW(window1), GTK_WIN_POS_CENTER);
time_t timer;
struct tm *lt;
char buf[100];
+ struct tm buft;
gchar *filename;
timer = time(NULL);
- lt = localtime(&timer);
+ lt = localtime_r(&timer, &buft);
strftime(buf, sizeof buf, "claws-crash-log-%Y-%m-%d-%H-%M-%S.txt", lt);
if (NULL != (filename = filesel_select_file_save(_("Save crash information"), buf))
&& *filename)
*/
static void crash_create_bug_report(GtkButton *button, const gchar *data)
{
- open_uri(BUGZILLA_URI, prefs_common.uri_cmd);
+ open_uri(BUGZILLA_URI, prefs_common_get_uri_cmd());
}
/*!
dup(choutput[1]);
close(choutput[0]);
if (-1 == execvp("gdb", argp))
- puts("error execvp\n");
+ g_print("error execvp\n");
} else {
char buf[100];
int r;
* make it non blocking
*/
if (-1 == fcntl(choutput[0], F_SETFL, O_NONBLOCK))
- puts("set to non blocking failed\n");
+ g_print("set to non blocking failed\n");
/*
* get the output
#if USE_OPENSSL
" OpenSSL"
#endif
+#if USE_GNUTLS
+ " GnuTLS"
+#endif
#if USE_LDAP
" LDAP"
#endif
#if USE_JPILOT
" JPilot"
#endif
-#if USE_ASPELL
+#if USE_ENCHANT
" GNU/aspell"
#endif
#if HAVE_LIBETPAN
" libetpan"
#endif
-#if USE_GNOMEPRINT
- " libgnomeprint"
-#endif
#if HAVE_LIBSM
" libSM"
#endif
static void crash_cleanup_exit(void)
{
const char *filename = claws_get_socket_name();
- g_unlink(filename);
+ claws_unlink(filename);
}
#endif