[seahorse-plugins] Fix build with -DGSEAL



commit e99fc5839deb86868fa4fdfbfc2fcadef2a83755
Author: Adam Schreiber <sadam gnome org>
Date:   Sun Jun 20 17:12:54 2010 -0400

    Fix build with -DGSEAL

 agent/seahorse-agent-cache.c         |    1 +
 libseahorse/seahorse-pgp-operation.c |    1 +
 libseahorse/seahorse-widget.c        |    1 -
 plugins/nautilus/seahorse-tool.c     |    7 +++++++
 4 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/agent/seahorse-agent-cache.c b/agent/seahorse-agent-cache.c
index a4371d8..5bf42a4 100644
--- a/agent/seahorse-agent-cache.c
+++ b/agent/seahorse-agent-cache.c
@@ -237,6 +237,7 @@ seahorse_agent_cache_init ()
         g_cache =
             g_hash_table_new_full (g_str_hash, g_str_equal, NULL, destroy_cache_item);
 
+        gpgme_check_version (NULL);
         err = gpgme_engine_check_version (proto);
         g_return_if_fail (GPG_IS_OK (err));
         
diff --git a/libseahorse/seahorse-pgp-operation.c b/libseahorse/seahorse-pgp-operation.c
index fd2a6f8..d842383 100644
--- a/libseahorse/seahorse-pgp-operation.c
+++ b/libseahorse/seahorse-pgp-operation.c
@@ -323,6 +323,7 @@ seahorse_pgp_operation_init (SeahorsePGPOperation *pop)
     gpgme_error_t err;
     gpgme_ctx_t ctx;
  
+    gpgme_check_version (NULL);
     err = gpgme_engine_check_version (proto);
     g_return_if_fail (GPG_IS_OK (err));
    
diff --git a/libseahorse/seahorse-widget.c b/libseahorse/seahorse-widget.c
index b15d53e..3fb9e5a 100644
--- a/libseahorse/seahorse-widget.c
+++ b/libseahorse/seahorse-widget.c
@@ -200,7 +200,6 @@ object_set_property (GObject *object, guint prop_id, const GValue *value, GParam
         gtk_builder_connect_signals (swidget->gtkbuilder, swidget);
         
         w = GTK_WIDGET (seahorse_widget_get_widget (swidget, swidget->name));
-		GTK_WIDGET_SET_FLAGS (GTK_WINDOW (w), GTK_TOPLEVEL);
         /*TODO: glade_xml_ensure_accel (swidget->gtkbuilder);*/
         
         gtk_window_set_icon_name (GTK_WINDOW (w), "seahorse");
diff --git a/plugins/nautilus/seahorse-tool.c b/plugins/nautilus/seahorse-tool.c
index 87968ff..ea727d8 100644
--- a/plugins/nautilus/seahorse-tool.c
+++ b/plugins/nautilus/seahorse-tool.c
@@ -170,6 +170,9 @@ prompt_recipients (gpgme_key_t *signkey)
         recips = cryptui_prompt_recipients (keyset, _("Choose Recipients"), &signer);
         
         if (recips) {
+            gpgme_check_version (NULL);
+            gerr = gpgme_engine_check_version (GPGME_PROTOCOL_OpenPGP);
+            g_return_val_if_fail (GPG_IS_OK (gerr), NULL);
             
             gerr = gpgme_new (&ctx);
             g_return_val_if_fail (GPG_IS_OK (gerr), NULL);
@@ -328,6 +331,10 @@ prompt_signer ()
         id = cryptui_keyset_key_raw_keyid (keyset, signer);
         g_free (signer);
         
+        gpgme_check_version (NULL);
+        gerr = gpgme_engine_check_version (GPGME_PROTOCOL_OpenPGP);
+        g_return_val_if_fail (GPG_IS_OK (gerr), NULL);
+
         gerr = gpgme_new (&ctx);
         g_return_val_if_fail (GPG_IS_OK (gerr), NULL);
         



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]