diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-08-05 07:01:45 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-08-05 07:01:45 +0000 |
commit | 2d7d8597781dd79031430a68c93db863e2205a8f (patch) | |
tree | 2929ed950ced947bb2e516f17ede3f867bc9acf7 | |
parent | 96e12afb87585fec68cb251f78af15a3827d536b (diff) |
syl_plugin_load_all(): don't output warning when failed to open directory.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2199 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/plugin.c | 6 |
2 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2009-08-05 + * src/plugin.c: syl_plugin_load_all(): don't output warning when + failed to open directory. + +2009-08-05 + * src/import.c: modified progressbar dialog. 2009-08-04 diff --git a/src/plugin.c b/src/plugin.c index 69270ecf..d934101b 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -204,8 +204,12 @@ gint syl_plugin_load_all(const gchar *dir) gchar *path; gint count = 0; + g_return_val_if_fail(dir != NULL, -1); + + debug_print("loading plugins from directory: %s\n", dir); + if ((d = g_dir_open(dir, 0, NULL)) == NULL) { - g_warning("failed to open directory: %s", dir); + debug_print("failed to open directory: %s\n", dir); return -1; } |