[patch] SIGABRT with GtkHTML+GConf in CVS balsa
- From: Timothy Alan Chandler <fusion heavywater net>
- To: balsa-list gnome org
- Subject: [patch] SIGABRT with GtkHTML+GConf in CVS balsa
- Date: Mon, 14 Aug 2000 13:30:35 +0000
If GtkHTML is built with GConf support, it doesn't want to play nice with the
CVS version of balsa. It will trap SIGABRT whenever you attempt to access a
message with a text/html type attachment. According to the backtrace, one
must call gconf_init() prior to using calling any GtkHTML function:
#5 0x40453ed0 in g_log (log_domain=0x404c70ee "gtkhtml",
log_level=G_LOG_LEVEL_ERROR, format=0x404c7360 "gconf
is not initialized, please call gconf_init before
using GtkHTML library\n") at gmessages.c:406
Attached is a quick and dirty patch that fixes it without any apparent side
effects.
-tac
--
Silent leges inter arma.
--- balsa/src/main.c.orig Mon Aug 14 12:30:06 2000
+++ balsa/src/main.c Mon Aug 14 12:32:45 2000
@@ -25,6 +25,10 @@
#include <libgnomeui/gnome-window-icon.h>
#endif
+#ifdef GTKHTML_HAVE_GCONF
+# include <gconf/gconf.h>
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -178,6 +182,9 @@
GtkWidget *window;
GnomeClient* client;
gchar *default_icon;
+#ifdef GTKHTML_HAVE_GCONF
+ GConfError *gconf_error;
+#endif
/* Initialize the i18n stuff */
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
@@ -185,6 +192,12 @@
balsa_init (argc, argv);
+#ifdef GTKHTML_HAVE_GCONF
+ if (!gconf_init(argc, argv, &gconf_error))
+ gconf_error_destroy(gconf_error);
+ gconf_error = NULL;
+#endif
+
balsa_app_init ();
#ifdef USE_PIXBUF
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]