diff options
Diffstat (limited to 'python/pyempathygtk')
-rw-r--r-- | python/pyempathygtk/pyempathygtk.defs | 283 | ||||
-rw-r--r-- | python/pyempathygtk/pyempathygtk.override | 9 |
2 files changed, 188 insertions, 104 deletions
diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs index d4601b211..d931fcc4d 100644 --- a/python/pyempathygtk/pyempathygtk.defs +++ b/python/pyempathygtk/pyempathygtk.defs @@ -7,6 +7,13 @@ (gtype-id "EMPATHY_TYPE_ACCOUNT_CHOOSER") ) +(define-object AccountWidget + (in-module "Empathy") + (parent "GObject") + (c-name "EmpathyAccountWidget") + (gtype-id "EMPATHY_TYPE_ACCOUNT_WIDGET") +) + (define-object AvatarChooser (in-module "Empathy") (parent "GtkButton") @@ -111,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") @@ -118,11 +132,11 @@ (gtype-id "EMPATHY_TYPE_PRESENCE_CHOOSER") ) -(define-object ProfileChooser +(define-object ProtocolChooser (in-module "Empathy") (parent "GtkComboBox") - (c-name "EmpathyProfileChooser") - (gtype-id "EMPATHY_TYPE_PROFILE_CHOOSER") + (c-name "EmpathyProtocolChooser") + (gtype-id "EMPATHY_TYPE_PROTOCOL_CHOOSER") ) (define-object SmileyManager @@ -132,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") @@ -255,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 @@ -328,103 +368,53 @@ ;; From empathy-account-widget.h -(define-method widget_handle_params - (of-object "EmpathyAccount") - (c-name "empathy_account_widget_handle_params") - (return-type "none") - (parameters - '("GtkBuilder*" "gui") - '("const-gchar*" "first_widget") - ) - (varargs #t) +(define-function account_widget_get_type + (c-name "empathy_account_widget_get_type") + (return-type "GType") ) -(define-method widget_add_forget_button - (of-object "EmpathyAccount") - (c-name "empathy_account_widget_add_forget_button") - (return-type "none") - (parameters - '("GtkBuilder*" "gui") - '("const-gchar*" "button") - '("const-gchar*" "entry") - ) +(define-method get_widget + (of-object "EmpathyAccountWidget") + (c-name "empathy_account_widget_get_widget") + (return-type "GtkWidget*") ) -(define-function account_widget_set_default_focus - (c-name "empathy_account_widget_set_default_focus") - (return-type "none") +(define-function account_widget_new_for_protocol + (c-name "empathy_account_widget_new_for_protocol") + (return-type "EmpathyAccountWidget*") (parameters - '("GtkBuilder*" "gui") - '("const-gchar*" "entry") + '("const-char*" "protocol") + '("EmpathyAccountSettings*" "settings") + '("gboolean" "simple") ) ) -(define-method widget_generic_new - (of-object "EmpathyAccount") - (c-name "empathy_account_widget_generic_new") - (return-type "GtkWidget*") -) - -(define-method widget_salut_new - (of-object "EmpathyAccount") - (c-name "empathy_account_widget_salut_new") - (return-type "GtkWidget*") -) - -(define-method widget_msn_new - (of-object "EmpathyAccount") - (c-name "empathy_account_widget_msn_new") - (return-type "GtkWidget*") -) - -(define-method widget_jabber_new - (of-object "EmpathyAccount") - (c-name "empathy_account_widget_jabber_new") - (return-type "GtkWidget*") -) - -(define-method widget_icq_new - (of-object "EmpathyAccount") - (c-name "empathy_account_widget_icq_new") - (return-type "GtkWidget*") -) - -(define-method widget_aim_new - (of-object "EmpathyAccount") - (c-name "empathy_account_widget_aim_new") - (return-type "GtkWidget*") -) - -(define-method widget_yahoo_new - (of-object "EmpathyAccount") - (c-name "empathy_account_widget_yahoo_new") - (return-type "GtkWidget*") -) - -(define-method widget_groupwise_new - (of-object "EmpathyAccount") - (c-name "empathy_account_widget_groupwise_new") - (return-type "GtkWidget*") -) - ;; From empathy-account-widget-irc.h -(define-method widget_irc_new - (of-object "EmpathyAccount") - (c-name "empathy_account_widget_irc_new") - (return-type "GtkWidget*") +(define-method irc_build + (of-object "EmpathyAccountWidget") + (c-name "empathy_account_widget_irc_build") + (return-type "none") + (parameters + '("const-char*" "filename") + '("GtkWidget**" "table_common_settings") + ) ) ;; From empathy-account-widget-sip.h -(define-method widget_sip_new - (of-object "EmpathyAccount") - (c-name "empathy_account_widget_sip_new") - (return-type "GtkWidget*") +(define-method sip_build + (of-object "EmpathyAccountWidget") + (c-name "empathy_account_widget_sip_build") + (return-type "none") + (parameters + '("const-char*" "filename") + '("GtkWidget**" "table_common_settings") + ) ) @@ -1238,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 @@ -1550,29 +1552,36 @@ -;; From empathy-profile-chooser.h +;; From empathy-protocol-chooser.h -(define-function profile_chooser_get_type - (c-name "empathy_profile_chooser_get_type") +(define-function protocol_chooser_get_type + (c-name "empathy_protocol_chooser_get_type") (return-type "GType") ) -(define-function profile_chooser_new - (c-name "empathy_profile_chooser_new") - (is-constructor-of "EmpathyProfileChooser") +(define-function protocol_chooser_new + (c-name "empathy_protocol_chooser_new") + (is-constructor-of "EmpathyProtocolChooser") (return-type "GtkWidget*") ) (define-method dup_selected - (of-object "EmpathyProfileChooser") - (c-name "empathy_profile_chooser_dup_selected") - (return-type "McProfile*") + (of-object "EmpathyProtocolChooser") + (c-name "empathy_protocol_chooser_dup_selected") + (return-type "TpConnectionManager*") + (parameters + '("TpConnectionManagerProtocol**" "protocol") + ) ) -(define-method n_profiles - (of-object "EmpathyProfileChooser") - (c-name "empathy_profile_chooser_n_profiles") - (return-type "gint") +(define-method set_visible + (of-object "EmpathyProtocolChooser") + (c-name "empathy_protocol_chooser_set_visible") + (return-type "none") + (parameters + '("EmpathyProtocolChooserFilterFunc" "func") + '("gpointer" "user_data") + ) ) @@ -1640,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 @@ -1694,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 @@ -1754,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 @@ -1796,14 +1881,6 @@ ) ) -(define-function icon_name_from_account - (c-name "empathy_icon_name_from_account") - (return-type "const-gchar*") - (parameters - '("EmpathyAccount*" "account") - ) -) - (define-function icon_name_for_presence (c-name "empathy_icon_name_for_presence") (return-type "const-gchar*") diff --git a/python/pyempathygtk/pyempathygtk.override b/python/pyempathygtk/pyempathygtk.override index 3229cbac2..378fe3684 100644 --- a/python/pyempathygtk/pyempathygtk.override +++ b/python/pyempathygtk/pyempathygtk.override @@ -2,6 +2,7 @@ headers #include <Python.h> #include <pygobject.h> +#include <libempathy/empathy-enum-types.h> #include "empathy-account-chooser.h" #include "empathy-account-widget.h" #include "empathy-account-widget-irc.h" @@ -24,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-profile-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" @@ -61,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 @@ -68,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 |