totem r5561 - in trunk: . bindings/python src



Author: pwithnall
Date: Sun Aug 17 22:00:44 2008
New Revision: 5561
URL: http://svn.gnome.org/viewvc/totem?rev=5561&view=rev

Log:
2008-08-17  Philip Withnall  <philip tecnocode co uk>

	* bindings/python/totem.defs:
	* src/totem-object.c: (totem_get_current_mrl):
	* src/totem.h: Add a totem_get_current_mrl function and expose 
it in
	the Python bindings. Necessary for the Totem plugin for Conduit.
	(Closes: #459505)



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	Sun Aug 17 22:00:44 2008
@@ -389,6 +389,12 @@
   (return-type "gint64")
 )
 
+(define-method get_current_mrl
+  (of-object "TotemObject")
+  (c-name "totem_get_current_mrl")
+  (return-type "char*")
+)
+
 (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	Sun Aug 17 22:00:44 2008
@@ -324,6 +324,12 @@
 	}
 }
 
+char *
+totem_get_current_mrl (Totem *totem)
+{
+	return totem_playlist_get_current_mrl (totem->playlist, NULL);
+}
+
 guint
 totem_get_playlist_length (Totem *totem)
 {

Modified: trunk/src/totem.h
==============================================================================
--- trunk/src/totem.h	(original)
+++ trunk/src/totem.h	Sun Aug 17 22:00:44 2008
@@ -183,6 +183,7 @@
 						 const char *uri,
 						 const char *display_name,
 						 gboolean add_to_recent);
+char *  totem_get_current_mrl			(Totem *totem);
 
 /* Sidebar handling */
 void    totem_add_sidebar_page			(Totem *totem,



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