/[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.34 by pa4tu, Thu Feb 24 15:33:17 2005 UTC revision 1.35 by pa4tu, Thu Feb 24 16:53:54 2005 UTC
# Line 115  static void make_default_preferences (vo Line 115  static void make_default_preferences (vo
115          preferences.cwf10 = g_strdup ("qrz?");          preferences.cwf10 = g_strdup ("qrz?");
116          preferences.cwf11 = g_strdup ("pse k");          preferences.cwf11 = g_strdup ("pse k");
117          preferences.cwf12 = g_strdup ("++++test---- % %");          preferences.cwf12 = g_strdup ("++++test---- % %");
118            preferences.cwcq = g_strdup ("tu %");
119            preferences.cwsp = g_strdup ("tu 5nn#");
120          preferences.cwspeed = 24;          preferences.cwspeed = 24;
121  }  }
122    
# Line 557  parseloadpreferences (xmlDocPtr p, xmlNo Line 559  parseloadpreferences (xmlDocPtr p, xmlNo
559                          preferences.cwf12 = g_strdup (key);                          preferences.cwf12 = g_strdup (key);
560                          free (key);                          free (key);
561                  }                  }
562                    else if ((!xmlStrcmp(cur->name, (const xmlChar *)"cwcq")))
563                    {
564                            key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1);
565                            preferences.cwcq = g_strdup (key);
566                            free (key);
567                    }
568                    else if ((!xmlStrcmp(cur->name, (const xmlChar *)"cwsp")))
569                    {
570                            key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1);
571                            preferences.cwsp = g_strdup (key);
572                            free (key);
573                    }
574                  else if ((!xmlStrcmp(cur->name, (const xmlChar *)"cwspeed")))                  else if ((!xmlStrcmp(cur->name, (const xmlChar *)"cwspeed")))
575                  {                  {
576                          key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1);                          key = xmlNodeListGetString (p, cur->xmlChildrenNode, 1);
# Line 1007  void parsesavepreferences (xmlNodePtr cu Line 1021  void parsesavepreferences (xmlNodePtr cu
1021                          xmlNodeSetContent (node, key);                          xmlNodeSetContent (node, key);
1022                          g_free (key);                          g_free (key);
1023                  }                  }
1024                    else if (!strcmp (node->name, "cwcq"))
1025                    {
1026                            key = g_strdup_printf ("%s", preferences.cwcq);
1027                            xmlNodeSetContent (node, key);
1028                            g_free (key);
1029                    }
1030                    else if (!strcmp (node->name, "cwsp"))
1031                    {
1032                            key = g_strdup_printf ("%s", preferences.cwsp);
1033                            xmlNodeSetContent (node, key);
1034                            g_free (key);
1035                    }
1036                  else if (!strcmp (node->name, "cwspeed"))                  else if (!strcmp (node->name, "cwspeed"))
1037                  {                  {
1038                          key = g_strdup_printf ("%d", preferences.cwspeed);                          key = g_strdup_printf ("%d", preferences.cwspeed);
# Line 1167  newsavepreferences (xmlNodePtr cur) Line 1193  newsavepreferences (xmlNodePtr cur)
1193          xmlNewTextChild (cur, NULL, "cwf11", key);          xmlNewTextChild (cur, NULL, "cwf11", key);
1194          key = g_strdup_printf ("%s", preferences.cwf12);          key = g_strdup_printf ("%s", preferences.cwf12);
1195          xmlNewTextChild (cur, NULL, "cwf12", key);          xmlNewTextChild (cur, NULL, "cwf12", key);
1196            key = g_strdup_printf ("%s", preferences.cwcq);
1197            xmlNewTextChild (cur, NULL, "cwcq", key);
1198            key = g_strdup_printf ("%s", preferences.cwsp);
1199            xmlNewTextChild (cur, NULL, "cwsp", key);
1200          key = g_strdup_printf ("%d", preferences.cwspeed);          key = g_strdup_printf ("%d", preferences.cwspeed);
1201          xmlNewTextChild (cur, NULL, "cwspeed", key);          xmlNewTextChild (cur, NULL, "cwspeed", key);
1202          g_free (key);          g_free (key);
# Line 1315  savepreferences (void) Line 1345  savepreferences (void)
1345                                  xmlNewTextChild (cur, NULL, "cwf11", key);                                  xmlNewTextChild (cur, NULL, "cwf11", key);
1346                                  key = g_strdup_printf ("%s", preferences.cwf12);                                  key = g_strdup_printf ("%s", preferences.cwf12);
1347                                  xmlNewTextChild (cur, NULL, "cwf12", key);                                  xmlNewTextChild (cur, NULL, "cwf12", key);
1348                                    key = g_strdup_printf ("%s", preferences.cwcq);
1349                                    xmlNewTextChild (cur, NULL, "cwcq", key);
1350                                    key = g_strdup_printf ("%s", preferences.cwsp);
1351                                    xmlNewTextChild (cur, NULL, "cwsp", key);
1352                                  key = g_strdup_printf ("%d", preferences.cwspeed);                                  key = g_strdup_printf ("%d", preferences.cwspeed);
1353                                  xmlNewTextChild (cur, NULL, "cwspeed", key);                                  xmlNewTextChild (cur, NULL, "cwspeed", key);
1354                                  g_free (key);                                  g_free (key);

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

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