From 113c4c4fb124a7826889d927aaa5208e6b4ece52 Mon Sep 17 00:00:00 2001 From: Marc-Andre Lureau Date: Sat, 6 Jan 2007 21:17:29 +0000 Subject: [PATCH] Fixes #392276 2007-01-03 Marc-Andre Lureau Fixes #392276 * sound-properties-capplet.c (setup_dialog): #ifdef esd-related code. svn path=/trunk/; revision=7063 --- capplets/sound/ChangeLog | 6 ++++++ capplets/sound/sound-properties-capplet.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/capplets/sound/ChangeLog b/capplets/sound/ChangeLog index 3f60cab3f..3b4bf0eda 100644 --- a/capplets/sound/ChangeLog +++ b/capplets/sound/ChangeLog @@ -1,3 +1,9 @@ +2007-01-03 Marc-Andre Lureau + + Fixes #392276 + + * sound-properties-capplet.c (setup_dialog): #ifdef esd-related code. + 2007-01-06 Lucas Rocha Fixes #336286 diff --git a/capplets/sound/sound-properties-capplet.c b/capplets/sound/sound-properties-capplet.c index d06e25513..30fe41f2f 100644 --- a/capplets/sound/sound-properties-capplet.c +++ b/capplets/sound/sound-properties-capplet.c @@ -713,10 +713,13 @@ setup_dialog (GladeXML *dialog, GConfChangeSet *changeset) WID ("chat_audio_capture_test"), "gconfaudiosrc" AUDIO_TEST_IN_BETWEEN "gconfaudiosink profile=chat"); +#ifdef HAVE_ESD peditor = gconf_peditor_new_boolean (NULL, ENABLE_ESD_KEY, WID ("enable_toggle"), NULL); gconf_peditor_widget_set_guard (GCONF_PROPERTY_EDITOR (peditor), WID ("events_toggle")); gconf_peditor_widget_set_guard (GCONF_PROPERTY_EDITOR (peditor), WID ("events_vbox")); - +#else + gtk_widget_hide (WID ("enable_toggle")); +#endif gconf_peditor_new_boolean (NULL, EVENT_SOUNDS_KEY, WID ("events_toggle"), NULL); gconf_peditor_new_boolean (NULL, AUDIO_BELL_KEY, WID ("bell_audible_toggle"), NULL);