diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-22 01:03:23 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-22 01:03:23 +0800 |
commit | 0ccf92f2b7b27dd85e722188cab07041f1083314 (patch) | |
tree | cc60e816404e0b4bc8758d8aa9b2b45561ca7fce | |
parent | fee38f8b6bb302fafb9e506cf7522c6071f76a55 (diff) | |
download | gsoc2013-empathy-0ccf92f2b7b27dd85e722188cab07041f1083314.tar gsoc2013-empathy-0ccf92f2b7b27dd85e722188cab07041f1083314.tar.gz gsoc2013-empathy-0ccf92f2b7b27dd85e722188cab07041f1083314.tar.bz2 gsoc2013-empathy-0ccf92f2b7b27dd85e722188cab07041f1083314.tar.lz gsoc2013-empathy-0ccf92f2b7b27dd85e722188cab07041f1083314.tar.xz gsoc2013-empathy-0ccf92f2b7b27dd85e722188cab07041f1083314.tar.zst gsoc2013-empathy-0ccf92f2b7b27dd85e722188cab07041f1083314.zip |
Update python bindings
-rw-r--r-- | python/pyempathy/pyempathy.defs | 10 | ||||
-rw-r--r-- | python/pyempathygtk/pyempathygtk.defs | 143 |
2 files changed, 33 insertions, 120 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs index b8f0b40aa..ee8aab8d0 100644 --- a/python/pyempathy/pyempathy.defs +++ b/python/pyempathy/pyempathy.defs @@ -365,6 +365,16 @@ ) ) +(define-method get_requested_global_presence + (of-object "EmpathyAccountManager") + (c-name "empathy_account_manager_get_requested_global_presence") + (return-type "TpConnectionPresenceType") + (parameters + '("gchar**" "status") + '("gchar**" "message") + ) +) + (define-method get_global_presence (of-object "EmpathyAccountManager") (c-name "empathy_account_manager_get_global_presence") diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs index 51d32709e..dd906cddd 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") @@ -328,114 +335,16 @@ ;; From empathy-account-widget.h -(define-function account_widget_handle_params - (c-name "empathy_account_widget_handle_params") - (return-type "none") - (parameters - '("EmpathyAccountSettings*" "settings") - '("GtkBuilder*" "gui") - '("const-gchar*" "first_widget") - ) - (varargs #t) -) - -(define-function account_widget_add_forget_button - (c-name "empathy_account_widget_add_forget_button") - (return-type "none") - (parameters - '("EmpathyAccountSettings*" "settings") - '("GtkBuilder*" "gui") - '("const-gchar*" "button") - '("const-gchar*" "entry") - ) -) - -(define-function account_widget_add_apply_button - (c-name "empathy_account_widget_add_apply_button") - (return-type "none") - (parameters - '("EmpathyAccountSettings*" "settings") - '("GtkWidget*" "vbox") - ) -) - -(define-function account_widget_set_default_focus - (c-name "empathy_account_widget_set_default_focus") - (return-type "none") - (parameters - '("GtkBuilder*" "gui") - '("const-gchar*" "entry") - ) -) - -(define-function account_widget_generic_new - (c-name "empathy_account_widget_generic_new") - (is-constructor-of "EmpathyAccountWidgetGeneric") - (return-type "GtkWidget*") - (parameters - '("EmpathyAccountSettings*" "settings") - ) -) - -(define-function account_widget_salut_new - (c-name "empathy_account_widget_salut_new") - (is-constructor-of "EmpathyAccountWidgetSalut") - (return-type "GtkWidget*") - (parameters - '("EmpathyAccountSettings*" "settings") - ) -) - -(define-function account_widget_msn_new - (c-name "empathy_account_widget_msn_new") - (is-constructor-of "EmpathyAccountWidgetMsn") - (return-type "GtkWidget*") - (parameters - '("EmpathyAccountSettings*" "settings") - ) -) - -(define-function account_widget_jabber_new - (c-name "empathy_account_widget_jabber_new") - (is-constructor-of "EmpathyAccountWidgetJabber") - (return-type "GtkWidget*") - (parameters - '("EmpathyAccountSettings*" "settings") - ) -) - -(define-function account_widget_icq_new - (c-name "empathy_account_widget_icq_new") - (is-constructor-of "EmpathyAccountWidgetIcq") - (return-type "GtkWidget*") - (parameters - '("EmpathyAccountSettings*" "settings") - ) -) - -(define-function account_widget_aim_new - (c-name "empathy_account_widget_aim_new") - (is-constructor-of "EmpathyAccountWidgetAim") - (return-type "GtkWidget*") - (parameters - '("EmpathyAccountSettings*" "settings") - ) -) - -(define-function account_widget_yahoo_new - (c-name "empathy_account_widget_yahoo_new") - (is-constructor-of "EmpathyAccountWidgetYahoo") - (return-type "GtkWidget*") - (parameters - '("EmpathyAccountSettings*" "settings") - ) +(define-function account_widget_get_type + (c-name "empathy_account_widget_get_type") + (return-type "GType") ) -(define-function account_widget_groupwise_new - (c-name "empathy_account_widget_groupwise_new") - (is-constructor-of "EmpathyAccountWidgetGroupwise") +(define-function account_widget_new_for_protocol + (c-name "empathy_account_widget_new_for_protocol") (return-type "GtkWidget*") (parameters + '("const-char*" "protocol") '("EmpathyAccountSettings*" "settings") ) ) @@ -444,12 +353,12 @@ ;; From empathy-account-widget-irc.h -(define-function account_widget_irc_new - (c-name "empathy_account_widget_irc_new") - (is-constructor-of "EmpathyAccountWidgetIrc") - (return-type "GtkWidget*") +(define-method irc_build + (of-object "EmpathyAccountWidget") + (c-name "empathy_account_widget_irc_build") + (return-type "none") (parameters - '("EmpathyAccountSettings*" "settings") + '("const-char*" "filename") ) ) @@ -457,12 +366,12 @@ ;; From empathy-account-widget-sip.h -(define-function account_widget_sip_new - (c-name "empathy_account_widget_sip_new") - (is-constructor-of "EmpathyAccountWidgetSip") - (return-type "GtkWidget*") +(define-method sip_build + (of-object "EmpathyAccountWidget") + (c-name "empathy_account_widget_sip_build") + (return-type "none") (parameters - '("EmpathyAccountSettings*" "settings") + '("const-char*" "filename") ) ) @@ -1611,12 +1520,6 @@ ) ) -(define-method n_protocols - (of-object "EmpathyProtocolChooser") - (c-name "empathy_protocol_chooser_n_protocols") - (return-type "gint") -) - ;; From empathy-smiley-manager.h |