empathy r720 - in trunk/python: pyempathy pyempathygtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r720 - in trunk/python: pyempathy pyempathygtk
- Date: Sun, 9 Mar 2008 14:30:16 +0000 (GMT)
Author: xclaesse
Date: Sun Mar 9 14:30:15 2008
New Revision: 720
URL: http://svn.gnome.org/viewvc/empathy?rev=720&view=rev
Log:
Updatre python binding
Modified:
trunk/python/pyempathy/pyempathy.defs
trunk/python/pyempathy/pyempathy.override
trunk/python/pyempathygtk/pyempathygtk.defs
trunk/python/pyempathygtk/pyempathygtk.override
Modified: trunk/python/pyempathy/pyempathy.defs
==============================================================================
--- trunk/python/pyempathy/pyempathy.defs (original)
+++ trunk/python/pyempathy/pyempathy.defs Sun Mar 9 14:30:15 2008
@@ -63,6 +63,27 @@
(gtype-id "EMPATHY_TYPE_IDLE")
)
+(define-object IrcNetwork
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyIrcNetwork")
+ (gtype-id "EMPATHY_TYPE_IRC_NETWORK")
+)
+
+(define-object IrcNetworkManager
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyIrcNetworkManager")
+ (gtype-id "EMPATHY_TYPE_IRC_NETWORK_MANAGER")
+)
+
+(define-object IrcServer
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyIrcServer")
+ (gtype-id "EMPATHY_TYPE_IRC_SERVER")
+)
+
(define-object LogManager
(in-module "Empathy")
(parent "GObject")
@@ -135,8 +156,10 @@
(c-name "EmpathyCapabilities")
(gtype-id "EMPATHY_TYPE_CAPABILITIES")
(values
+ '("none" "EMPATHY_CAPABILITIES_NONE")
'("audio" "EMPATHY_CAPABILITIES_AUDIO")
'("video" "EMPATHY_CAPABILITIES_VIDEO")
+ '("unknown" "EMPATHY_CAPABILITIES_UNKNOWN")
)
)
@@ -975,6 +998,130 @@
+;; From empathy-irc-network.h
+
+(define-function empathy_irc_network_get_type
+ (c-name "empathy_irc_network_get_type")
+ (return-type "GType")
+)
+
+(define-function empathy_irc_network_new
+ (c-name "empathy_irc_network_new")
+ (is-constructor-of "EmpathyIrcNetwork")
+ (return-type "EmpathyIrcNetwork*")
+ (parameters
+ '("const-gchar*" "name")
+ )
+)
+
+(define-method get_servers
+ (of-object "EmpathyIrcNetwork")
+ (c-name "empathy_irc_network_get_servers")
+ (return-type "GSList*")
+)
+
+(define-method append_server
+ (of-object "EmpathyIrcNetwork")
+ (c-name "empathy_irc_network_append_server")
+ (return-type "none")
+ (parameters
+ '("EmpathyIrcServer*" "server")
+ )
+)
+
+(define-method remove_server
+ (of-object "EmpathyIrcNetwork")
+ (c-name "empathy_irc_network_remove_server")
+ (return-type "none")
+ (parameters
+ '("EmpathyIrcServer*" "server")
+ )
+)
+
+(define-method set_server_position
+ (of-object "EmpathyIrcNetwork")
+ (c-name "empathy_irc_network_set_server_position")
+ (return-type "none")
+ (parameters
+ '("EmpathyIrcServer*" "server")
+ '("gint" "pos")
+ )
+)
+
+
+
+;; From empathy-irc-network-manager.h
+
+(define-function empathy_irc_network_manager_get_type
+ (c-name "empathy_irc_network_manager_get_type")
+ (return-type "GType")
+)
+
+(define-function empathy_irc_network_manager_new
+ (c-name "empathy_irc_network_manager_new")
+ (is-constructor-of "EmpathyIrcNetworkManager")
+ (return-type "EmpathyIrcNetworkManager*")
+ (parameters
+ '("const-gchar*" "global_file")
+ '("const-gchar*" "user_file")
+ )
+)
+
+(define-method add
+ (of-object "EmpathyIrcNetworkManager")
+ (c-name "empathy_irc_network_manager_add")
+ (return-type "none")
+ (parameters
+ '("EmpathyIrcNetwork*" "network")
+ )
+)
+
+(define-method remove
+ (of-object "EmpathyIrcNetworkManager")
+ (c-name "empathy_irc_network_manager_remove")
+ (return-type "none")
+ (parameters
+ '("EmpathyIrcNetwork*" "network")
+ )
+)
+
+(define-method get_networks
+ (of-object "EmpathyIrcNetworkManager")
+ (c-name "empathy_irc_network_manager_get_networks")
+ (return-type "GSList*")
+)
+
+(define-method find_network_by_address
+ (of-object "EmpathyIrcNetworkManager")
+ (c-name "empathy_irc_network_manager_find_network_by_address")
+ (return-type "EmpathyIrcNetwork*")
+ (parameters
+ '("const-gchar*" "address")
+ )
+)
+
+
+
+;; From empathy-irc-server.h
+
+(define-function empathy_irc_server_get_type
+ (c-name "empathy_irc_server_get_type")
+ (return-type "GType")
+)
+
+(define-function empathy_irc_server_new
+ (c-name "empathy_irc_server_new")
+ (is-constructor-of "EmpathyIrcServer")
+ (return-type "EmpathyIrcServer*")
+ (parameters
+ '("const-gchar*" "address")
+ '("guint" "port")
+ '("gboolean" "ssl")
+ )
+)
+
+
+
;; From empathy-log-manager.h
(define-function empathy_log_manager_get_type
@@ -1739,6 +1886,12 @@
(return-type "const-gchar*")
)
+(define-method get_channel
+ (of-object "EmpathyTpGroup")
+ (c-name "empathy_tp_group_get_channel")
+ (return-type "TpChan*")
+)
+
(define-method is_member
(of-object "EmpathyTpGroup")
(c-name "empathy_tp_group_is_member")
Modified: trunk/python/pyempathy/pyempathy.override
==============================================================================
--- trunk/python/pyempathy/pyempathy.override (original)
+++ trunk/python/pyempathy/pyempathy.override Sun Mar 9 14:30:15 2008
@@ -4,15 +4,20 @@
#include <pygobject.h>
#include "empathy-avatar.h"
#include "empathy-chandler.h"
-#include "empathy-chatroom-manager.h"
#include "empathy-chatroom.h"
+#include "empathy-chatroom-manager.h"
+#include "empathy-contact.h"
+#include "empathy-contact-factory.h"
#include "empathy-contact-groups.h"
#include "empathy-contact-list.h"
#include "empathy-contact-manager.h"
-#include "empathy-contact.h"
#include "empathy-debug.h"
+#include "empathy-enum-types.h"
#include "empathy-filter.h"
#include "empathy-idle.h"
+#include "empathy-irc-network.h"
+#include "empathy-irc-network-manager.h"
+#include "empathy-irc-server.h"
#include "empathy-log-manager.h"
#include "empathy-message.h"
#include "empathy-status-presets.h"
@@ -25,8 +30,6 @@
#include "empathy-tp-group.h"
#include "empathy-tp-roomlist.h"
#include "empathy-utils.h"
-#include "empathy-contact-factory.h"
-#include "empathy-enum-types.h"
void empathy_add_constants(PyObject *module, const gchar *strip_prefix);
void empathy_register_classes(PyObject *d);
Modified: trunk/python/pyempathygtk/pyempathygtk.defs
==============================================================================
--- trunk/python/pyempathygtk/pyempathygtk.defs (original)
+++ trunk/python/pyempathygtk/pyempathygtk.defs Sun Mar 9 14:30:15 2008
@@ -333,8 +333,8 @@
(varargs #t)
)
-(define-function emapthy_account_widget_add_forget_button
- (c-name "emapthy_account_widget_add_forget_button")
+(define-function empathy_account_widget_add_forget_button
+ (c-name "empathy_account_widget_add_forget_button")
(return-type "none")
(parameters
'("McAccount*" "account")
@@ -380,6 +380,37 @@
)
)
+(define-function empathy_account_widget_icq_new
+ (c-name "empathy_account_widget_icq_new")
+ (is-constructor-of "EmpathyAccountWidgetIcq")
+ (return-type "GtkWidget*")
+ (parameters
+ '("McAccount*" "account")
+ )
+)
+
+(define-function empathy_account_widget_yahoo_new
+ (c-name "empathy_account_widget_yahoo_new")
+ (is-constructor-of "EmpathyAccountWidgetYahoo")
+ (return-type "GtkWidget*")
+ (parameters
+ '("McAccount*" "account")
+ )
+)
+
+
+
+;; From empathy-account-widget-irc.h
+
+(define-function empathy_account_widget_irc_new
+ (c-name "empathy_account_widget_irc_new")
+ (is-constructor-of "EmpathyAccountWidgetIrc")
+ (return-type "GtkWidget*")
+ (parameters
+ '("McAccount*" "account")
+ )
+)
+
;; From empathy-avatar-chooser.h
@@ -1445,6 +1476,19 @@
+;; From empathy-irc-network-dialog.h
+
+(define-method dialog_show
+ (of-object "EmpathyIrcNetwork")
+ (c-name "empathy_irc_network_dialog_show")
+ (return-type "GtkWidget*")
+ (parameters
+ '("GtkWidget*" "parent")
+ )
+)
+
+
+
;; From empathy-log-window.h
(define-function empathy_log_window_show
Modified: trunk/python/pyempathygtk/pyempathygtk.override
==============================================================================
--- trunk/python/pyempathygtk/pyempathygtk.override (original)
+++ trunk/python/pyempathygtk/pyempathygtk.override Sun Mar 9 14:30:15 2008
@@ -2,15 +2,17 @@
headers
#include <Python.h>
#include <pygobject.h>
-#include "empathy-avatar-chooser.h"
-#include "empathy-avatar-image.h"
#include "empathy-about-dialog.h"
#include "empathy-account-chooser.h"
#include "empathy-accounts-dialog.h"
#include "empathy-account-widget.h"
+#include "empathy-account-widget-irc.h"
+#include "empathy-avatar-chooser.h"
+#include "empathy-avatar-image.h"
+#include "empathy-call-window.h"
+#include "empathy-cell-renderer-activatable.h"
#include "empathy-cell-renderer-expander.h"
#include "empathy-cell-renderer-text.h"
-#include "empathy-cell-renderer-activatable.h"
#include "empathy-chat.h"
#include "empathy-chatrooms-window.h"
#include "empathy-chat-view.h"
@@ -22,26 +24,27 @@
#include "empathy-contact-widget.h"
#include "empathy-geometry.h"
#include "empathy-group-chat.h"
+#include "empathy-gtk-enum-types.h"
+#include "empathy-gtk-marshal.h"
#include "empathy-images.h"
+#include "empathy-irc-network-dialog.h"
#include "empathy-log-window.h"
#include "empathy-main-window.h"
#include "empathy-new-chatroom-dialog.h"
+#include "empathy-new-message-dialog.h"
#include "empathy-preferences.h"
#include "empathy-presence-chooser.h"
#include "empathy-private-chat.h"
#include "empathy-profile-chooser.h"
+#include "empathy-smiley-manager.h"
#include "empathy-spell-dialog.h"
#include "empathy-spell.h"
#include "empathy-status-icon.h"
-#include "empathy-theme.h"
-#include "empathy-theme-manager.h"
#include "empathy-theme-boxes.h"
+#include "empathy-theme.h"
#include "empathy-theme-irc.h"
+#include "empathy-theme-manager.h"
#include "empathy-ui-utils.h"
-#include "empathy-smiley-manager.h"
-#include "empathy-new-message-dialog.h"
-#include "empathy-call-window.h"
-#include "empathy-gtk-enum-types.h"
void empathy_add_constants(PyObject *module, const gchar *strip_prefix);
void empathy_register_classes(PyObject *d);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]