diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-02-03 18:04:58 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-02-03 18:04:58 +0800 |
commit | ee1ceba3cacd37be2bb9b9fa117029126e35e91a (patch) | |
tree | 08a0f0a7f0d52d99b4de09e289f84ee94235051a /python/pyempathygtk | |
parent | 028b73a7c053c8a53de8153030ea225bd31bac7d (diff) | |
download | gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.tar gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.tar.gz gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.tar.bz2 gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.tar.lz gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.tar.xz gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.tar.zst gsoc2013-empathy-ee1ceba3cacd37be2bb9b9fa117029126e35e91a.zip |
Update python bindings
svn path=/trunk/; revision=2419
Diffstat (limited to 'python/pyempathygtk')
-rw-r--r-- | python/pyempathygtk/pyempathygtk.defs | 113 | ||||
-rw-r--r-- | python/pyempathygtk/pyempathygtk.override | 6 |
2 files changed, 119 insertions, 0 deletions
diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs index 35bc8c9f1..c4cc1e29c 100644 --- a/python/pyempathygtk/pyempathygtk.defs +++ b/python/pyempathygtk/pyempathygtk.defs @@ -90,6 +90,27 @@ (gtype-id "EMPATHY_TYPE_CONTACT_SELECTOR") ) +(define-object GstAudioSink + (in-module "Empathy") + (parent "GstBin") + (c-name "EmpathyGstAudioSink") + (gtype-id "EMPATHY_TYPE_GST_AUDIO_SINK") +) + +(define-object GstAudioSrc + (in-module "Empathy") + (parent "GstBin") + (c-name "EmpathyGstAudioSrc") + (gtype-id "EMPATHY_TYPE_GST_AUDIO_SRC") +) + +(define-object GstVideoSrc + (in-module "Empathy") + (parent "GstBin") + (c-name "EmpathyGstVideoSrc") + (gtype-id "EMPATHY_TYPE_GST_VIDEO_SRC") +) + (define-object PresenceChooser (in-module "Empathy") (parent "GtkToggleButton") @@ -125,6 +146,13 @@ (gtype-id "EMPATHY_TYPE_THEME_MANAGER") ) +(define-object VideoWidget + (in-module "Empathy") + (parent "GtkDrawingArea") + (c-name "EmpathyVideoWidget") + (gtype-id "EMPATHY_TYPE_VIDEO_WIDGET") +) + ;; Enumerations and flags ... (define-enum ContactListStoreSort @@ -1263,6 +1291,91 @@ +;; From empathy-audio-sink.h + +(define-function audio_sink_get_type + (c-name "empathy_audio_sink_get_type") + (return-type "GType") +) + +(define-function audio_sink_new + (c-name "empathy_audio_sink_new") + (is-constructor-of "EmpathyAudioSink") + (return-type "GstElement*") +) + + + +;; From empathy-audio-src.h + +(define-function audio_src_get_type + (c-name "empathy_audio_src_get_type") + (return-type "GType") +) + +(define-function audio_src_new + (c-name "empathy_audio_src_new") + (is-constructor-of "EmpathyAudioSrc") + (return-type "GstElement*") +) + + + +;; From empathy-video-src.h + +(define-function video_src_get_type + (c-name "empathy_video_src_get_type") + (return-type "GType") +) + +(define-function video_src_new + (c-name "empathy_video_src_new") + (is-constructor-of "EmpathyVideoSrc") + (return-type "GstElement*") +) + + + +;; From empathy-video-widget.h + +(define-function video_widget_get_type + (c-name "empathy_video_widget_get_type") + (return-type "GType") +) + +(define-function video_widget_new + (c-name "empathy_video_widget_new") + (is-constructor-of "EmpathyVideoWidget") + (return-type "GtkWidget*") + (parameters + '("GstBus*" "bus") + ) +) + +(define-function video_widget_new_with_size + (c-name "empathy_video_widget_new_with_size") + (return-type "GtkWidget*") + (parameters + '("GstBus*" "bus") + '("gint" "width") + '("gint" "height") + ) +) + +(define-method get_element + (of-object "EmpathyVideoWidget") + (c-name "empathy_video_widget_get_element") + (return-type "GstElement*") +) + +(define-method get_sink + (of-object "EmpathyVideoWidget") + (c-name "empathy_video_widget_get_sink") + (return-type "GstPad*") +) + + + ;; From empathy-images.h diff --git a/python/pyempathygtk/pyempathygtk.override b/python/pyempathygtk/pyempathygtk.override index 40d63848b..7493c42bc 100644 --- a/python/pyempathygtk/pyempathygtk.override +++ b/python/pyempathygtk/pyempathygtk.override @@ -5,6 +5,8 @@ headers #include "empathy-account-chooser.h" #include "empathy-account-widget.h" #include "empathy-account-widget-irc.h" +#include "empathy-audio-sink.h" +#include "empathy-audio-src.h" #include "empathy-avatar-chooser.h" #include "empathy-avatar-image.h" #include "empathy-cell-renderer-activatable.h" @@ -33,6 +35,8 @@ headers #include "empathy-theme-irc.h" #include "empathy-theme-manager.h" #include "empathy-ui-utils.h" +#include "empathy-video-src.h" +#include "empathy-video-widget.h" void empathy_add_constants(PyObject *module, const gchar *strip_prefix); void empathy_register_classes(PyObject *d); @@ -55,6 +59,8 @@ import gtk.EventBox as PyGtkEventBox_Type import gtk.CellRendererPixbuf as PyGtkCellRendererPixbuf_Type import gtk.gdk.Pixbuf as PyGdkPixbuf_Type import gtk.Bin as PyGtkBin_Type +import gtk.DrawingArea as PyGtkDrawingArea_Type +import gst.GstBin as PyGstBin_Type import empathy.Contact as PyEmpathyContact_Type import empathy.ContactList as PyEmpathyContactList_Type import empathy.TpChat as PyEmpathyTpChat_Type |