summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@svn.gnome.org>2008-04-08 21:28:29 +0000
committerPhilip Withnall <pwithnall@src.gnome.org>2008-04-08 21:28:29 +0000
commita138540c86e80e169b49fb6dcb983385337c6646 (patch)
tree26801cbcc81dba86f1ec7104a2860ec441578283 /bindings
parent80e1f0473002acfe31a61c5bc2b5124f90d85633 (diff)
downloadtotem-a138540c86e80e169b49fb6dcb983385337c6646.tar.gz
Add a menu entry to open YouTube videos in the web browser. (Closes:
2008-04-08 Philip Withnall <pwithnall@svn.gnome.org> * bindings/python/totem.defs: * bindings/python/totem.override: * src/plugins/youtube/youtube.py: * src/totem-video-list.c: (totem_video_list_get_ui_manager): * src/totem-video-list.h: Add a menu entry to open YouTube videos in the web browser. (Closes: #521908) svn path=/trunk/; revision=5351
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/totem.defs26
-rw-r--r--bindings/python/totem.override1
2 files changed, 27 insertions, 0 deletions
diff --git a/bindings/python/totem.defs b/bindings/python/totem.defs
index 6bc0cfd42..7773d84f3 100644
--- a/bindings/python/totem.defs
+++ b/bindings/python/totem.defs
@@ -22,6 +22,13 @@
(gtype-id "TOTEM_TYPE_CELL_RENDERER_VIDEO")
)
+(define-object VideoList
+ (in-module "Totem")
+ (parent "GtkTreeView")
+ (c-name "TotemVideoList")
+ (gtype-id "TOTEM_TYPE_VIDEO_LIST")
+)
+
;; Enumerations and flags ...
(define-enum DiscMediaType
@@ -442,3 +449,22 @@
'("GtkWindow" "parent")
)
)
+
+;; From ../../src/totem-video-list.h
+
+(define-function totem_video_list_new
+ (is-constructor-of "TotemVideoList")
+ (c-name "totem_video_list_new")
+ (return-type "TotemVideoList*")
+ (properties
+ '("tooltip-column" (argname "tooltip_column") (optional))
+ '("mrl-column" (argname "mrl_column") (optional))
+ '("totem" (argname "totem") (optional))
+ )
+)
+
+(define-method get_ui_manager
+ (of-object "TotemVideoList")
+ (c-name "totem_video_list_get_ui_manager")
+ (return-type "GtkUIManager*")
+)
diff --git a/bindings/python/totem.override b/bindings/python/totem.override
index b601bcdc0..23660a752 100644
--- a/bindings/python/totem.override
+++ b/bindings/python/totem.override
@@ -10,6 +10,7 @@ headers
#include "override_common.h"
#include "totem.h"
#include "totem-cell-renderer-video.h"
+#include "totem-video-list.h"
#include "totem-disc.h"
#include "plugins/totem-plugin.h"