totem r5786 - in trunk: . bindings/python src



Author: pwithnall
Date: Sun Oct 26 09:54:18 2008
New Revision: 5786
URL: http://svn.gnome.org/viewvc/totem?rev=5786&view=rev

Log:
2008-10-26  Philip Withnall  <philip tecnocode co uk>

	* bindings/python/totem.defs: Fix the Python bindings for
	totem.action_volume_relative so that a float is expected, rather 
than
	an int.
	* src/totem.c: Fix the documentation for the same function.



Modified:
   trunk/ChangeLog
   trunk/bindings/python/totem.defs
   trunk/src/totem.c

Modified: trunk/bindings/python/totem.defs
==============================================================================
--- trunk/bindings/python/totem.defs	(original)
+++ trunk/bindings/python/totem.defs	Sun Oct 26 09:54:18 2008
@@ -272,7 +272,7 @@
   (c-name "totem_action_volume_relative")
   (return-type "none")
   (parameters
-    '("int" "off_pct")
+    '("gfloat" "off_pct")
   )
 )
 

Modified: trunk/src/totem.c
==============================================================================
--- trunk/src/totem.c	(original)
+++ trunk/src/totem.c	Sun Oct 26 09:54:18 2008
@@ -1358,9 +1358,10 @@
 /**
  * totem_action_volume_relative:
  * @totem: a #TotemObject
- * @off_pct: the percentage by which to increase or decrease the volume
+ * @off_pct: the value by which to increase or decrease the volume
  *
- * Sets the volume relative to its current level.
+ * Sets the volume relative to its current level, with 1.0 being the
+ * maximum, and 0.0 being the minimum level.
  **/
 void
 totem_action_volume_relative (Totem *totem, double off_pct)



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