/[xlog]/xlog/src/preferences.c
ViewVC logotype

Diff of /xlog/src/preferences.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.32 by pa4tu, Fri Feb 18 21:57:41 2005 UTC revision 1.33 by pa4tu, Thu Feb 24 15:25:55 2005 UTC
# Line 113  static void make_default_preferences (vo Line 113  static void make_default_preferences (vo
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    
# Line 543  parseloadpreferences (xmlDocPtr p, xmlNo Line 545  parseloadpreferences (xmlDocPtr p, xmlNo
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);
# Line 981  void parsesavepreferences (xmlNodePtr cu Line 995  void parsesavepreferences (xmlNodePtr cu
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);
# Line 1137  newsavepreferences (xmlNodePtr cur) Line 1163  newsavepreferences (xmlNodePtr cur)
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);
# Line 1281  savepreferences (void) Line 1311  savepreferences (void)
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);

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26