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

Diff of /xlog/src/utils.c

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

revision 1.26 by pa4tu, Sat Oct 9 15:08:36 2004 UTC revision 1.27 by pa4tu, Sat Oct 16 11:20:23 2004 UTC
# Line 519  gint Line 519  gint
519  autosave (void)  autosave (void)
520  {  {
521          gint i;          gint i;
522          logtype *logwindow;          logtype *logw;
523          gchar *logfile, *temp;          gchar *temp;
524          gboolean message = FALSE;          gboolean message = FALSE;
525    
526          for (i = 0; i < g_list_length (logwindowlist); i++)          for (i = 0; i < g_list_length (logwindowlist); i++)
                 {  
                         logwindow = g_list_nth_data (logwindowlist, i);  
                         if (logwindow->logchanged)  
527          {          {
528                  logfile =                  logw = g_list_nth_data (logwindowlist, i);
529                          g_strconcat (preferences.savedir, G_DIR_SEPARATOR_S,                  if (logw->logchanged)
530                           logwindow->logname, ".xlog", NULL);                  {
531                  savelog (logwindow, logfile, TYPE_FLOG, 1, logwindow->qsos);                          savelog (logw, logw->filename, TYPE_FLOG, 1, logw->qsos);
532                  logwindow->logchanged = FALSE;                          logw->logchanged = FALSE;
533                  gtk_label_set_text (GTK_LABEL (logwindow->label),                          gtk_label_set_text (GTK_LABEL (logw->label), logw->logname);
534                                                  logwindow->logname);                          message = TRUE;
                 g_free (logfile);  
                 message = TRUE;  
         }  
535                  }                  }
536            }
537    
538          if (message)          if (message)
539                  {          {
540                          temp = g_strdup_printf (_("Log(s) autosaved"));                  temp = g_strdup_printf (_("Log(s) autosaved"));
541                          update_statusbar (temp);                  update_statusbar (temp);
542                          g_free (temp);                  g_free (temp);
543                  }          }
544          return 1;          return 1;
545  }  }
546    

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

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