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

Diff of /xlog/src/main.c

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

revision 1.73 by pa4tu, Fri Mar 4 15:37:09 2005 UTC revision 1.74 by pa4tu, Thu Apr 21 17:59:24 2005 UTC
# Line 55  Line 55 
55  #include "preferences.h"  #include "preferences.h"
56  #include "log.h"  #include "log.h"
57  #include "utils.h"  #include "utils.h"
58  #include "dxcc.h"  #include "tables.h"
59  #include "remote.h"  #include "remote.h"
60  #include "history.h"  #include "history.h"
61    
# Line 147  static void Line 147  static void
147  setdefaultstate (void)  setdefaultstate (void)
148  {  {
149          state.qsos = 0;          state.qsos = 0;
         state.countries = 0;  
150          /* the default ham lives in the gulf of guinea */          /* the default ham lives in the gulf of guinea */
151          state.mylocation = g_strdup ("0.0N0.0E");          state.mylocation = g_strdup ("0.0N0.0E");
152          state.controlkey = FALSE;          state.controlkey = FALSE;
# Line 189  main (int argc, char *argv[]) Line 188  main (int argc, char *argv[])
188                  *hpaned, *powerlabel, *powerbutton, *locatorframe, *unknownlabel1,                  *hpaned, *powerlabel, *powerbutton, *locatorframe, *unknownlabel1,
189                  *unknownlabel2, *handlebox;                  *unknownlabel2, *handlebox;
190          gchar *xlogfile, *xlogbackupfile, *temp, *logstoload, **loglist = NULL;          gchar *xlogfile, *xlogbackupfile, *temp, *logstoload, **loglist = NULL;
191          gint i, j, ctyresult;          gint i, j, result;
192          gboolean showmainwindow = TRUE, logsfromprefs = FALSE, gtk_mismatch = FALSE;          gboolean showmainwindow = TRUE, logsfromprefs = FALSE, gtk_mismatch = FALSE;
193          logtype *logwindow = NULL;          logtype *logwindow = NULL;
194          LOGDB *lp = NULL;          LOGDB *lp = NULL;
# Line 233  main (int argc, char *argv[]) Line 232  main (int argc, char *argv[])
232          remote.nr = 0;          remote.nr = 0;
233          remote.program = g_strdup ("unknown");          remote.program = g_strdup ("unknown");
234    
235          ctyresult = readctydata ();          result = readtable ();
236          if (ctyresult)          if (result)
237                  g_warning (_("Could not read cty.dat"));                  g_warning (_("Could not read dxcc table"));
         ctyresult = readxlogdata ();  
238    
239          qso = g_new0 (gchar *, QSO_FIELDS);          qso = g_new0 (gchar *, QSO_FIELDS);
240          for (i = 0; i < QSO_FIELDS; i++)          for (i = 0; i < QSO_FIELDS; i++)
# Line 341  main (int argc, char *argv[]) Line 339  main (int argc, char *argv[])
339          gtk_label_set_text (GTK_LABEL (unknownlabel2), preferences.freefield2);          gtk_label_set_text (GTK_LABEL (unknownlabel2), preferences.freefield2);
340    
341          /* update the statusbar with some information */          /* update the statusbar with some information */
342          temp = g_strdup_printf (_("%d QSO's and %d countries loaded"),          temp = g_strdup_printf (_("%d QSO's loaded"), state.qsos);
                                 state.qsos, state.countries);  
343          update_statusbar (temp);          update_statusbar (temp);
344    
345          /* set the menu strings for the bandoption menu */          /* set the menu strings for the bandoption menu */

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

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