[seahorse] Add unimplemented function



commit b58c4e86b61ab8c09e0c4fe85e412c1d05445346
Author: Adam Schreiber <sadam gnome org>
Date:   Wed May 13 13:24:04 2009 -0400

    Add unimplemented function
---
 libcryptui/cryptui-keyset.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/libcryptui/cryptui-keyset.c b/libcryptui/cryptui-keyset.c
index e95798c..956b610 100644
--- a/libcryptui/cryptui-keyset.c
+++ b/libcryptui/cryptui-keyset.c
@@ -391,6 +391,21 @@ cryptui_keyset_new (const gchar *keytype, gboolean expand_keys)
 }
 
 /**
+ * cryptui_keyset_has_key:
+ * @keyset: a libcryptui keyset
+ * @key: a libcryptui key
+ *
+ * Determines whether or not a key is present in the keyset
+ *
+ * Returns: TRUE if the key is present, FALSE otherwise
+ */
+gboolean
+cryptui_keyset_has_key (CryptUIKeyset *keyset, const gchar *key)
+{
+    return g_hash_table_lookup (keyset->priv->keys, key) ? TRUE : FALSE;
+}
+
+/**
  * cryptui_keyset_get_keytype:
  * @keyset: a libcryptui keyset
  *



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