CVS: sylpheed-claws/src main.c,1.115.2.82,1.115.2.83
Colin Leroy <[email protected]>
| Newsgroups | gmane.mail.sylpheed.claws.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/sylpheed-claws/sylpheed-claws/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2474/src
Modified Files:
Tag: gtk2
main.c
Log Message:
2006-05-05 [cleroy] 2.1.1cvs48
* src/main.c
Re-read matcherrc after loading plugins
if some of them add folders.
Index: main.c
===================================================================
RCS file: /cvsroot/sylpheed-claws/sylpheed-claws/src/main.c,v
retrieving revision 1.115.2.82
retrieving revision 1.115.2.83
diff -u -r1.115.2.82 -r1.115.2.83
--- main.c 20 Apr 2006 12:34:29 -0000 1.115.2.82
+++ main.c 5 May 2006 16:17:37 -0000 1.115.2.83
@@ -290,7 +290,7 @@
FolderView *folderview;
GdkPixbuf *icon;
gboolean crash_file_present = FALSE;
-
+ gint num_folder_class = 0;
if (!sylpheed_init(&argc, &argv)) {
return 0;
}
@@ -529,7 +529,14 @@
prefs_toolbar_init();
+ num_folder_class = g_list_length(folder_get_list());
+
plugin_load_all("GTK2");
+
+ if (g_list_length(folder_get_list()) != num_folder_class) {
+ debug_print("new folders loaded, reloading processing rules\n");
+ prefs_matcher_read_config();
+ }
if (plugin_get_unloaded_list() != NULL) {
alertpanel_warning(_("Some plugin(s) failed to load. "
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642