[Commits] mainwindow.c 1.8 1.9

miras at claws-mail.org miras at claws-mail.org
Sat Dec 31 11:56:07 CET 2011


Update of /home/claws-mail/contacts/src
In directory claws-mail:/tmp/cvs-serv12668/src

Modified Files:
	mainwindow.c 
Log Message:
2011-12-31 [mir]	0.6.0cvs61

	* src/mainwindow.c
	    Notify user about load problems with extensions

Index: mainwindow.c
===================================================================
RCS file: /home/claws-mail/contacts/src/mainwindow.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- mainwindow.c	18 Dec 2011 01:00:42 -0000	1.8
+++ mainwindow.c	31 Dec 2011 10:56:05 -0000	1.9
@@ -44,6 +44,7 @@
 #include "callbacks.h"
 #include "utils.h"
 #include "extension-loader.h"
+#include "gtk-utils.h"
 
 const gchar* PIXMAPS[PIXMAP_N] = {
     PIXDIR"/claws-contacts_16x16.png",
@@ -640,17 +641,20 @@
 
 void application_start(gboolean compose, gboolean no_extensions) {
     MainWindow* mainwindow = g_new0(MainWindow, 1);
-    gchar* error;
+    gchar* error = NULL;
     
     mainwindow->compose_mode = compose;
     mainwindow->use_extensions = ! no_extensions;
     mainwindow_create(mainwindow);
 
     if (mainwindow->use_extensions) {
-        //debug_set_mode(TRUE);
         init_hooks(mainwindow);
         load_extensions(&error);
-        //debug_set_mode(FALSE);
+        if (error) {
+            show_message(mainwindow->window, GTK_UTIL_MESSAGE_WARNING, "%s", error);
+            g_free(error);
+            error = NULL;
+        }
     }
 
     GList* pixmaps = load_pixmaps();



More information about the Commits mailing list