totem r5861 - in trunk: . bindings/python src



Author: hadess
Date: Mon Dec 15 16:14:22 2008
New Revision: 5861
URL: http://svn.gnome.org/viewvc/totem?rev=5861&view=rev

Log:
2008-12-15  Bastien Nocera  <hadess hadess net>

	* bindings/python/totem.defs:
	* src/totem-object.c (totem_set_current_subtitle):
	* src/totem.h: Add a way to set the subtitle for the currently
	playing movie from Python (Helps: #561085)



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

Modified: trunk/bindings/python/totem.defs
==============================================================================
--- trunk/bindings/python/totem.defs	(original)
+++ trunk/bindings/python/totem.defs	Mon Dec 15 16:14:22 2008
@@ -408,6 +408,15 @@
   (return-type "char*")
 )
 
+(define-method set_current_subtitle
+  (of-object "TotemObject")
+  (c-name "totem_set_current_subtitle")
+  (return-type "none")
+  (parameters
+    '("const-char*" "subtitle_uri")
+  )
+)
+
 (define-method add_sidebar_page
   (of-object "TotemObject")
   (c-name "totem_add_sidebar_page")

Modified: trunk/src/totem-object.c
==============================================================================
--- trunk/src/totem-object.c	(original)
+++ trunk/src/totem-object.c	Mon Dec 15 16:14:22 2008
@@ -360,6 +360,12 @@
 	return totem_playlist_get_current_title (totem->playlist, &custom);
 }
 
+void
+totem_set_current_subtitle (Totem *totem, const char *subtitle_uri)
+{
+	totem_playlist_set_current_subtitle (totem->playlist, subtitle_uri);
+}
+
 /**
  * totem_add_sidebar_page:
  * @totem: a #TotemObject

Modified: trunk/src/totem.h
==============================================================================
--- trunk/src/totem.h	(original)
+++ trunk/src/totem.h	Mon Dec 15 16:14:22 2008
@@ -188,7 +188,8 @@
 						 const char *display_name,
 						 gboolean add_to_recent);
 char *  totem_get_current_mrl			(Totem *totem);
-
+void	totem_set_current_subtitle		(Totem *totem,
+						 const char *subtitle_uri);
 /* Sidebar handling */
 void    totem_add_sidebar_page			(Totem *totem,
 						 const char *page_id,



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