diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-08-25 22:23:00 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-08-25 22:42:16 +0800 |
commit | 0f409b69e73a7ec78126afa06ee2edcb17b7769b (patch) | |
tree | 005174731dad47575d6aa03f1efbf734f9130847 /python/pyempathygtk | |
parent | 98d56a7c21f8723e03f55415937376f7cde1087b (diff) | |
download | gsoc2013-empathy-0f409b69e73a7ec78126afa06ee2edcb17b7769b.tar gsoc2013-empathy-0f409b69e73a7ec78126afa06ee2edcb17b7769b.tar.gz gsoc2013-empathy-0f409b69e73a7ec78126afa06ee2edcb17b7769b.tar.bz2 gsoc2013-empathy-0f409b69e73a7ec78126afa06ee2edcb17b7769b.tar.lz gsoc2013-empathy-0f409b69e73a7ec78126afa06ee2edcb17b7769b.tar.xz gsoc2013-empathy-0f409b69e73a7ec78126afa06ee2edcb17b7769b.tar.zst gsoc2013-empathy-0f409b69e73a7ec78126afa06ee2edcb17b7769b.zip |
Update python bindings
Diffstat (limited to 'python/pyempathygtk')
-rw-r--r-- | python/pyempathygtk/pyempathygtk.defs | 121 | ||||
-rw-r--r-- | python/pyempathygtk/pyempathygtk.override | 6 |
2 files changed, 127 insertions, 0 deletions
diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs index 82fe5daca..d931fcc4d 100644 --- a/python/pyempathygtk/pyempathygtk.defs +++ b/python/pyempathygtk/pyempathygtk.defs @@ -118,6 +118,13 @@ (gtype-id "EMPATHY_TYPE_GST_VIDEO_SRC") ) +(define-object KludgeLabel + (in-module "Empathy") + (parent "GtkLabel") + (c-name "EmpathyKludgeLabel") + (gtype-id "EMPATHY_TYPE_KLUDGE_LABEL") +) + (define-object PresenceChooser (in-module "Empathy") (parent "GtkComboBoxEntry") @@ -139,6 +146,13 @@ (gtype-id "EMPATHY_TYPE_SMILEY_MANAGER") ) +(define-object StatusPresetDialog + (in-module "Empathy") + (parent "GtkDialog") + (c-name "EmpathyStatusPresetDialog") + (gtype-id "EMPATHY_TYPE_STATUS_PRESET_DIALOG") +) + (define-object ThemeBoxes (in-module "Empathy") (parent "EmpathyChatTextView") @@ -262,6 +276,25 @@ ) ) +(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 @@ -1195,6 +1228,18 @@ +;; From empathy-share-my-desktop.h + +(define-function share_my_desktop_share_with_contact + (c-name "empathy_share_my_desktop_share_with_contact") + (return-type "none") + (parameters + '("EmpathyContact*" "contact") + ) +) + + + ;; From empathy-contact-selector.h (define-function contact_selector_get_type @@ -1604,6 +1649,46 @@ +;; From empathy-sound.h + +(define-function sound_play + (c-name "empathy_sound_play") + (return-type "gboolean") + (parameters + '("GtkWidget*" "widget") + '("EmpathySound" "sound_id") + ) +) + +(define-method stop + (of-object "EmpathySound") + (c-name "empathy_sound_stop") + (return-type "none") +) + +(define-function sound_start_playing + (c-name "empathy_sound_start_playing") + (return-type "gboolean") + (parameters + '("GtkWidget*" "widget") + '("EmpathySound" "sound_id") + '("guint" "timeout_before_replay") + ) +) + +(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") + ) +) + + + ;; From empathy-spell.h (define-function spell_supported @@ -1658,6 +1743,24 @@ +;; From empathy-status-preset-dialog.h + +(define-function status_preset_dialog_get_type + (c-name "empathy_status_preset_dialog_get_type") + (return-type "GType") +) + +(define-function status_preset_dialog_new + (c-name "empathy_status_preset_dialog_new") + (is-constructor-of "EmpathyStatusPresetDialog") + (return-type "GtkWidget*") + (parameters + '("GtkWindow*" "parent") + ) +) + + + ;; From empathy-theme-boxes.h (define-function theme_boxes_get_type @@ -1718,6 +1821,24 @@ +;; From empathy-kludge-label.h + +(define-function kludge_label_get_type + (c-name "empathy_kludge_label_get_type") + (return-type "GType") +) + +(define-function kludge_label_new + (c-name "empathy_kludge_label_new") + (is-constructor-of "EmpathyKludgeLabel") + (return-type "GtkWidget*") + (parameters + '("const-char*" "str") + ) +) + + + ;; From empathy-ui-utils.h (define-function gtk_init diff --git a/python/pyempathygtk/pyempathygtk.override b/python/pyempathygtk/pyempathygtk.override index d758afbf8..378fe3684 100644 --- a/python/pyempathygtk/pyempathygtk.override +++ b/python/pyempathygtk/pyempathygtk.override @@ -25,12 +25,14 @@ headers #include "empathy-gtk-enum-types.h" #include "empathy-images.h" #include "empathy-irc-network-dialog.h" +#include "empathy-kludge-label.h" #include "empathy-log-window.h" #include "empathy-new-message-dialog.h" #include "empathy-presence-chooser.h" #include "empathy-protocol-chooser.h" #include "empathy-smiley-manager.h" #include "empathy-spell.h" +#include "empathy-status-preset-dialog.h" #include "empathy-theme-boxes.h" #include "empathy-theme-irc.h" #include "empathy-theme-manager.h" @@ -62,6 +64,8 @@ import gtk.Bin as PyGtkBin_Type import gtk.DrawingArea as PyGtkDrawingArea_Type import gtk.ComboBoxEntry as PyGtkComboBoxEntry_Type import gtk.Builder as PyGtkBuilder_Type +import gtk.Label as PyGtkLabel_Type +import gtk.Dialog as PyGtkDialog_Type import gst.Bin as PyGstBin_Type import empathy.Contact as PyEmpathyContact_Type import empathy.ContactList as PyEmpathyContactList_Type @@ -69,6 +73,8 @@ import empathy.TpChat as PyEmpathyTpChat_Type import empathy.Message as PyEmpathyMessage_Type import empathy.TpCall as PyEmpathyTpCall_Type import empathy.FTHandler as PyEmpathyFTHandler_Type +import empathy.Account as PyEmpathyAccount_Type +import empathy.AccountSettings as PyEmpathyAccountSettings_Type %% ignore-glob *_get_type |