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

Diff of /xlog/src/gui_preferencesdialog.c

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

revision 1.9 by pa4tu, Thu Mar 3 11:41:18 2005 UTC revision 1.10 by pa4tu, Fri Mar 4 15:37:09 2005 UTC
# Line 46  extern preferencestype preferences; Line 46  extern preferencestype preferences;
46  extern GtkWidget *mainwindow;  extern GtkWidget *mainwindow;
47  extern statetype state;  extern statetype state;
48    
 #if WANT_HAMLIB  
         extern GList *riglist;  
 #endif  
   
49  void  void
50  on_menu_preferences_activate (GtkMenuItem * menuitem, gpointer user_data)  on_menu_preferences_activate (GtkMenuItem * menuitem, gpointer user_data)
51  {  {
# Line 77  on_menu_preferences_activate (GtkMenuIte Line 73  on_menu_preferences_activate (GtkMenuIte
73          GtkWidget *hamlibvbox, *radiohbox, *radiolabel, *devicehbox, *devicelabel,          GtkWidget *hamlibvbox, *radiohbox, *radiolabel, *devicehbox, *devicelabel,
74          *hamlibseparator, *configurelabel, *pollingframe, *pollinghbox, *pollinglabel,          *hamlibseparator, *configurelabel, *pollingframe, *pollinghbox, *pollinglabel,
75          *secondslabel, *digitshbox,  *digitslabel, *characterslabel;          *secondslabel, *digitshbox,  *digitslabel, *characterslabel;
76            GList *riglist;
77  #endif  #endif
78          GtkWidget *vboxpage5, *logsframe, *logsvbox, *pathlabel, *pathhbox,          GtkWidget *vboxpage5, *logsframe, *logsvbox, *pathlabel, *pathhbox,
79                  *pathbutton, *logshseparator, *loadlabel, *savingframe, *savingvbox,                  *pathbutton, *logshseparator, *loadlabel, *savingframe, *savingvbox,
# Line 104  on_menu_preferences_activate (GtkMenuIte Line 101  on_menu_preferences_activate (GtkMenuIte
101                  *rigconf = NULL;                  *rigconf = NULL;
102          gboolean hamlibyes, frequencyyesno, smeteryesno, pollingyes, hamlibresult;          gboolean hamlibyes, frequencyyesno, smeteryesno, pollingyes, hamlibresult;
103          gint i, indexradio = -1, numrigs, hamlibwidgets = 0;          gint i, indexradio = -1, numrigs, hamlibwidgets = 0;
         struct rig_caps *rcaps;  
104  #endif  #endif
105    
106          /**************************/          /**************************/
# Line 696  on_menu_preferences_activate (GtkMenuIte Line 692  on_menu_preferences_activate (GtkMenuIte
692                  }                  }
693          }          }
694    
695            riglist = riglist_get_list ();
696          numrigs = g_list_length (riglist);          numrigs = g_list_length (riglist);
697          if (numrigs > 0)          if (numrigs > 0)
698          {          {
699                  for (i = 0; i < numrigs; i++)                  for (i = 0; i < numrigs; i++)
700                  {                  {
701                          rcaps = (struct rig_caps *) g_list_nth_data (riglist, i);                          temp = g_list_nth_data (riglist, i);
702                          gtk_combo_box_append_text                          gtk_combo_box_append_text
703                                  (GTK_COMBO_BOX (radiocombo), (gchar *) rcaps->model_name);                                  (GTK_COMBO_BOX (radiocombo), (gchar *) temp);
704                          if (g_ascii_strcasecmp (rcaps->model_name, preferences.radio) == 0)                          if (g_ascii_strcasecmp (temp, preferences.radio) == 0)
705                                  indexradio = i;                                  indexradio = i;
706                  }                  }
707                  if (indexradio != -1)                  if (indexradio != -1)
708                          gtk_combo_box_set_active (GTK_COMBO_BOX (radiocombo), indexradio);                          gtk_combo_box_set_active (GTK_COMBO_BOX (radiocombo), indexradio);
709          }          }
710            g_list_free (riglist);
711          gtk_entry_set_text (GTK_ENTRY (GTK_BIN(devicecombo)->child),          gtk_entry_set_text (GTK_ENTRY (GTK_BIN(devicecombo)->child),
712                  preferences.device);                  preferences.device);
713    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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