]> spindle.queued.net Git - midori/commitdiff
Read metadata from XBEL elements other than the root folder
authorChristian Dywan <christian@twotoasts.de>
Sat, 18 Jul 2009 14:16:39 +0000 (16:16 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 18 Jul 2009 14:16:39 +0000 (16:16 +0200)
midori/midori-array.c

index 9364b743f60a318107466c7d81dd9d5f467f6c1c..79a82f7596313c0814d1ce277889c3a0a5476b9d 100644 (file)
     #include <libxml/tree.h>
 #endif
 
+static void
+katze_xbel_parse_info (KatzeItem* item,
+                       xmlNodePtr cur);
+
 static gchar*
 katze_item_metadata_to_xbel (KatzeItem* item);
 
@@ -52,6 +56,8 @@ katze_item_from_xmlNodePtr (xmlNodePtr cur)
             katze_item_set_text (item, g_strstrip ((gchar*)key));
             g_free (key);
         }
+        else if (!xmlStrcmp (cur->name, (const xmlChar*)"info"))
+            katze_xbel_parse_info (item, cur);
         cur = cur->next;
     }
     return item;