summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-09-21 19:22:56 +0200
committerXavier Claessens <xclaesse@gmail.com>2009-09-21 19:22:56 +0200
commit4795469644300d0cf8a3e1defd0701c4d2d4cce2 (patch)
treeecb7ab4d0b5366aa6954d45aafadd5d17bffdbab
parentaa71ca13325806aa1ab1c5f4d34b7aa4aa5760fa (diff)
Update python bindingsEMPATHY_2_28_0
-rw-r--r--python/pyempathy/pyempathy.defs116
-rw-r--r--python/pyempathygtk/pyempathygtk.defs22
2 files changed, 138 insertions, 0 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs
index a43f5254b..a6d5db8bb 100644
--- a/python/pyempathy/pyempathy.defs
+++ b/python/pyempathy/pyempathy.defs
@@ -540,6 +540,27 @@
(return-type "gchar*")
)
+(define-method set_icon_name_async
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_set_icon_name_async")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "name")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method set_icon_name_finish
+ (of-object "EmpathyAccountSettings")
+ (c-name "empathy_account_settings_set_icon_name_finish")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
(define-method get_display_name
(of-object "EmpathyAccountSettings")
(c-name "empathy_account_settings_get_display_name")
@@ -674,6 +695,26 @@
)
)
+(define-method reconnect_async
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_reconnect_async")
+ (return-type "none")
+ (parameters
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method reconnect_finish
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_reconnect_finish")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
(define-method is_enabled
(of-object "EmpathyAccount")
(c-name "empathy_account_is_enabled")
@@ -755,6 +796,27 @@
)
)
+(define-method set_icon_name_async
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_set_icon_name_async")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "icon_name")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method set_icon_name_finish
+ (of-object "EmpathyAccount")
+ (c-name "empathy_account_set_icon_name_finish")
+ (return-type "gboolean")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
(define-function account_new
(c-name "empathy_account_new")
(is-constructor-of "EmpathyAccount")
@@ -2037,6 +2099,37 @@
(varargs #t)
)
+(define-function dispatcher_new
+ (c-name "empathy_dispatcher_new")
+ (is-constructor-of "EmpathyDispatcher")
+ (return-type "EmpathyDispatcher*")
+ (parameters
+ '("const-gchar*" "name")
+ '("GPtrArray*" "filters")
+ '("GStrv" "capabilities")
+ )
+)
+
+(define-method add_handler
+ (of-object "EmpathyDispatcher")
+ (c-name "empathy_dispatcher_add_handler")
+ (return-type "EmpathyHandler*")
+ (parameters
+ '("const-gchar*" "name")
+ '("GPtrArray*" "filters")
+ '("GStrv" "capabilities")
+ )
+)
+
+(define-method remove_handler
+ (of-object "EmpathyDispatcher")
+ (c-name "empathy_dispatcher_remove_handler")
+ (return-type "none")
+ (parameters
+ '("EmpathyHandler*" "handler")
+ )
+)
+
(define-function dispatcher_dup_singleton
(c-name "empathy_dispatcher_dup_singleton")
(return-type "EmpathyDispatcher*")
@@ -2765,6 +2858,14 @@
(return-type "GType")
)
+(define-function message_new_from_entry
+ (c-name "empathy_message_new_from_entry")
+ (return-type "EmpathyMessage*")
+ (parameters
+ '("const-gchar*" "message")
+ )
+)
+
(define-function message_new
(c-name "empathy_message_new")
(is-constructor-of "EmpathyMessage")
@@ -2864,6 +2965,21 @@
)
)
+(define-method is_incoming
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_is_incoming")
+ (return-type "gboolean")
+)
+
+(define-method set_incoming
+ (of-object "EmpathyMessage")
+ (c-name "empathy_message_set_incoming")
+ (return-type "none")
+ (parameters
+ '("gboolean" "incoming")
+ )
+)
+
(define-method should_highlight
(of-object "EmpathyMessage")
(c-name "empathy_message_should_highlight")
diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs
index 8fdb38abc..aa2fe4f27 100644
--- a/python/pyempathygtk/pyempathygtk.defs
+++ b/python/pyempathygtk/pyempathygtk.defs
@@ -388,6 +388,18 @@
)
)
+(define-method contains_pending_changes
+ (of-object "EmpathyAccountWidget")
+ (c-name "empathy_account_widget_contains_pending_changes")
+ (return-type "gboolean")
+)
+
+(define-method discard_pending_changes
+ (of-object "EmpathyAccountWidget")
+ (c-name "empathy_account_widget_discard_pending_changes")
+ (return-type "none")
+)
+
;; From empathy-account-widget-irc.h
@@ -1570,6 +1582,7 @@
(return-type "TpConnectionManager*")
(parameters
'("TpConnectionManagerProtocol**" "protocol")
+ '("gboolean*" "is_gtalk")
)
)
@@ -2083,4 +2096,13 @@
)
)
+(define-function make_absolute_url_len
+ (c-name "empathy_make_absolute_url_len")
+ (return-type "gchar*")
+ (parameters
+ '("const-gchar*" "url")
+ '("guint" "len")
+ )
+)
+