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

Diff of /xlog/src/callbacks.c

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

revision 1.1 by pa4tu, Sat Oct 19 17:50:20 2002 UTC revision 1.2 by pa4tu, Sun Oct 27 00:24:31 2002 UTC
# Line 364  void on_preferencesokbutton_clicked (Gtk Line 364  void on_preferencesokbutton_clicked (Gtk
364          if (strlen(temp) == 0) preferences.longitude = 0.0;          if (strlen(temp) == 0) preferences.longitude = 0.0;
365          else preferences.longitude = atof(temp);          else preferences.longitude = atof(temp);
366          temp = gtk_editable_get_chars(GTK_EDITABLE(NScomboentry), 0, 1);          temp = gtk_editable_get_chars(GTK_EDITABLE(NScomboentry), 0, 1);
367          if (g_strncasecmp(temp, "N", 1) == 0) preferences.NS = 1;          if (g_strncasecmp(temp, _("N"), 1) == 0) preferences.NS = 1;
368          else preferences.NS = 2;          else preferences.NS = 2;
369          temp = gtk_editable_get_chars(GTK_EDITABLE(EWcomboentry), 0, 1);          temp = gtk_editable_get_chars(GTK_EDITABLE(EWcomboentry), 0, 1);
370          if (g_strncasecmp(temp, "E", 1) == 0) preferences.EW = 1;          if (g_strncasecmp(temp, _("E"), 1) == 0) preferences.EW = 1;
371          else preferences.EW = 2;          else preferences.EW = 2;
372          temp = gtk_editable_get_chars(GTK_EDITABLE(unitscomboentry), 0, -1);          temp = gtk_editable_get_chars(GTK_EDITABLE(unitscomboentry), 0, -1);
373          if (g_strncasecmp(temp, "K", 1) == 0) preferences.units = 1;          if (g_strncasecmp(temp, "K", 1) == 0) preferences.units = 1;
374          else preferences.units = 0;          else preferences.units = 0;
375          state.mylocation = setlocation(preferences.latitude, preferences.NS,          state.mylocation = setlocation(preferences.latitude, preferences.NS,
376                  preferences.longitude, preferences.EW);                  preferences.longitude, preferences.EW);
   
