[totem] Remove volume restoring feature



commit 3b997f6cd2a86640414f938c34f9c1bea53f197d
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date:   Fri Oct 30 11:52:31 2009 +0100

    Remove volume restoring feature

 data/totem.schemas.in |   12 ------------
 src/totem-object.c    |   14 --------------
 2 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/data/totem.schemas.in b/data/totem.schemas.in
index 285d1b9..cc1454c 100644
--- a/data/totem.schemas.in
+++ b/data/totem.schemas.in
@@ -214,18 +214,6 @@
       </schema>
 
       <schema>
-        <key>/schemas/apps/totem/volume</key>
-	<applyto>/apps/totem/volume</applyto>
-	<owner>totem</owner>
-	<type>int</type>
-	<default>50</default>
-	<locale name="C">
-	  <short>Sound volume</short>
-	  <long>Sound volume, in percent, between 0 and 100</long>
-	</locale>
-      </schema>
-
-      <schema>
         <key>/schemas/apps/totem/network-buffer-threshold</key>
         <applyto>/apps/totem/network-buffer-threshold</applyto>
         <owner>totem</owner>
diff --git a/src/totem-object.c b/src/totem-object.c
index da4e79e..073ea47 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -899,17 +899,6 @@ totem_action_exit (Totem *totem)
 		gdk_display_sync (display);
 
 	if (totem->bvw) {
-		int vol;
-
-		if (totem->muted != FALSE)
-			vol = totem->prev_volume * 100.0 + 0.5;
-		else
-			vol = bacon_video_widget_get_volume (totem->bvw) * 100.0 + 0.5;
-		/* FIXME move the volume to the static file? */
-		gconf_client_set_int (totem->gc,
-				GCONF_PREFIX"/volume",
-				CLAMP (vol, 0, 100),
-				NULL);
 		totem_action_save_size (totem);
 		totem_save_position (totem);
 	}
@@ -4131,9 +4120,6 @@ video_widget_create (Totem *totem)
 
 	totem_preferences_visuals_setup (totem);
 
-	bacon_video_widget_set_volume (totem->bvw,
-			((double) gconf_client_get_int (totem->gc,
-				GCONF_PREFIX"/volume", NULL)) / 100.0);
 	g_signal_connect (G_OBJECT (totem->bvw), "notify::volume",
 			G_CALLBACK (property_notify_cb_volume), totem);
 	g_signal_connect (G_OBJECT (totem->bvw), "notify::logo-mode",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]