This commit is contained in:
Mikael Magnusson 2006-06-09 14:21:30 +00:00
parent 94a0ea2150
commit 19611e3bc1

View file

@ -137,7 +137,7 @@ static void parse_per_app_settings(ObParseInst *i, xmlDocPtr doc,
settings->pos_given = FALSE; settings->pos_given = FALSE;
if ((n = parse_find_node("position", app->children))) { if ((n = parse_find_node("position", app->children))) {
if ((c = parse_find_node("x", n->children))) { if ((c = parse_find_node("x", n->children))) {
str *s = parse_string(doc, c); gchar *s = parse_string(doc, c);
if (!strcmp(s, "center")) { if (!strcmp(s, "center")) {
settings->center_x = TRUE; settings->center_x = TRUE;
x_pos_given = TRUE; x_pos_given = TRUE;
@ -149,7 +149,7 @@ static void parse_per_app_settings(ObParseInst *i, xmlDocPtr doc,
} }
if (x_pos_given && (c = parse_find_node("y", n->children))) { if (x_pos_given && (c = parse_find_node("y", n->children))) {
str *s = parse_string(doc, c); gchar *s = parse_string(doc, c);
if (!strcmp(s, "center")) { if (!strcmp(s, "center")) {
settings->center_y = TRUE; settings->center_y = TRUE;
settings->pos_given = TRUE; settings->pos_given = TRUE;
@ -166,7 +166,7 @@ static void parse_per_app_settings(ObParseInst *i, xmlDocPtr doc,
settings->focus = parse_bool(doc, n); settings->focus = parse_bool(doc, n);
if ((n = parse_find_node("desktop", app->children))) { if ((n = parse_find_node("desktop", app->children))) {
str *s = parse_string(doc, n); gchar *s = parse_string(doc, n);
if (!strcmp(s, "all")) if (!strcmp(s, "all"))
settings->desktop = DESKTOP_ALL; settings->desktop = DESKTOP_ALL;
else else
@ -178,7 +178,7 @@ static void parse_per_app_settings(ObParseInst *i, xmlDocPtr doc,
* desktops */ * desktops */
if ((n = parse_find_node("head", app->children))) { if ((n = parse_find_node("head", app->children))) {
str *s = parse_string(doc, n); gchar *s = parse_string(doc, n);
if (!strcmp(s, "mouse")) if (!strcmp(s, "mouse"))
settings->head = -1; settings->head = -1;
else else
@ -188,7 +188,7 @@ static void parse_per_app_settings(ObParseInst *i, xmlDocPtr doc,
settings->layer = -2; settings->layer = -2;
if ((n = parse_find_node("layer", app->children))) { if ((n = parse_find_node("layer", app->children))) {
str *s = parse_string(doc, n); gchar *s = parse_string(doc, n);
if (!strcmp(s, "above")) if (!strcmp(s, "above"))
settings->layer = 1; settings->layer = 1;
else if (!strcmp(s, "below")) else if (!strcmp(s, "below"))
@ -217,7 +217,7 @@ static void parse_per_app_settings(ObParseInst *i, xmlDocPtr doc,
settings->max_horz = -1; settings->max_horz = -1;
settings->max_vert = -1; settings->max_vert = -1;
if ((n = parse_find_node("maximized", app->children))) { if ((n = parse_find_node("maximized", app->children))) {
str *s = parse_string(doc, n); gchar *s = parse_string(doc, n);
if (!strcmp(s, "horizontal")) { if (!strcmp(s, "horizontal")) {
settings->max_horz = TRUE; settings->max_horz = TRUE;
settings->max_vert = FALSE; settings->max_vert = FALSE;