315 |
gtk_widget_set_sensitive (pollingframe, state); |
gtk_widget_set_sensitive (pollingframe, state); |
316 |
} |
} |
317 |
|
|
|
/* check frequency meter */ |
|
|
void |
|
|
on_frequencycheckbutton_toggled (GtkToggleButton * togglebutton, |
|
|
gpointer user_data) |
|
|
{ |
|
|
gboolean state; |
|
|
GtkWidget *frequencyframe; |
|
|
|
|
|
state = gtk_toggle_button_get_active (togglebutton); |
|
|
frequencyframe = lookup_widget (preferencesdialog, "frequencyframe"); |
|
|
gtk_widget_set_sensitive (frequencyframe, state); |
|
|
} |
|
|
|
|
318 |
/* toggle hamlib widgets in the preferences dialog */ |
/* toggle hamlib widgets in the preferences dialog */ |
319 |
void |
void |
320 |
on_hamlibcheckbutton_toggled (GtkToggleButton * togglebutton, |
on_hamlibcheckbutton_toggled (GtkToggleButton * togglebutton, |
321 |
gpointer user_data) |
gpointer user_data) |
322 |
{ |
{ |
323 |
GtkWidget *hamlibframe, *pollingframe, *frequencyframe, |
GtkWidget *hamlibframe, *pollingframe, *pollingcheckbutton; |
|
*frequencycheckbutton, *pollingcheckbutton; |
|
324 |
gboolean state; |
gboolean state; |
325 |
|
|
326 |
hamlibframe = lookup_widget (preferencesdialog, "hamlibframe"); |
hamlibframe = lookup_widget (preferencesdialog, "hamlibframe"); |
335 |
state = gtk_toggle_button_get_active |
state = gtk_toggle_button_get_active |
336 |
(GTK_TOGGLE_BUTTON (pollingcheckbutton)); |
(GTK_TOGGLE_BUTTON (pollingcheckbutton)); |
337 |
gtk_widget_set_sensitive (pollingframe, state); |
gtk_widget_set_sensitive (pollingframe, state); |
|
|
|
|
frequencycheckbutton = lookup_widget (preferencesdialog, |
|
|
"frequencycheckbutton"); |
|
|
frequencyframe = lookup_widget (preferencesdialog, "frequencyframe"); |
|
|
state = gtk_toggle_button_get_active |
|
|
(GTK_TOGGLE_BUTTON (frequencycheckbutton)); |
|
|
gtk_widget_set_sensitive (frequencyframe, state); |
|
338 |
} |
} |
339 |
} |
} |
340 |
|
|