/*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2002 by the Claws Mail Team and Hiroyuki Yamamoto
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 2002-2012 by the Claws Mail Team
*
* 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
# include <sys/utsname.h>
#endif
-#if defined(__GNU_LIBRARY__)
+#if defined(__GNU_LIBRARY__) && !defined(__UCLIBC__)
# include <gnu/libc-version.h>
#endif
#include "filesel.h"
#include "version.h"
#include "prefs_common.h"
+#include "manage_window.h"
/*
* NOTE: the crash dialog is called when claws is not
button3 = gtk_button_new_with_label(_("Close"));
gtk_widget_show(button3);
gtk_container_add(GTK_CONTAINER(hbuttonbox4), button3);
- GTK_WIDGET_SET_FLAGS(button3, GTK_CAN_DEFAULT);
+ gtkut_widget_set_can_default(button3, TRUE);
button4 = gtk_button_new_with_label(_("Save..."));
gtk_widget_show(button4);
gtk_container_add(GTK_CONTAINER(hbuttonbox4), button4);
- GTK_WIDGET_SET_FLAGS(button4, GTK_CAN_DEFAULT);
+ gtkut_widget_set_can_default(button4, TRUE);
button5 = gtk_button_new_with_label(_("Create bug report"));
gtk_widget_show(button5);
gtk_container_add(GTK_CONTAINER(hbuttonbox4), button5);
- GTK_WIDGET_SET_FLAGS(button5, GTK_CAN_DEFAULT);
+ gtkut_widget_set_can_default(button5, TRUE);
g_signal_connect(G_OBJECT(window1), "delete_event",
G_CALLBACK(gtk_main_quit), NULL);
g_signal_connect(G_OBJECT(button5), "clicked",
G_CALLBACK(crash_create_bug_report), NULL);
+ MANAGE_WINDOW_SIGNALS_CONNECT(window1);
+
gtk_widget_show(window1);
gtk_main();
*/
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());
}
/*!
int choutput[2];
pid_t pid;
- pipe(choutput);
+ if (pipe(choutput) == -1) {
+ g_print("can't pipe - error %s", errno);
+ return;
+ }
if (0 == (pid = fork())) {
char *argp[10];
static const gchar *get_compiled_in_features(void)
{
return g_strdup_printf("%s",
-#if USE_THREADS
- " gthread"
-#endif
#if INET6
" IPv6"
#endif
#if HAVE_LIBCOMPFACE
" compface"
#endif
-#if USE_OPENSSL
- " OpenSSL"
+#if USE_GNUTLS
+ " GnuTLS"
#endif
#if USE_LDAP
" LDAP"
#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 const gchar *get_lib_version(void)
{
-#if defined(__GNU_LIBRARY__)
+#if defined(__UCLIBC__)
+ return g_strdup_printf("uClibc %i.%i.%i", __UCLIBC_MAJOR__, __UCLIBC_MINOR__, __UCLIBC_SUBLEVEL__);
+#elif defined(__GNU_LIBRARY__)
return g_strdup_printf("GNU libc %s", gnu_get_libc_version());
#else
return g_strdup(_("Unknown"));
static void crash_cleanup_exit(void)
{
const char *filename = claws_get_socket_name();
- g_unlink(filename);
+ claws_unlink(filename);
}
#endif