take numbers as args for the popup options too

This commit is contained in:
Mikael Magnusson 2004-03-21 12:20:52 +00:00
parent e9cdaf2749
commit 39748e4180

View file

@ -296,6 +296,7 @@ static void parse_resize(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
if ((n = parse_find_node("drawContents", node)))
config_resize_redraw = parse_bool(doc, n);
if ((n = parse_find_node("popupShow", node))) {
config_resize_popup_show = parse_int(doc, n);
if (parse_contains("Always", doc, n))
config_resize_popup_show = 2;
else if (parse_contains("Never", doc, n))
@ -304,6 +305,7 @@ static void parse_resize(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
config_resize_popup_show = 1;
}
if ((n = parse_find_node("popupPosition", node))) {
config_resize_popup_pos = parse_int(doc, n);
if (parse_contains("Top", doc, n))
config_resize_popup_pos = 1;
else if (parse_contains("Center", doc, n))