X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=python%2Fpyempathygtk%2Fpyempathygtk.defs;h=1cb19f52744799441f1a515bbfd29bd1814aa3a9;hp=3c83a28ec52a501d29b237e954ea17375c0970aa;hb=814e6198069aaa5df9cf63e51b29afe78ef22dde;hpb=65f7803dd86bdb99814cbabda7dfb9e9116d86f1 diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs index 3c83a28e..1cb19f52 100644 --- a/python/pyempathygtk/pyempathygtk.defs +++ b/python/pyempathygtk/pyempathygtk.defs @@ -56,7 +56,7 @@ (gtype-id "EMPATHY_TYPE_CHAT_TEXT_VIEW") ) -(define-object ChatView +(define-interface ChatView (in-module "Empathy") (c-name "EmpathyChatView") (gtype-id "EMPATHY_TYPE_CHAT_VIEW") @@ -83,9 +83,37 @@ (gtype-id "EMPATHY_TYPE_CONTACT_LIST_VIEW") ) +(define-object ContactSelector + (in-module "Empathy") + (parent "GtkComboBox") + (c-name "EmpathyContactSelector") + (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") + (parent "GtkComboBoxEntry") (c-name "EmpathyPresenceChooser") (gtype-id "EMPATHY_TYPE_PRESENCE_CHOOSER") ) @@ -118,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 @@ -198,6 +233,37 @@ ) ) +(define-enum GstVideoSrcChannel + (in-module "Empathy") + (c-name "EmpathyGstVideoSrcChannel") + (gtype-id "EMPATHY_TYPE_GST_VIDEO_SRC_CHANNEL") + (values + '("empathy-gst-video-src-channel-contrast" "EMPATHY_GST_VIDEO_SRC_CHANNEL_CONTRAST") + '("empathy-gst-video-src-channel-brightness" "EMPATHY_GST_VIDEO_SRC_CHANNEL_BRIGHTNESS") + '("empathy-gst-video-src-channel-gamma" "EMPATHY_GST_VIDEO_SRC_CHANNEL_GAMMA") + '("nr-empathy-gst-video-src-channels" "NR_EMPATHY_GST_VIDEO_SRC_CHANNELS") + ) +) + +(define-enum Sound + (in-module "Empathy") + (c-name "EmpathySound") + (gtype-id "EMPATHY_TYPE_SOUND") + (values + '("empathy-sound-message-incoming" "EMPATHY_SOUND_MESSAGE_INCOMING") + '("empathy-sound-message-outgoing" "EMPATHY_SOUND_MESSAGE_OUTGOING") + '("empathy-sound-conversation-new" "EMPATHY_SOUND_CONVERSATION_NEW") + '("empathy-sound-contact-connected" "EMPATHY_SOUND_CONTACT_CONNECTED") + '("empathy-sound-contact-disconnected" "EMPATHY_SOUND_CONTACT_DISCONNECTED") + '("empathy-sound-account-connected" "EMPATHY_SOUND_ACCOUNT_CONNECTED") + '("empathy-sound-account-disconnected" "EMPATHY_SOUND_ACCOUNT_DISCONNECTED") + '("empathy-sound-phone-incoming" "EMPATHY_SOUND_PHONE_INCOMING") + '("empathy-sound-phone-outgoing" "EMPATHY_SOUND_PHONE_OUTGOING") + '("empathy-sound-phone-hangup" "EMPATHY_SOUND_PHONE_HANGUP") + '("last-empathy-sound" "LAST_EMPATHY_SOUND") + ) +) + ;; From empathy-account-chooser.h @@ -270,8 +336,8 @@ (return-type "none") (parameters '("McAccount*" "account") - '("GladeXML*" "glade") - '("const-gchar*" "first_widget_name") + '("GtkBuilder*" "gui") + '("const-gchar*" "first_widget") ) (varargs #t) ) @@ -281,7 +347,7 @@ (return-type "none") (parameters '("McAccount*" "account") - '("GladeXML*" "glade") + '("GtkBuilder*" "gui") '("const-gchar*" "button") '("const-gchar*" "entry") ) @@ -1145,6 +1211,40 @@ +;; From empathy-contact-selector.h + +(define-function contact_selector_get_type + (c-name "empathy_contact_selector_get_type") + (return-type "GType") +) + +(define-function contact_selector_new + (c-name "empathy_contact_selector_new") + (is-constructor-of "EmpathyContactSelector") + (return-type "GtkWidget*") + (parameters + '("EmpathyContactList*" "contact_list") + ) +) + +(define-method dup_selected + (of-object "EmpathyContactSelector") + (c-name "empathy_contact_selector_dup_selected") + (return-type "EmpathyContact*") +) + +(define-method set_visible + (of-object "EmpathyContactSelector") + (c-name "empathy_contact_selector_set_visible") + (return-type "none") + (parameters + '("EmpathyContactSelectorFilterFunc" "func") + '("gpointer" "user_data") + ) +) + + + ;; From empathy-contact-widget.h (define-method widget_new @@ -1213,6 +1313,152 @@ +;; 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*") +) + +(define-function audio_sink_set_volume + (c-name "empathy_audio_sink_set_volume") + (return-type "none") + (parameters + '("EmpathyGstAudioSink*" "sink") + '("gdouble" "volume") + ) +) + +(define-function audio_sink_get_volume + (c-name "empathy_audio_sink_get_volume") + (return-type "gdouble") + (parameters + '("EmpathyGstAudioSink*" "sink") + ) +) + + + +;; 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*") +) + +(define-function audio_src_set_volume + (c-name "empathy_audio_src_set_volume") + (return-type "none") + (parameters + '("EmpathyGstAudioSrc*" "src") + '("gdouble" "volume") + ) +) + +(define-function audio_src_get_volume + (c-name "empathy_audio_src_get_volume") + (return-type "gdouble") + (parameters + '("EmpathyGstAudioSrc*" "src") + ) +) + + + +;; 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*") +) + +(define-function video_src_get_supported_channels + (c-name "empathy_video_src_get_supported_channels") + (return-type "guint") + (parameters + '("GstElement*" "src") + ) +) + +(define-function video_src_set_channel + (c-name "empathy_video_src_set_channel") + (return-type "none") + (parameters + '("GstElement*" "src") + '("EmpathyGstVideoSrcChannel" "channel") + '("guint" "percent") + ) +) + +(define-function video_src_get_channel + (c-name "empathy_video_src_get_channel") + (return-type "guint") + (parameters + '("GstElement*" "src") + '("EmpathyGstVideoSrcChannel" "channel") + ) +) + + + +;; 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 @@ -1310,9 +1556,8 @@ (return-type "GType") ) -(define-function smiley_manager_new - (c-name "empathy_smiley_manager_new") - (is-constructor-of "EmpathySmileyManager") +(define-function smiley_manager_dup_singleton + (c-name "empathy_smiley_manager_dup_singleton") (return-type "EmpathySmileyManager*") ) @@ -1509,50 +1754,39 @@ (return-type "none") ) -(define-function glade_get_file_simple - (c-name "empathy_glade_get_file_simple") - (return-type "none") - (parameters - '("const-gchar*" "filename") - '("const-gchar*" "root") - '("const-gchar*" "domain") - '("const-gchar*" "first_required_widget") - ) - (varargs #t) +(define-function uri_regex_dup_singleton + (c-name "empathy_uri_regex_dup_singleton") + (return-type "GRegex*") ) -(define-function glade_get_file - (c-name "empathy_glade_get_file") - (return-type "GladeXML*") +(define-function builder_get_file + (c-name "empathy_builder_get_file") + (return-type "GtkBuilder*") (parameters '("const-gchar*" "filename") - '("const-gchar*" "root") - '("const-gchar*" "domain") - '("const-gchar*" "first_required_widget") + '("const-gchar*" "first_object") ) (varargs #t) ) -(define-function glade_connect - (c-name "empathy_glade_connect") +(define-function builder_connect + (c-name "empathy_builder_connect") (return-type "none") (parameters - '("GladeXML*" "gui") + '("GtkBuilder*" "gui") '("gpointer" "user_data") - '("gchar*" "first_widget") + '("gchar*" "first_object") ) (varargs #t) ) -(define-function glade_setup_size_group - (c-name "empathy_glade_setup_size_group") - (return-type "none") +(define-function builder_unref_and_keep_widget + (c-name "empathy_builder_unref_and_keep_widget") + (return-type "GtkWidget*") (parameters - '("GladeXML*" "gui") - '("GtkSizeGroupMode" "mode") - '("gchar*" "first_widget") + '("GtkBuilder*" "gui") + '("GtkWidget*" "root") ) - (varargs #t) ) (define-function icon_name_from_account @@ -1636,6 +1870,15 @@ ) ) +(define-function pixbuf_from_icon_name_sized + (c-name "empathy_pixbuf_from_icon_name_sized") + (return-type "GdkPixbuf*") + (parameters + '("const-gchar*" "icon_name") + '("gint" "size") + ) +) + (define-function text_iter_forward_search (c-name "empathy_text_iter_forward_search") (return-type "gboolean") @@ -1737,10 +1980,25 @@ (return-type "none") (parameters '("GtkWidget*" "widget") - '("const-char*" "key") - '("const-char*" "event_id") - '("const-char*" "description") + '("EmpathySound" "sound_id") + ) +) + +(define-function sound_play_full + (c-name "empathy_sound_play_full") + (return-type "gboolean") + (parameters + '("GtkWidget*" "widget") + '("EmpathySound" "sound_id") + '("ca_finish_callback_t" "callback") + '("gpointer" "user_data") ) ) +(define-method stop + (of-object "EmpathySound") + (c-name "empathy_sound_stop") + (return-type "none") +) +