gnome-media r4059 - in trunk/gnome-volume-control: . src
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-media r4059 - in trunk/gnome-volume-control: . src
- Date: Wed, 12 Nov 2008 23:20:53 +0000 (UTC)
Author: mccann
Date: Wed Nov 12 23:20:53 2008
New Revision: 4059
URL: http://svn.gnome.org/viewvc/gnome-media?rev=4059&view=rev
Log:
2008-11-12 William Jon McCann <jmccann redhat com>
* src/gvc-mixer-dialog.c (on_key_changed):
Don't assume all changed keys are booleans.
Modified:
trunk/gnome-volume-control/ChangeLog
trunk/gnome-volume-control/src/gvc-mixer-dialog.c
Modified: trunk/gnome-volume-control/src/gvc-mixer-dialog.c
==============================================================================
--- trunk/gnome-volume-control/src/gvc-mixer-dialog.c (original)
+++ trunk/gnome-volume-control/src/gvc-mixer-dialog.c Wed Nov 12 23:20:53 2008
@@ -808,14 +808,17 @@
}
value = gconf_entry_get_value (entry);
- enabled = gconf_value_get_bool (value);
if (strcmp (key, EVENT_SOUNDS_KEY) == 0) {
+ enabled = gconf_value_get_bool (value);
+
gtk_widget_set_sensitive (dialog->priv->sound_theme_chooser, enabled);
gtk_widget_set_sensitive (dialog->priv->click_feedback_button, enabled);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->priv->enable_effects_button), enabled);
} else if (strcmp (key, INPUT_SOUNDS_KEY) == 0) {
+ enabled = gconf_value_get_bool (value);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->priv->click_feedback_button), enabled);
} else if (strcmp (key, AUDIO_BELL_KEY) == 0) {
+ enabled = gconf_value_get_bool (value);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->priv->audible_bell_button), enabled);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]