if (parse_attr_string("key", n, &key)) {
keylist = g_list_append(keylist, key);
- parse_key(i, doc, n->xmlChildrenNode, keylist);
+ parse_key(i, doc, n->children, keylist);
it = g_list_last(keylist);
g_free(it->data);
static void parse_keyboard(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
void *d)
{
- parse_key(i, doc, node->xmlChildrenNode, NULL);
+ parse_key(i, doc, node->children, NULL);
}
/*
ObMouseAction mact;
ObAction *action;
- node = node->xmlChildrenNode;
+ node = node->children;
if ((n = parse_find_node("dragThreshold", node)))
config_mouse_threshold = parse_int(doc, n);
while (n) {
if (!parse_attr_string("name", n, &contextstr))
goto next_n;
- nbut = parse_find_node("mousebind", n->xmlChildrenNode);
+ nbut = parse_find_node("mousebind", n->children);
while (nbut) {
if (!parse_attr_string("button", nbut, &buttonstr))
goto next_nbut;
mact = OB_MOUSE_ACTION_MOTION;
} else
goto next_nbut;
- nact = parse_find_node("action", nbut->xmlChildrenNode);
+ nact = parse_find_node("action", nbut->children);
while (nact) {
if ((action = action_parse(i, doc, nact, uact)))
mouse_bind(buttonstr, contextstr, mact, action);
{
xmlNodePtr n;
- node = node->xmlChildrenNode;
+ node = node->children;
if ((n = parse_find_node("focusNew", node)))
config_focus_new = parse_bool(doc, n);
if ((n = parse_find_node("focusLastOnDesktop", node)))
config_focus_last_on_desktop = parse_bool(doc, n);
if ((n = parse_find_node("focusDelay", node)))
- config_focus_delay = parse_int(doc, n);
+ config_focus_delay = parse_int(doc, n) * 1000;
}
static void parse_theme(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
{
xmlNodePtr n;
- node = node->xmlChildrenNode;
+ node = node->children;
if ((n = parse_find_node("name", node))) {
gchar *c;
{
xmlNodePtr n;
- node = node->xmlChildrenNode;
+ node = node->children;
if ((n = parse_find_node("number", node)))
config_desktops_num = parse_int(doc, n);
g_slist_free(config_desktops_names);
config_desktops_names = NULL;
- nname = parse_find_node("name", n->xmlChildrenNode);
+ nname = parse_find_node("name", n->children);
while (nname) {
config_desktops_names = g_slist_append(config_desktops_names,
parse_string(doc, nname));
{
xmlNodePtr n;
- node = node->xmlChildrenNode;
+ node = node->children;
if ((n = parse_find_node("drawContents", node)))
config_redraw_resize = parse_bool(doc, n);
{
xmlNodePtr n;
- node = node->xmlChildrenNode;
+ node = node->children;
if ((n = parse_find_node("position", node))) {
if (parse_contains("TopLeft", doc, n))
if ((n = parse_find_node("autoHide", node)))
config_dock_hide = parse_bool(doc, n);
if ((n = parse_find_node("hideTimeout", node)))
- config_dock_hide_timeout = parse_int(doc, n);
+ config_dock_hide_timeout = parse_int(doc, n) * 1000;
}
static void parse_menu(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, void *d)
{
- for (node = node->xmlChildrenNode; node; node = node->next) {
+ for (node = node->children; node; node = node->next) {
if (!xmlStrcasecmp(node->name, (const xmlChar*) "file")) {
gchar *c;
{
xmlNodePtr n;
- node = node->xmlChildrenNode;
+ node = node->children;
if ((n = parse_find_node("strength", node)))
config_resist_win = parse_int(doc, n);
if ((n = parse_find_node("screen_edge_strength", node)))
config_dock_y = 0;
config_dock_orient = OB_ORIENTATION_VERT;
config_dock_hide = FALSE;
- config_dock_hide_timeout = 3000;
+ config_dock_hide_timeout = 300;
parse_register(i, "dock", parse_dock, NULL);