aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-08-25 22:23:00 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-08-25 22:42:16 +0800
commit0f409b69e73a7ec78126afa06ee2edcb17b7769b (patch)
tree005174731dad47575d6aa03f1efbf734f9130847 /python
parent98d56a7c21f8723e03f55415937376f7cde1087b (diff)
downloadgsoc2013-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')
-rw-r--r--python/pyempathy/pyempathy.defs634
-rw-r--r--python/pyempathy/pyempathy.override4
-rw-r--r--python/pyempathygtk/pyempathygtk.defs121
-rw-r--r--python/pyempathygtk/pyempathygtk.override6
-rwxr-xr-xpython/update-binding.sh10
5 files changed, 775 insertions, 0 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs
index ee8aab8d0..3a8b3a9f6 100644
--- a/python/pyempathy/pyempathy.defs
+++ b/python/pyempathy/pyempathy.defs
@@ -1,5 +1,12 @@
;; -*- scheme -*-
; object definitions ...
+(define-object Account
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyAccount")
+ (gtype-id "EMPATHY_TYPE_ACCOUNT")
+)
+
(define-object AccountManager
(in-module "Empathy")
(parent "GObject")
@@ -7,6 +14,13 @@
(gtype-id "EMPATHY_TYPE_ACCOUNT_MANAGER")
)
+(define-object AccountSettings
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyAccountSettings")
+ (gtype-id "EMPATHY_TYPE_ACCOUNT_SETTINGS")
+)
+
(define-object CallFactory
(in-module "Empathy")
(parent "GObject")
@@ -35,6 +49,20 @@
(gtype-id "EMPATHY_TYPE_CHATROOM_MANAGER")
)
+(define-object ConnectionManagers
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyConnectionManagers")
+ (gtype-id "EMPATHY_TYPE_CONNECTION_MANAGERS")
+)
+
+(define-object Connectivity
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyConnectivity")
+ (gtype-id "EMPATHY_TYPE_CONNECTIVITY")
+)
+
(define-object Contact
(in-module "Empathy")
(parent "GObject")
@@ -63,6 +91,13 @@
(gtype-id "EMPATHY_TYPE_CONTACT_MONITOR")
)
+(define-object Debugger
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyDebugger")
+ (gtype-id "EMPATHY_TYPE_DEBUGGER")
+)
+
(define-object DispatchOperation
(in-module "Empathy")
(parent "GObject")
@@ -234,6 +269,7 @@
'("other" "EMPATHY_DEBUG_OTHER")
'("share-desktop" "EMPATHY_DEBUG_SHARE_DESKTOP")
'("connectivity" "EMPATHY_DEBUG_CONNECTIVITY")
+ '("import-mc4-accounts" "EMPATHY_DEBUG_IMPORT_MC4_ACCOUNTS")
)
)
@@ -279,6 +315,475 @@
)
+;; From empathy-account-settings.h
+
+(define-function account_settings_get_type
+ (c-name "empathy_account_settings_get_type")
+ (return-type "GType")
+)
+
+(define-function account_settings_new
+ (c-name "empathy_account_settings_new")
+ (is-constructor-of "EmpathyAccountSettings")
+ (return-type "EmpathyAccountSettings*")
+ (parameters
+ '("const-gchar*" "connection_manager")
+ '("const-gchar*" "protocol")
+ '("const-char*" "display_name")
+ )
+)
+
+(define-method settings_new_for_account
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_settings_new_for_account")
+ (return-type "EmpathyAccountSettings*")
+)
+
+(define-method is_ready
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_is_ready")
+ (return-type "gboolean")
+)
+
+(define-method get_cm
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_cm")
+ (return-type "const-gchar*")
+)
+
+(define-method get_protocol
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_protocol")
+ (return-type "const-gchar*")
+)
+
+(define-method get_account
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_account")
+ (return-type "EmpathyAccount*")
+)
+
+(define-method has_account
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_has_account")
+ (return-type "gboolean")
+ (parameters
+ '("EmpathyAccount*" "account")
+ )
+)
+
+(define-method get_tp_params
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_tp_params")
+ (return-type "TpConnectionManagerParam*")
+)
+
+(define-method unset
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_unset")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "param")
+ )
+)
+
+(define-method discard_changes
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_discard_changes")
+ (return-type "none")
+)
+
+(define-method get
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get")
+ (return-type "const-GValue*")
+ (parameters
+ '("const-gchar*" "param")
+ )
+)
+
+(define-method get_dbus_signature
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_dbus_signature")
+ (return-type "const-gchar*")
+ (parameters
+ '("const-gchar*" "param")
+ )
+)
+
+(define-method get_default
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_default")
+ (return-type "const-GValue*")
+ (parameters
+ '("const-gchar*" "param")
+ )
+)
+
+(define-method get_string
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_string")
+ (return-type "const-gchar*")
+ (parameters
+ '("const-gchar*" "param")
+ )
+)
+
+(define-method get_int32
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_int32")
+ (return-type "gint32")
+ (parameters
+ '("const-gchar*" "param")
+ )
+)
+
+(define-method get_int64
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_int64")
+ (return-type "gint64")
+ (parameters
+ '("const-gchar*" "param")
+ )
+)
+
+(define-method get_uint32
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_uint32")
+ (return-type "guint32")
+ (parameters
+ '("const-gchar*" "param")
+ )
+)
+
+(define-method get_uint64
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_uint64")
+ (return-type "guint64")
+ (parameters
+ '("const-gchar*" "param")
+ )
+)
+
+(define-method get_boolean
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_boolean")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "param")
+ )
+)
+
+(define-method set_string
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_set_string")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "param")
+ '("const-gchar*" "value")
+ )
+)
+
+(define-method set_int32
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_set_int32")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "param")
+ '("gint32" "value")
+ )
+)
+
+(define-method set_int64
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_set_int64")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "param")
+ '("gint64" "value")
+ )
+)
+
+(define-method set_uint32
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_set_uint32")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "param")
+ '("guint32" "value")
+ )
+)
+
+(define-method set_uint64
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_set_uint64")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "param")
+ '("guint64" "value")
+ )
+)
+
+(define-method set_boolean
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_set_boolean")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "param")
+ '("gboolean" "value")
+ )
+)
+
+(define-method get_icon_name
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_icon_name")
+ (return-type "gchar*")
+)
+
+(define-method get_display_name
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_get_display_name")
+ (return-type "const-gchar*")
+)
+
+(define-method set_display_name_async
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_set_display_name_async")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "name")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method set_display_name_finish
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_set_display_name_finish")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-method apply_async
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_apply_async")
+ (return-type "none")
+ (parameters
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method apply_finish
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_apply_finish")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-method is_valid
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_is_valid")
+ (return-type "gboolean")
+)
+
+
+
+;; From empathy-account.h
+
+(define-function account_get_type
+ (c-name "empathy_account_get_type")
+ (return-type "GType")
+)
+
+(define-method is_just_connected
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_is_just_connected")
+ (return-type "gboolean")
+)
+
+(define-method get_connection
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_get_connection")
+ (return-type "TpConnection*")
+)
+
+(define-method get_connection_for_path
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_get_connection_for_path")
+ (return-type "TpConnection*")
+ (parameters
+ '("const-gchar*" "path")
+ )
+)
+
+(define-method get_unique_name
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_get_unique_name")
+ (return-type "const-gchar*")
+)
+
+(define-method get_display_name
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_get_display_name")
+ (return-type "const-gchar*")
+)
+
+(define-method get_connection_manager
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_get_connection_manager")
+ (return-type "const-gchar*")
+)
+
+(define-method get_protocol
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_get_protocol")
+ (return-type "const-gchar*")
+)
+
+(define-method get_icon_name
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_get_icon_name")
+ (return-type "const-gchar*")
+)
+
+(define-method set_enabled_async
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_set_enabled_async")
+ (return-type "none")
+ (parameters
+ '("gboolean" "enabled")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method set_enabled_finish
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_set_enabled_finish")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-method is_enabled
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_is_enabled")
+ (return-type "gboolean")
+)
+
+(define-method is_valid
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_is_valid")
+ (return-type "gboolean")
+)
+
+(define-method is_ready
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_is_ready")
+ (return-type "gboolean")
+)
+
+(define-method update_settings_async
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_update_settings_async")
+ (return-type "none")
+ (parameters
+ '("GHashTable*" "parameters")
+ '("const-gchar**" "unset_parameters")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method update_settings_finish
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_update_settings_finish")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-method remove_async
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_remove_async")
+ (return-type "none")
+ (parameters
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method remove_finish
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_remove_finish")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-method set_display_name_async
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_set_display_name_async")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "display_name")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method set_display_name_finish
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_set_display_name_finish")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
+(define-function account_new
+ (c-name "empathy_account_new")
+ (is-constructor-of "EmpathyAccount")
+ (return-type "EmpathyAccount*")
+ (parameters
+ '("TpDBusDaemon*" "bus_daemon")
+ '("const-gchar*" "unique_name")
+ )
+)
+
+(define-method request_presence
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_request_presence")
+ (return-type "none")
+ (parameters
+ '("TpConnectionPresenceType" "type")
+ '("const-gchar*" "status")
+ '("const-gchar*" "message")
+ )
+)
+
+(define-method get_parameters
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_get_parameters")
+ (return-type "const-GHashTable*")
+)
+
+
+
;; From empathy-account-manager.h
(define-function account_manager_get_type
@@ -324,6 +829,15 @@
)
)
+(define-method ensure_account
+ (of-object "EmpathyAccountManager")
+ (c-name "empathy_account_manager_ensure_account")
+ (return-type "EmpathyAccount*")
+ (parameters
+ '("const-gchar*" "unique_name")
+ )
+)
+
(define-method get_account
(of-object "EmpathyAccountManager")
(c-name "empathy_account_manager_get_account")
@@ -783,6 +1297,41 @@
+;; From empathy-connectivity.h
+
+(define-function connectivity_get_type
+ (c-name "empathy_connectivity_get_type")
+ (return-type "GType")
+)
+
+(define-function connectivity_dup_singleton
+ (c-name "empathy_connectivity_dup_singleton")
+ (return-type "EmpathyConnectivity*")
+)
+
+(define-method is_online
+ (of-object "EmpathyConnectivity")
+ (c-name "empathy_connectivity_is_online")
+ (return-type "gboolean")
+)
+
+(define-method get_use_conn
+ (of-object "EmpathyConnectivity")
+ (c-name "empathy_connectivity_get_use_conn")
+ (return-type "gboolean")
+)
+
+(define-method set_use_conn
+ (of-object "EmpathyConnectivity")
+ (c-name "empathy_connectivity_set_use_conn")
+ (return-type "none")
+ (parameters
+ '("gboolean" "use_conn")
+ )
+)
+
+
+
;; From empathy-contact.h
(define-function contact_get_type
@@ -1281,6 +1830,53 @@
+;; From empathy-connection-managers.h
+
+(define-function connection_managers_get_type
+ (c-name "empathy_connection_managers_get_type")
+ (return-type "GType")
+)
+
+(define-function connection_managers_dup_singleton
+ (c-name "empathy_connection_managers_dup_singleton")
+ (return-type "EmpathyConnectionManagers*")
+)
+
+(define-method is_ready
+ (of-object "EmpathyConnectionManagers")
+ (c-name "empathy_connection_managers_is_ready")
+ (return-type "gboolean")
+)
+
+(define-method update
+ (of-object "EmpathyConnectionManagers")
+ (c-name "empathy_connection_managers_update")
+ (return-type "none")
+)
+
+(define-method get_cms
+ (of-object "EmpathyConnectionManagers")
+ (c-name "empathy_connection_managers_get_cms")
+ (return-type "GList*")
+)
+
+(define-method get_cms_num
+ (of-object "EmpathyConnectionManagers")
+ (c-name "empathy_connection_managers_get_cms_num")
+ (return-type "guint")
+)
+
+(define-method get_cm
+ (of-object "EmpathyConnectionManagers")
+ (c-name "empathy_connection_managers_get_cm")
+ (return-type "TpConnectionManager*")
+ (parameters
+ '("const-gchar*" "cm")
+ )
+)
+
+
+
;; From empathy-debug.h
(define-function debug_flag_is_set
@@ -1316,6 +1912,32 @@
+;; From empathy-debugger.h
+
+(define-function debugger_get_type
+ (c-name "empathy_debugger_get_type")
+ (return-type "GType")
+)
+
+(define-function debugger_get_singleton
+ (c-name "empathy_debugger_get_singleton")
+ (return-type "EmpathyDebugger*")
+)
+
+(define-method add_message
+ (of-object "EmpathyDebugger")
+ (c-name "empathy_debugger_add_message")
+ (return-type "none")
+ (parameters
+ '("GTimeVal*" "timestamp")
+ '("const-gchar*" "domain")
+ '("GLogLevelFlags" "level")
+ '("const-gchar*" "string")
+ )
+)
+
+
+
;; From empathy-dispatcher.h
(define-function dispatcher_get_type
@@ -1877,6 +2499,10 @@
+;; From empathy-location.h
+
+
+
;; From empathy-log-manager.h
(define-function log_manager_get_type
@@ -3018,6 +3644,14 @@
)
)
+(define-function protocol_name_to_display_name
+ (c-name "empathy_protocol_name_to_display_name")
+ (return-type "const-gchar*")
+ (parameters
+ '("const-gchar*" "proto_name")
+ )
+)
+
(define-function type_dbus_ao
(c-name "empathy_type_dbus_ao")
(return-type "GType")
diff --git a/python/pyempathy/pyempathy.override b/python/pyempathy/pyempathy.override
index 6f46405a3..a96c7c6f3 100644
--- a/python/pyempathy/pyempathy.override
+++ b/python/pyempathy/pyempathy.override
@@ -3,15 +3,19 @@ headers
#include <Python.h>
#include <pygobject.h>
#include "empathy-account-manager.h"
+#include "empathy-account-settings.h"
#include "empathy-call-factory.h"
#include "empathy-chatroom.h"
#include "empathy-chatroom-manager.h"
+#include "empathy-connection-managers.h"
+#include "empathy-connectivity.h"
#include "empathy-contact.h"
#include "empathy-contact-groups.h"
#include "empathy-contact-list.h"
#include "empathy-contact-manager.h"
#include "empathy-contact-monitor.h"
#include "empathy-debug.h"
+#include "empathy-debugger.h"
#include "empathy-dispatcher.h"
#include "empathy-enum-types.h"
#include "empathy-ft-factory.h"
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
diff --git a/python/update-binding.sh b/python/update-binding.sh
index 3636b6341..34b28200a 100755
--- a/python/update-binding.sh
+++ b/python/update-binding.sh
@@ -5,17 +5,22 @@
cd ../libempathy
python /usr/share/pygobject/2.0/codegen/h2def.py \
-m empathy \
+ empathy-account-settings.h \
+ empathy-account.h \
empathy-account-manager.h \
empathy-chatroom.h \
empathy-chatroom-manager.h \
empathy-call-factory.h \
empathy-call-handler.h \
+ empathy-connectivity.h \
empathy-contact.h \
empathy-contact-groups.h \
empathy-contact-list.h \
empathy-contact-manager.h \
empathy-contact-monitor.h \
+ empathy-connection-managers.h \
empathy-debug.h \
+ empathy-debugger.h \
empathy-dispatcher.h \
empathy-dispatch-operation.h \
empathy-ft-factory.h \
@@ -24,6 +29,7 @@ python /usr/share/pygobject/2.0/codegen/h2def.py \
empathy-irc-network.h \
empathy-irc-network-manager.h \
empathy-irc-server.h \
+ empathy-location.h \
empathy-log-manager.h \
empathy-log-store.h \
empathy-log-store-empathy.h \
@@ -62,6 +68,7 @@ python /usr/share/pygobject/2.0/codegen/h2def.py \
empathy-contact-list-store.h \
empathy-contact-list-view.h \
empathy-contact-menu.h \
+ empathy-share-my-desktop.h \
empathy-contact-selector.h \
empathy-contact-widget.h \
empathy-geometry.h \
@@ -76,10 +83,13 @@ python /usr/share/pygobject/2.0/codegen/h2def.py \
empathy-presence-chooser.h \
empathy-protocol-chooser.h \
empathy-smiley-manager.h \
+ empathy-sound.h \
empathy-spell.h \
+ empathy-status-preset-dialog.h \
empathy-theme-boxes.h \
empathy-theme-irc.h \
empathy-theme-manager.h \
+ empathy-kludge-label.h \
empathy-ui-utils.h \
> ../python/pyempathygtk/pyempathygtk.defs