empathy r2049 - in trunk/python: . pyempathy pyempathygtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2049 - in trunk/python: . pyempathy pyempathygtk
- Date: Tue, 6 Jan 2009 16:47:15 +0000 (UTC)
Author: xclaesse
Date: Tue Jan 6 16:47:15 2009
New Revision: 2049
URL: http://svn.gnome.org/viewvc/empathy?rev=2049&view=rev
Log:
Update python bindings.
Modified:
trunk/python/pyempathy/pyempathy.defs
trunk/python/pyempathygtk/pyempathygtk.defs
trunk/python/update-binding.sh
Modified: trunk/python/pyempathy/pyempathy.defs
==============================================================================
--- trunk/python/pyempathy/pyempathy.defs (original)
+++ trunk/python/pyempathy/pyempathy.defs Tue Jan 6 16:47:15 2009
@@ -1,5 +1,12 @@
;; -*- scheme -*-
; object definitions ...
+(define-object AccountManager
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyAccountManager")
+ (gtype-id "EMPATHY_TYPE_ACCOUNT_MANAGER")
+)
+
(define-object Chatroom
(in-module "Empathy")
(parent "GObject")
@@ -212,6 +219,33 @@
)
+;; From empathy-account-manager.h
+
+(define-function account_manager_get_type
+ (c-name "empathy_account_manager_get_type")
+ (return-type "GType")
+)
+
+(define-function account_manager_new
+ (c-name "empathy_account_manager_new")
+ (is-constructor-of "EmpathyAccountManager")
+ (return-type "EmpathyAccountManager*")
+)
+
+(define-method get_connected_accounts
+ (of-object "EmpathyAccountManager")
+ (c-name "empathy_account_manager_get_connected_accounts")
+ (return-type "int")
+)
+
+(define-method get_connecting_accounts
+ (of-object "EmpathyAccountManager")
+ (c-name "empathy_account_manager_get_connecting_accounts")
+ (return-type "int")
+)
+
+
+
;; From empathy-chatroom.h
(define-function chatroom_get_type
@@ -2396,25 +2430,6 @@
)
)
-(define-function connect_to_account_status_changed
- (c-name "empathy_connect_to_account_status_changed")
- (return-type "gpointer")
- (parameters
- '("MissionControl*" "mc")
- '("GCallback" "handler")
- '("gpointer" "user_data")
- '("GClosureNotify" "free_func")
- )
-)
-
-(define-function disconnect_account_status_changed
- (c-name "empathy_disconnect_account_status_changed")
- (return-type "none")
- (parameters
- '("gpointer" "token")
- )
-)
-
(define-function proxy_equal
(c-name "empathy_proxy_equal")
(return-type "gboolean")
Modified: trunk/python/pyempathygtk/pyempathygtk.defs
==============================================================================
--- trunk/python/pyempathygtk/pyempathygtk.defs (original)
+++ trunk/python/pyempathygtk/pyempathygtk.defs Tue Jan 6 16:47:15 2009
@@ -1727,4 +1727,12 @@
)
)
+(define-function sound_pref_is_enabled
+ (c-name "empathy_sound_pref_is_enabled")
+ (return-type "gboolean")
+ (parameters
+ '("const-char*" "key")
+ )
+)
+
Modified: trunk/python/update-binding.sh
==============================================================================
--- trunk/python/update-binding.sh (original)
+++ trunk/python/update-binding.sh Tue Jan 6 16:47:15 2009
@@ -5,6 +5,7 @@
cd ../libempathy
python /usr/share/pygobject/2.0/codegen/h2def.py \
-m empathy \
+ empathy-account-manager.h \
empathy-chatroom.h \
empathy-chatroom-manager.h \
empathy-contact.h \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]