+#include "kernel/debug.h"
#include "kernel/openbox.h"
#include "kernel/dispatch.h"
#include "kernel/frame.h"
return NULL;
}
-gboolean place_history(Client *c)
+gboolean place_history(ObClient *c)
{
struct HistoryItem *hi;
int x, y, w, h;
if (hi && !(hi->flags & PLACED)) {
hi->flags |= PLACED;
- if (ob_state != OB_STATE_STARTING) {
+ if (ob_state() != OB_STATE_STARTING) {
if (hi->flags & HAVE_POSITION ||
hi->flags & HAVE_SIZE) {
if (hi->flags & HAVE_POSITION) {
return FALSE;
}
-static void set_history(Client *c)
+static void set_history(ObClient *c)
{
struct HistoryItem *hi;
for (it = history_list; it; it = g_slist_next(it)) {
struct HistoryItem *hi = it->data;
- g_message("adding %s", hi->name);
+ ob_debug("adding %s\n", hi->name);
node = xmlNewChild(root, NULL, (const xmlChar*) "entry", NULL);
xmlNewProp(node, (const xmlChar*) "name", (const xmlChar*) hi->name);
xmlNewProp(node, (const xmlChar*) "class", (const xmlChar*) hi->class);
xmlIndentTreeOutput = 1;
xmlSaveFormatFile(history_path, doc, 1);
- xmlFree(doc);
+ xmlFreeDoc(doc);
}
static void load_history()
g_free(name); g_free(class); g_free(role);
node = parse_find_node("entry", node->next);
}
- xmlFree(doc);
+ xmlFreeDoc(doc);
}
void history_startup()