- if ((n = obt_xml_find_node(node, "x")))
- o->x = obt_xml_node_int(n);
- if ((n = obt_xml_find_node(node, "y")))
- o->y = obt_xml_node_int(n);
+ if ((n = obt_xml_find_node(node, "x"))) {
+ s = obt_xml_node_string(n);
+ config_parse_relative_number(s, &o->x, &o->x_denom);
+ g_free(s);
+ }
+ if ((n = obt_xml_find_node(node, "y"))) {
+ s = obt_xml_node_string(n);
+ config_parse_relative_number(s, &o->y, &o->y_denom);
+ g_free(s);
+ }