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

Diff of /xlog/src/callbacks_preferencesdialog.c

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

revision 1.28 by pa4tu, Mon Sep 20 19:38:41 2004 UTC revision 1.29 by pa4tu, Thu Sep 30 16:59:04 2004 UTC
# Line 349  on_preferencesokbutton_clicked (GtkButto Line 349  on_preferencesokbutton_clicked (GtkButto
349                  preferences.longitude = 0.0;                  preferences.longitude = 0.0;
350          else          else
351                  preferences.longitude = atof (temp);                  preferences.longitude = atof (temp);
352          temp = gtk_editable_get_chars (GTK_EDITABLE (GTK_BIN(NScombo)->child), 0, 1);  
353          if (g_ascii_strncasecmp (temp, _("N"), 1) == 0)          preferences.NS = gtk_combo_box_get_active (GTK_COMBO_BOX (NScombo)) + 1;
354                  preferences.NS = 1;          preferences.EW = gtk_combo_box_get_active (GTK_COMBO_BOX (EWcombo)) + 1;
355          else          preferences.units = gtk_combo_box_get_active
356                  preferences.NS = 2;                  (GTK_COMBO_BOX (unitscombo))  == 1 ? 0 : 1;
357          temp = gtk_editable_get_chars (GTK_EDITABLE (GTK_BIN(EWcombo)->child), 0, 1);  
         if (g_ascii_strncasecmp (temp, _("E"), 1) == 0)  
                 preferences.EW = 1;  
         else  
                 preferences.EW = 2;  
         temp = gtk_editable_get_chars (GTK_EDITABLE (GTK_BIN(unitscombo)->child),  
                 0, -1);  
         if (g_ascii_strncasecmp (temp, "K", 1) == 0)  
                 preferences.units = 1;  
         else  
                 preferences.units = 0;  
358          state.mylocation = setlocation (preferences.latitude, preferences.NS,          state.mylocation = setlocation (preferences.latitude, preferences.NS,
359                  preferences.longitude, preferences.EW);                  preferences.longitude, preferences.EW);
360    

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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