102 |
preferences.b4height = 300; |
preferences.b4height = 300; |
103 |
preferences.saveasadif = 0; |
preferences.saveasadif = 0; |
104 |
preferences.saveaslabels = 0; |
preferences.saveaslabels = 0; |
|
preferences.shownr = 1; |
|
105 |
} |
} |
106 |
|
|
107 |
void |
void |
701 |
xmlFree (key); |
xmlFree (key); |
702 |
#endif |
#endif |
703 |
} |
} |
|
else if ((!xmlStrcmp(cur->name, (const xmlChar *)"shownr"))) |
|
|
{ |
|
|
key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1); |
|
|
preferences.shownr = atoi (key); |
|
|
#ifdef WIN32 |
|
|
free (key); |
|
|
#else |
|
|
xmlFree (key); |
|
|
#endif |
|
|
} |
|
704 |
cur = cur->next; |
cur = cur->next; |
705 |
} |
} |
706 |
return; |
return; |
1067 |
xmlNodeSetContent (node, key); |
xmlNodeSetContent (node, key); |
1068 |
g_free (key); |
g_free (key); |
1069 |
} |
} |
|
else if (!strcmp (node->name, "shownr")) |
|
|
{ |
|
|
key = g_strdup_printf ("%d", preferences.shownr); |
|
|
xmlNodeSetContent (node, key); |
|
|
g_free (key); |
|
|
} |
|
1070 |
} |
} |
1071 |
} |
} |
1072 |
|
|
1195 |
xmlNewTextChild (cur, NULL, "saveasadif", key); |
xmlNewTextChild (cur, NULL, "saveasadif", key); |
1196 |
key = g_strdup_printf ("%d", preferences.saveaslabels); |
key = g_strdup_printf ("%d", preferences.saveaslabels); |
1197 |
xmlNewTextChild (cur, NULL, "saveaslabels", key); |
xmlNewTextChild (cur, NULL, "saveaslabels", key); |
|
key = g_strdup_printf ("%d", preferences.shownr); |
|
|
xmlNewTextChild (cur, NULL, "shownr", key); |
|
1198 |
g_free (key); |
g_free (key); |
1199 |
} |
} |
1200 |
|
|
1307 |
xmlNewTextChild (cur, NULL, "saveaslabels", key); |
xmlNewTextChild (cur, NULL, "saveaslabels", key); |
1308 |
g_free (key); |
g_free (key); |
1309 |
} |
} |
|
if (!newprefsfile && (preferences.version < 3)) |
|
|
{ |
|
|
/* introduced in xlog version 1.1 */ |
|
|
key = g_strdup_printf ("%d", preferences.shownr); |
|
|
xmlNewTextChild (cur, NULL, "shownr", key); |
|
|
g_free (key); |
|
|
} |
|
1310 |
} |
} |
1311 |
cur = cur->next; |
cur = cur->next; |
1312 |
} |
} |