Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 5c6eebc0c3e6ad36965543cdb6694d3f > files > 1

gnome-media-2.20.1-1mdv2008.0.src.rpm

--- gnome-media-2.14.0/grecord/src/gnome-recorder.c.esd	2006-02-14 19:07:00.000000000 +0100
+++ gnome-media-2.14.0/grecord/src/gnome-recorder.c	2006-04-18 16:38:36.000000000 +0200
@@ -179,6 +179,8 @@
 
 	GOptionContext *ctx;
 	GnomeProgram *program;
+ 	gboolean sound_event_and_esd_running;
+
 
 	/* Init gettext */
 	bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
@@ -206,6 +208,12 @@
 	/* init gnome-media-profiles */
 	gnome_media_profiles_init (gconf_client);
 
+	sound_event_and_esd_running = gconf_client_get_bool (gconf_client, "/desktop/gnome/sound/event_sounds", NULL) &&  gconf_client_get_bool (gconf_client, "/desktop/gnome/sound/enable_esd", NULL);
+
+	if (sound_event_and_esd_running) {
+		gconf_client_set_bool (gconf_client, "/desktop/gnome/sound/event_sounds", FALSE, NULL);
+	}
+
 	if (filenames != NULL && filenames[0] != NULL) {
 		guint i, num;
 
@@ -223,5 +231,9 @@
 
 	gtk_main ();
 
+ 	if (sound_event_and_esd_running) {
+ 		gconf_client_set_bool (gconf_client, "/desktop/gnome/sound/event_sounds", TRUE, NULL);
+ 	}
+
 	return 0;
 }