Load plugins from $prefix/lib/sylpheed/plugins directory.
authorDarko Koruga <darko@users.sourceforge.net>
Wed, 14 Apr 2004 18:36:16 +0000 (18:36 +0000)
committerDarko Koruga <darko@users.sourceforge.net>
Wed, 14 Apr 2004 18:36:16 +0000 (18:36 +0000)
ChangeLog.claws
configure.ac
src/gtk/Makefile.am
src/gtk/pluginwindow.c
src/plugins/clamav/clamav_plugin.c

index 6a3a3c8..d417cd2 100644 (file)
@@ -1,3 +1,12 @@
+2004-04-14 [darko]     0.9.10claws46
+
+       * src/gtk/Makefile.am
+       * src/gtk/pluginwindow.c
+               load plugins from to $(prefix)/lib/sylpheed/plugins
+               in file selection dialog
+       * src/plugins/clamav/clamav_plugin.c
+               const correctness
+
 2004-04-14 [christoph] 0.9.10claws45
 
        * src/folder.c
index cea4dab..9cc5525 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=10
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=45
+EXTRA_VERSION=46
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index aba78ae..384c410 100644 (file)
@@ -1,3 +1,5 @@
+PLUGINDIR = $(pkglibdir)/plugins/
+
 noinst_LTLIBRARIES = libsylpheedgtk.la
 
 libsylpheedgtk_la_SOURCES = \
@@ -46,7 +48,8 @@ AM_CPPFLAGS = \
        -I.. \
        $(GTK_CFLAGS) \
        $(OPENSSL_CFLAGS) \
-       $(ASPELL_CFLAGS)
+       $(ASPELL_CFLAGS) \
+       -DPLUGINDIR=\"$(PLUGINDIR)\"
 
 libsylpheedgtk_la_LIBADD = \
        ../common/libsylpheedcommon.la \
index 10dcab2..8561870 100644 (file)
@@ -111,7 +111,7 @@ static void load_cb(GtkButton *button, PluginWindow *pluginwindow)
 {
        gchar *file, *error = NULL;
 
-       file = filesel_select_file(_("Select Plugin to load"), "");
+       file = filesel_select_file(_("Select Plugin to load"), PLUGINDIR);
        if (file == NULL)
                return;
 
index bc32131..35be5cf 100644 (file)
@@ -74,7 +74,7 @@ static gboolean scan_func(GNode *node, gpointer data)
        gchar *outfile;
        int ret;
        unsigned long int size;
-       char *virname;
+       const char *virname;
 
        outfile = procmime_get_tmp_file_name(mimeinfo);
        if (procmime_get_part(outfile, mimeinfo) < 0)