1238 |
/* polling */ |
/* polling */ |
1239 |
pollingcheckbutton = |
pollingcheckbutton = |
1240 |
lookup_widget (preferencesdialog, "pollingcheckbutton"); |
lookup_widget (preferencesdialog, "pollingcheckbutton"); |
1241 |
|
pollcombo = lookup_widget (preferencesdialog, "pollcombo"); |
1242 |
|
|
1243 |
if (preferences.polltime == 0) |
if (preferences.polltime == 0) |
1244 |
|
{ |
1245 |
|
gtk_entry_set_text (GTK_ENTRY (GTK_BIN(pollcombo)->child), "300"); |
1246 |
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (pollingcheckbutton), |
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (pollingcheckbutton), |
1247 |
FALSE); |
FALSE); |
1248 |
|
} |
1249 |
else |
else |
1250 |
|
{ |
1251 |
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (pollingcheckbutton), |
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (pollingcheckbutton), |
1252 |
TRUE); |
TRUE); |
1253 |
temp = g_strdup_printf ("%d", preferences.polltime); |
temp = g_strdup_printf ("%d", preferences.polltime); |
1254 |
pollcombo = lookup_widget (preferencesdialog, "pollcombo"); |
gtk_entry_set_text (GTK_ENTRY (GTK_BIN(pollcombo)->child), temp); |
1255 |
gtk_entry_set_text (GTK_ENTRY (GTK_BIN(pollcombo)->child), temp); |
} |
1256 |
|
|
1257 |
#else /* hide hamlib page in notebook if no hamlib support */ |
#else /* hide hamlib page in notebook if no hamlib support */ |
1258 |
notebook = lookup_widget (preferencesdialog, "preferencesnotebook"); |
notebook = lookup_widget (preferencesdialog, "preferencesnotebook"); |