aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-25 18:18:05 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-25 18:35:05 +0800
commit2e6d8132394680ea42a3ebdc1daad33ff5e07b86 (patch)
tree0bf9179a649dad69089a44270fcf49514a9c80e4 /python
parent7cfb268c7d96f929646c5eb093e6f07aa8b1abea (diff)
parentd7f82b00ea09c62be272ed2d0c98e9120a722ca9 (diff)
downloadgsoc2013-empathy-2e6d8132394680ea42a3ebdc1daad33ff5e07b86.tar
gsoc2013-empathy-2e6d8132394680ea42a3ebdc1daad33ff5e07b86.tar.gz
gsoc2013-empathy-2e6d8132394680ea42a3ebdc1daad33ff5e07b86.tar.bz2
gsoc2013-empathy-2e6d8132394680ea42a3ebdc1daad33ff5e07b86.tar.lz
gsoc2013-empathy-2e6d8132394680ea42a3ebdc1daad33ff5e07b86.tar.xz
gsoc2013-empathy-2e6d8132394680ea42a3ebdc1daad33ff5e07b86.tar.zst
gsoc2013-empathy-2e6d8132394680ea42a3ebdc1daad33ff5e07b86.zip
Merge branch 'mc5', fixes bug #590165
Diffstat (limited to 'python')
-rw-r--r--python/pyempathy/pyempathy.defs108
-rw-r--r--python/pyempathygtk/pyempathygtk.defs162
-rw-r--r--python/pyempathygtk/pyempathygtk.override3
-rwxr-xr-xpython/update-binding.sh2
4 files changed, 138 insertions, 137 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs
index 488f5b3ac..ee8aab8d0 100644
--- a/python/pyempathy/pyempathy.defs
+++ b/python/pyempathy/pyempathy.defs
@@ -291,13 +291,10 @@
(return-type "EmpathyAccountManager*")
)
-(define-method create
+(define-method is_ready
(of-object "EmpathyAccountManager")
- (c-name "empathy_account_manager_create")
- (return-type "EmpathyAccount*")
- (parameters
- '("McProfile*" "profile")
- )
+ (c-name "empathy_account_manager_is_ready")
+ (return-type "gboolean")
)
(define-method get_connected_accounts
@@ -318,18 +315,18 @@
(return-type "int")
)
-(define-method get_account
+(define-method get_account_for_connection
(of-object "EmpathyAccountManager")
- (c-name "empathy_account_manager_get_account")
+ (c-name "empathy_account_manager_get_account_for_connection")
(return-type "EmpathyAccount*")
(parameters
'("TpConnection*" "connection")
)
)
-(define-method lookup
+(define-method get_account
(of-object "EmpathyAccountManager")
- (c-name "empathy_account_manager_lookup")
+ (c-name "empathy_account_manager_get_account")
(return-type "EmpathyAccount*")
(parameters
'("const-gchar*" "unique_name")
@@ -357,6 +354,62 @@
)
)
+(define-method request_global_presence
+ (of-object "EmpathyAccountManager")
+ (c-name "empathy_account_manager_request_global_presence")
+ (return-type "none")
+ (parameters
+ '("TpConnectionPresenceType" "type")
+ '("const-gchar*" "status")
+ '("const-gchar*" "message")
+ )
+)
+
+(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")
+ (return-type "TpConnectionPresenceType")
+ (parameters
+ '("gchar**" "status")
+ '("gchar**" "message")
+ )
+)
+
+(define-method create_account_async
+ (of-object "EmpathyAccountManager")
+ (c-name "empathy_account_manager_create_account_async")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "connection_manager")
+ '("const-gchar*" "protocol")
+ '("const-gchar*" "display_name")
+ '("GHashTable*" "parameters")
+ '("GHashTable*" "properties")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method create_account_finish
+ (of-object "EmpathyAccountManager")
+ (c-name "empathy_account_manager_create_account_finish")
+ (return-type "EmpathyAccount*")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
;; From empathy-chatroom.h
@@ -2893,28 +2946,6 @@
)
)
-(define-function account_hash
- (c-name "empathy_account_hash")
- (return-type "guint")
- (parameters
- '("gconstpointer" "key")
- )
-)
-
-(define-function account_equal
- (c-name "empathy_account_equal")
- (return-type "gboolean")
- (parameters
- '("gconstpointer" "a")
- '("gconstpointer" "b")
- )
-)
-
-(define-function mission_control_dup_singleton
- (c-name "empathy_mission_control_dup_singleton")
- (return-type "MissionControl*")
-)
-
(define-function presence_get_default_message
(c-name "empathy_presence_get_default_message")
(return-type "const-gchar*")
@@ -2979,4 +3010,17 @@
)
)
+(define-function protocol_icon_name
+ (c-name "empathy_protocol_icon_name")
+ (return-type "gchar*")
+ (parameters
+ '("const-gchar*" "protocol")
+ )
+)
+
+(define-function type_dbus_ao
+ (c-name "empathy_type_dbus_ao")
+ (return-type "GType")
+)
+
diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs
index d4601b211..82fe5daca 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")
@@ -118,11 +125,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
@@ -328,103 +335,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")
+ )
)
@@ -1550,29 +1507,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")
+ )
)
@@ -1796,14 +1760,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..d758afbf8 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"
@@ -27,7 +28,7 @@ headers
#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-theme-boxes.h"
diff --git a/python/update-binding.sh b/python/update-binding.sh
index 854c33159..3636b6341 100755
--- a/python/update-binding.sh
+++ b/python/update-binding.sh
@@ -74,7 +74,7 @@ python /usr/share/pygobject/2.0/codegen/h2def.py \
empathy-log-window.h \
empathy-new-message-dialog.h \
empathy-presence-chooser.h \
- empathy-profile-chooser.h \
+ empathy-protocol-chooser.h \
empathy-smiley-manager.h \
empathy-spell.h \
empathy-theme-boxes.h \