X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fplacement%2Fhistory.c;h=716487b6e76a9d0dd49fa50b345e21dbe4a40f08;hb=d1e355de2c6aae38cea3cdc0e0b902ea2b194e86;hp=9d932b9edfbe7e0ca292738f298f91ae0d6782ce;hpb=927f99e4125743bbecf41b1aa7dbce9587fb6156;p=chaz%2Fopenbox diff --git a/plugins/placement/history.c b/plugins/placement/history.c index 9d932b9e..716487b6 100644 --- a/plugins/placement/history.c +++ b/plugins/placement/history.c @@ -3,7 +3,7 @@ #include "kernel/frame.h" #include "kernel/client.h" #include "kernel/screen.h" -#include "kernel/parse.h" +#include "parser/parse.h" #include "history.h" #include #include @@ -193,18 +193,8 @@ static void load_history() char *role; struct HistoryItem *hi; - if (!(doc = xmlParseFile(history_path))) + if (!parse_load(history_path, "openbox_history", &doc, &node)) return; - if (!(node = xmlDocGetRootElement(doc))) { - xmlFreeDoc(doc); - doc = NULL; - return; - } - if (xmlStrcasecmp(node->name, (const xmlChar*)"openbox_history")) { - xmlFreeDoc(doc); - doc = NULL; - return; - } node = parse_find_node("entry", node->xmlChildrenNode); while (node) {