377          /* get the comma seperated list of modes and assign to the optionmenu */          /* get the comma seperated list of modes and assign to the optionmenu */
378          modesentry = lookup_widget(preferencesdialog, "modesentry");          modesentry = lookup_widget(preferencesdialog, "modesentry");
379          modeoptionmenu = lookup_widget(mainwindow, "modeoptionmenu");          modeoptionmenu = lookup_widget(mainwindow, "modeoptionmenu");
# Line 1478  static gint update_logfields(gint column Line 1477  static gint update_logfields(gint column
1477           */           */
1478          if (i == QSO_FIELDS)          if (i == QSO_FIELDS)
1479          {          {
1480                  if (g_strcasecmp(showhide, "Show") == 0)                  if (g_strcasecmp(showhide, _("Show")) == 0)
1481                  {                  {
1482                          for (j = 0; j < QSO_FIELDS; j++)                          for (j = 0; j < QSO_FIELDS; j++)
1483                          if (logfields[j] == 0)                          if (logfields[j] == 0)
# Line 1495  static gint update_logfields(gint column Line 1494  static gint update_logfields(gint column
1494           */           */
1495          else          else
1496          {          {
1497                  if (g_strcasecmp(showhide, "Hide") == 0)                  if (g_strcasecmp(showhide, _("Hide")) == 0)
1498                  {                  {
1499                          logfields[i] = 0;                          logfields[i] = 0;
1500                          for (j = 0; j < QSO_FIELDS; j++)                          for (j = 0; j < QSO_FIELDS; j++)
# Line 1546  void on_logeditorokbutton_clicked(GtkBut Line 1545  void on_logeditorokbutton_clicked(GtkBut
1545    
1546          lecomboentry3 = lookup_widget(logeditor, "lecomboentry3");          lecomboentry3 = lookup_widget(logeditor, "lecomboentry3");
1547          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry3), 0, -1);          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry3), 0, -1);
1548          if (g_strcasecmp(temp, "Hide") == 0)          if (g_strcasecmp(temp, _("Hide")) == 0)
1549                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), GMTEND, FALSE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), GMTEND, FALSE);
1550          else          else
1551                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), GMTEND, TRUE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), GMTEND, TRUE);
# Line 1554  void on_logeditorokbutton_clicked(GtkBut Line 1553  void on_logeditorokbutton_clicked(GtkBut
1553    
1554          lecomboentry9_10 = lookup_widget(logeditor, "lecomboentry9_10");          lecomboentry9_10 = lookup_widget(logeditor, "lecomboentry9_10");
1555          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry9_10), 0, -1);          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry9_10), 0, -1);
1556          if (g_strcasecmp(temp, "Hide") == 0)          if (g_strcasecmp(temp, _("Hide")) == 0)
1557          {          {
1558                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), QSLOUT, FALSE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), QSLOUT, FALSE);
1559                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), QSLIN, FALSE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), QSLIN, FALSE);
# Line 1569  void on_logeditorokbutton_clicked(GtkBut Line 1568  void on_logeditorokbutton_clicked(GtkBut
1568    
1569          lecomboentry11 = lookup_widget(logeditor, "lecomboentry11");          lecomboentry11 = lookup_widget(logeditor, "lecomboentry11");
1570          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry11), 0, -1);          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry11), 0, -1);
1571          if (g_strcasecmp(temp, "Hide") == 0)          if (g_strcasecmp(temp, _("Hide")) == 0)
1572                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), POWER, FALSE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), POWER, FALSE);
1573          else          else
1574                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), POWER, TRUE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), POWER, TRUE);
# Line 1577  void on_logeditorokbutton_clicked(GtkBut Line 1576  void on_logeditorokbutton_clicked(GtkBut
1576    
1577          lecomboentry12 = lookup_widget(logeditor, "lecomboentry12");          lecomboentry12 = lookup_widget(logeditor, "lecomboentry12");
1578          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry12), 0, -1);          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry12), 0, -1);
1579          if (g_strcasecmp(temp, "Hide") == 0)          if (g_strcasecmp(temp, _("Hide")) == 0)
1580                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), NAME, FALSE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), NAME, FALSE);
1581          else          else
1582                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), NAME, TRUE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), NAME, TRUE);
# Line 1585  void on_logeditorokbutton_clicked(GtkBut Line 1584  void on_logeditorokbutton_clicked(GtkBut
1584    
1585          lecomboentry13 = lookup_widget(logeditor, "lecomboentry13");          lecomboentry13 = lookup_widget(logeditor, "lecomboentry13");
1586          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry13), 0, -1);          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry13), 0, -1);
1587          if (g_strcasecmp(temp, "Hide") == 0)          if (g_strcasecmp(temp, _("Hide")) == 0)
1588                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), QTH, FALSE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), QTH, FALSE);
1589          else          else
1590                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), QTH, TRUE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), QTH, TRUE);
# Line 1593  void on_logeditorokbutton_clicked(GtkBut Line 1592  void on_logeditorokbutton_clicked(GtkBut
1592    
1593          lecomboentry14 = lookup_widget(logeditor, "lecomboentry14");          lecomboentry14 = lookup_widget(logeditor, "lecomboentry14");
1594          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry14), 0, -1);          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry14), 0, -1);
1595          if (g_strcasecmp(temp, "Hide") == 0)          if (g_strcasecmp(temp, _("Hide")) == 0)
1596                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), LOCATOR, FALSE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), LOCATOR, FALSE);
1597          else          else
1598                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), LOCATOR, TRUE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), LOCATOR, TRUE);
# Line 1601  void on_logeditorokbutton_clicked(GtkBut Line 1600  void on_logeditorokbutton_clicked(GtkBut
1600    
1601          lecomboentry15 = lookup_widget(logeditor, "lecomboentry15");          lecomboentry15 = lookup_widget(logeditor, "lecomboentry15");
1602          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry15), 0, -1);          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry15), 0, -1);
1603          if (g_strcasecmp(temp, "Hide") == 0)          if (g_strcasecmp(temp, _("Hide")) == 0)
1604                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), U1, FALSE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), U1, FALSE);
1605          else          else
1606                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), U1, TRUE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), U1, TRUE);
# Line 1609  void on_logeditorokbutton_clicked(GtkBut Line 1608  void on_logeditorokbutton_clicked(GtkBut
1608    
1609          lecomboentry16 = lookup_widget(logeditor, "lecomboentry16");          lecomboentry16 = lookup_widget(logeditor, "lecomboentry16");
1610          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry16), 0, -1);          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry16), 0, -1);
1611          if (g_strcasecmp(temp, "Hide") == 0)          if (g_strcasecmp(temp, _("Hide")) == 0)
1612                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), U2, FALSE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), U2, FALSE);
1613          else          else
1614                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), U2, TRUE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), U2, TRUE);
# Line 1617  void on_logeditorokbutton_clicked(GtkBut Line 1616  void on_logeditorokbutton_clicked(GtkBut
1616                    
1617          lecomboentry17 = lookup_widget(logeditor, "lecomboentry17");          lecomboentry17 = lookup_widget(logeditor, "lecomboentry17");
1618          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry17), 0, -1);          temp = gtk_editable_get_chars(GTK_EDITABLE(lecomboentry17), 0, -1);
1619          if (g_strcasecmp(temp, "Hide") == 0)          if (g_strcasecmp(temp, _("Hide")) == 0)
1620                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), REMARKS, FALSE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), REMARKS, FALSE);
1621          else          else
1622                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), REMARKS, TRUE);                  gtk_clist_set_column_visibility(GTK_CLIST(logw->clist), REMARKS, TRUE);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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