diff options
author | 2009-10-24 18:53:32 +0200 | |
---|---|---|
committer | 2009-10-24 18:53:32 +0200 | |
commit | 9d441377ef6246387c1604eed818ab137926fcdb (patch) | |
tree | a9ae725f99c4ecdd41ca38b68559b3bd806b659c /callbacks.c | |
parent | e1b8366ccbf93786440f0c0bf4bdd6c3b9ae5d5b (diff) |
updated preferences window to reflect config options changes
Diffstat (limited to 'callbacks.c')
-rw-r--r-- | callbacks.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/callbacks.c b/callbacks.c index 02bb6cd3..a6011e09 100644 --- a/callbacks.c +++ b/callbacks.c @@ -1354,8 +1354,9 @@ on_preferences_activate (GtkMenuItem *menuitem, gtk_combo_box_set_active (combobox, 0); } - // samplerate - gtk_entry_set_text (GTK_ENTRY (lookup_widget (w, "pref_samplerate")), conf_get_str ("samplerate", "48000")); + // alsa resampling +// gtk_entry_set_text (GTK_ENTRY (lookup_widget (w, "pref_samplerate")), conf_get_str ("samplerate", "48000")); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (lookup_widget (w, "pref_alsa_resampling")), conf_get_int ("alsa.resample", 0)); // src_quality combobox = GTK_COMBO_BOX (lookup_widget (w, "pref_src_quality")); @@ -1400,11 +1401,11 @@ on_pref_soundcard_changed (GtkComboBox *combobox, void -on_pref_samplerate_changed (GtkEditable *editable, +on_pref_alsa_resampling_clicked (GtkButton *button, gpointer user_data) { - const char *text = gtk_entry_get_text (GTK_ENTRY (editable)); - conf_set_str ("samplerate", text ? text : "48000"); + int active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)); + conf_set_int ("alsa.resample", active); } |