do sgpgme_init() after prefs_gpg_init() because prefs are used in sgpgme_init()
[claws.git] / src / plugins / pgpcore / plugin.c
index 3033eb543353bedc632e8973ac63cbeaa15d0c0e..a11c21100db2be1d299e3d900a1b6c4d50e642a7 100644 (file)
@@ -31,6 +31,7 @@
 #include "sgpgme.h"
 #include "prefs_gpg.h"
 #include "pgp_viewer.h"
+#include "autocompletion.h"
 #include "plugin.h"
 
 #define PLUGIN_NAME (_("PGP/Core"))
@@ -41,11 +42,13 @@ gint plugin_init(gchar **error)
                                VERSION_NUMERIC, PLUGIN_NAME, error))
                return -1;
 
-       sgpgme_init();
        prefs_gpg_init();
+       sgpgme_init();
        sgpgme_check_create_key();
        pgp_viewer_init();
-       return 0;       
+       autocompletion_init(error);
+
+       return 0;
 }
 
 gboolean plugin_done(void)
@@ -53,6 +56,8 @@ gboolean plugin_done(void)
        pgp_viewer_done();
        prefs_gpg_done();
        sgpgme_done();
+       autocompletion_done();
+
        return TRUE;
 }
 
@@ -63,7 +68,8 @@ const gchar *plugin_name(void)
 
 const gchar *plugin_desc(void)
 {
-       return _("This plugin handles PGP core operations, it is used by other "
+       return _("This plugin handles PGP core operations and provides address "
+                "autocompletion from the GPG keyring. It is used by other "
                 "plugins, like PGP/Mime.\n"
                  "\n"
                 "Options can be found in /Configuration/Preferences/Plugins/GPG "