113 |
preferences.cwf8 = g_strdup ("^"); |
preferences.cwf8 = g_strdup ("^"); |
114 |
preferences.cwf9 = g_strdup ("^"); |
preferences.cwf9 = g_strdup ("^"); |
115 |
preferences.cwf10 = g_strdup ("^"); |
preferences.cwf10 = g_strdup ("^"); |
116 |
|
preferences.cwf11 = g_strdup ("^"); |
117 |
|
preferences.cwf12 = g_strdup ("^"); |
118 |
preferences.cwspeed = 24; |
preferences.cwspeed = 24; |
119 |
} |
} |
120 |
|
|
545 |
preferences.cwf10 = g_strdup (key); |
preferences.cwf10 = g_strdup (key); |
546 |
free (key); |
free (key); |
547 |
} |
} |
548 |
|
else if ((!xmlStrcmp(cur->name, (const xmlChar *)"cwf11"))) |
549 |
|
{ |
550 |
|
key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1); |
551 |
|
preferences.cwf11 = g_strdup (key); |
552 |
|
free (key); |
553 |
|
} |
554 |
|
else if ((!xmlStrcmp(cur->name, (const xmlChar *)"cwf12"))) |
555 |
|
{ |
556 |
|
key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1); |
557 |
|
preferences.cwf12 = g_strdup (key); |
558 |
|
free (key); |
559 |
|
} |
560 |
else if ((!xmlStrcmp(cur->name, (const xmlChar *)"cwspeed"))) |
else if ((!xmlStrcmp(cur->name, (const xmlChar *)"cwspeed"))) |
561 |
{ |
{ |
562 |
key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1); |
key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1); |
995 |
xmlNodeSetContent (node, key); |
xmlNodeSetContent (node, key); |
996 |
g_free (key); |
g_free (key); |
997 |
} |
} |
998 |
|
else if (!strcmp (node->name, "cwf11")) |
999 |
|
{ |
1000 |
|
key = g_strdup_printf ("%s", preferences.cwf11); |
1001 |
|
xmlNodeSetContent (node, key); |
1002 |
|
g_free (key); |
1003 |
|
} |
1004 |
|
else if (!strcmp (node->name, "cwf12")) |
1005 |
|
{ |
1006 |
|
key = g_strdup_printf ("%s", preferences.cwf12); |
1007 |
|
xmlNodeSetContent (node, key); |
1008 |
|
g_free (key); |
1009 |
|
} |
1010 |
else if (!strcmp (node->name, "cwspeed")) |
else if (!strcmp (node->name, "cwspeed")) |
1011 |
{ |
{ |
1012 |
key = g_strdup_printf ("%d", preferences.cwspeed); |
key = g_strdup_printf ("%d", preferences.cwspeed); |
1163 |
xmlNewTextChild (cur, NULL, "cwf9", key); |
xmlNewTextChild (cur, NULL, "cwf9", key); |
1164 |
key = g_strdup_printf ("%s", preferences.cwf10); |
key = g_strdup_printf ("%s", preferences.cwf10); |
1165 |
xmlNewTextChild (cur, NULL, "cwf10", key); |
xmlNewTextChild (cur, NULL, "cwf10", key); |
1166 |
|
key = g_strdup_printf ("%s", preferences.cwf11); |
1167 |
|
xmlNewTextChild (cur, NULL, "cwf11", key); |
1168 |
|
key = g_strdup_printf ("%s", preferences.cwf12); |
1169 |
|
xmlNewTextChild (cur, NULL, "cwf12", key); |
1170 |
key = g_strdup_printf ("%d", preferences.cwspeed); |
key = g_strdup_printf ("%d", preferences.cwspeed); |
1171 |
xmlNewTextChild (cur, NULL, "cwspeed", key); |
xmlNewTextChild (cur, NULL, "cwspeed", key); |
1172 |
g_free (key); |
g_free (key); |
1311 |
xmlNewTextChild (cur, NULL, "cwf9", key); |
xmlNewTextChild (cur, NULL, "cwf9", key); |
1312 |
key = g_strdup_printf ("%s", preferences.cwf10); |
key = g_strdup_printf ("%s", preferences.cwf10); |
1313 |
xmlNewTextChild (cur, NULL, "cwf10", key); |
xmlNewTextChild (cur, NULL, "cwf10", key); |
1314 |
|
key = g_strdup_printf ("%s", preferences.cwf11); |
1315 |
|
xmlNewTextChild (cur, NULL, "cwf11", key); |
1316 |
|
key = g_strdup_printf ("%s", preferences.cwf12); |
1317 |
|
xmlNewTextChild (cur, NULL, "cwf12", key); |
1318 |
key = g_strdup_printf ("%d", preferences.cwspeed); |
key = g_strdup_printf ("%d", preferences.cwspeed); |
1319 |
xmlNewTextChild (cur, NULL, "cwspeed", key); |
xmlNewTextChild (cur, NULL, "cwspeed", key); |
1320 |
g_free (key); |
g_free (key); |