#include "config.h"
+#define DEBUG_FLAG GCR_DEBUG_IMPORT
+#include "gcr-debug.h"
#include "gcr-deprecated-base.h"
#include "gcr-importer.h"
#include "gcr-internal.h"
seen = g_hash_table_new (g_direct_hash, g_direct_equal);
+ if (_gcr_debugging) {
+ gchar *a = gck_attributes_to_string (attrs);
+ _gcr_debug ("looking for importer for: %s", a);
+ g_free (a);
+ }
+
for (i = 0; i < registered_importers->len; ++i) {
registered = &(g_array_index (registered_importers, GcrRegistered, i));
n_attrs = gck_attributes_count (registered->attrs);
}
}
+ if (_gcr_debugging) {
+ gchar *a = gck_attributes_to_string (registered->attrs);
+ _gcr_debug ("importer %s: %s", matched ? "matched" : "didn't match", a);
+ g_free (a);
+ }
+
if (matched) {
if (check_if_seen_or_add (seen, GUINT_TO_POINTER (registered->importer_type)))
continue;
copy->refs = 1;
copy->label = g_strdup (gcr_parsed_get_label (parsed));
copy->attrs = gcr_parsed_get_attributes (parsed);
+ copy->format = gcr_parsed_get_format (parsed);
if (copy->attrs)
gck_attributes_ref (copy->attrs);
copy->description = gcr_parsed_get_description (parsed);
while (parsed != NULL) {
if (parsed->data != NULL) {
copy->data = egg_bytes_ref (parsed->data);
+ copy->sensitive = parsed->sensitive;
break;
}
parsed = parsed->next;