empathy r2374 - in trunk/python: . pyempathy pyempathygtk



Author: xclaesse
Date: Mon Feb  2 20:10:14 2009
New Revision: 2374
URL: http://svn.gnome.org/viewvc/empathy?rev=2374&view=rev

Log:
Update python binding

Modified:
   trunk/python/pyempathy.patch
   trunk/python/pyempathy/pyempathy.defs
   trunk/python/pyempathygtk/pyempathygtk.defs
   trunk/python/pyempathygtk/pyempathygtk.override
   trunk/python/update-binding.sh

Modified: trunk/python/pyempathy.patch
==============================================================================
--- trunk/python/pyempathy.patch	(original)
+++ trunk/python/pyempathy.patch	Mon Feb  2 20:10:14 2009
@@ -1,14 +1,5 @@
 --- /home/zdra/Desktop/pyempathy.defs	2008-04-02 11:08:02.000000000 +0200
 +++ pyempathy/pyempathy.defs	2008-04-02 11:28:00.000000000 +0200
-@@ -35,7 +35,7 @@
-   (gtype-id "EMPATHY_TYPE_CONTACT_FACTORY")
- )
- 
--(define-object ContactList
-+(define-interface ContactList
-   (in-module "Empathy")
-   (c-name "EmpathyContactList")
-   (gtype-id "EMPATHY_TYPE_CONTACT_LIST")
 @@ -44,6 +44,7 @@
  (define-object ContactManager
    (in-module "Empathy")

Modified: trunk/python/pyempathy/pyempathy.defs
==============================================================================
--- trunk/python/pyempathy/pyempathy.defs	(original)
+++ trunk/python/pyempathy/pyempathy.defs	Mon Feb  2 20:10:14 2009
@@ -290,6 +290,12 @@
   )
 )
 
+(define-method get_count
+  (of-object "EmpathyAccountManager")
+  (c-name "empathy_account_manager_get_count")
+  (return-type "int")
+)
+
 
 
 ;; From empathy-chatroom.h
@@ -2695,6 +2701,11 @@
   )
 )
 
+(define-function check_available_state
+  (c-name "empathy_check_available_state")
+  (return-type "gboolean")
+)
+
 (define-function start_call_with_contact
   (c-name "empathy_start_call_with_contact")
   (return-type "none")

Modified: trunk/python/pyempathygtk/pyempathygtk.defs
==============================================================================
--- trunk/python/pyempathygtk/pyempathygtk.defs	(original)
+++ trunk/python/pyempathygtk/pyempathygtk.defs	Mon Feb  2 20:10:14 2009
@@ -83,6 +83,13 @@
   (gtype-id "EMPATHY_TYPE_CONTACT_LIST_VIEW")
 )
 
+(define-object ContactSelector
+  (in-module "Empathy")
+  (parent "GtkComboBox")
+  (c-name "EmpathyContactSelector")
+  (gtype-id "EMPATHY_TYPE_CONTACT_SELECTOR")
+)
+
 (define-object PresenceChooser
   (in-module "Empathy")
   (parent "GtkToggleButton")
@@ -1164,6 +1171,30 @@
 
 
 
+;; From empathy-contact-selector.h
+
+(define-function contact_selector_get_type
+  (c-name "empathy_contact_selector_get_type")
+  (return-type "GType")
+)
+
+(define-function contact_selector_new
+  (c-name "empathy_contact_selector_new")
+  (is-constructor-of "EmpathyContactSelector")
+  (return-type "GtkWidget*")
+  (parameters
+    '("EmpathyContactList*" "contact_list")
+  )
+)
+
+(define-method dup_selected
+  (of-object "EmpathyContactSelector")
+  (c-name "empathy_contact_selector_dup_selected")
+  (return-type "EmpathyContact*")
+)
+
+
+
 ;; From empathy-contact-widget.h
 
 (define-method widget_new
@@ -1654,6 +1685,15 @@
   )
 )
 
+(define-function pixbuf_from_icon_name_sized
+  (c-name "empathy_pixbuf_from_icon_name_sized")
+  (return-type "GdkPixbuf*")
+  (parameters
+    '("const-gchar*" "icon_name")
+    '("gint" "size")
+  )
+)
+
 (define-function text_iter_forward_search
   (c-name "empathy_text_iter_forward_search")
   (return-type "gboolean")

Modified: trunk/python/pyempathygtk/pyempathygtk.override
==============================================================================
--- trunk/python/pyempathygtk/pyempathygtk.override	(original)
+++ trunk/python/pyempathygtk/pyempathygtk.override	Mon Feb  2 20:10:14 2009
@@ -16,6 +16,7 @@
 #include "empathy-contact-dialogs.h"
 #include "empathy-contact-list-store.h"
 #include "empathy-contact-list-view.h"
+#include "empathy-contact-selector.h"
 #include "empathy-contact-widget.h"
 #include "empathy-geometry.h"
 #include "empathy-gtk-enum-types.h"

Modified: trunk/python/update-binding.sh
==============================================================================
--- trunk/python/update-binding.sh	(original)
+++ trunk/python/update-binding.sh	Mon Feb  2 20:10:14 2009
@@ -59,6 +59,7 @@
 	empathy-contact-list-store.h		\
 	empathy-contact-list-view.h		\
 	empathy-contact-menu.h			\
+	empathy-contact-selector.h		\
 	empathy-contact-widget.h		\
 	empathy-geometry.h			\
 	empathy-images.h			\
@@ -85,9 +86,11 @@
 patch -p0 < pyempathy.patch
 patch -p0 < pyempathygtk.patch
 
-# Chatview is an interface not an object
+# Fix define of interfaces, they are not objects
 sed -e 's/define-object \(ChatView$\)/define-interface \1/' \
     -i pyempathygtk/pyempathygtk.defs
+sed -e 's/define-object \(ContactList$\)/define-interface \1/' \
+    -i pyempathy/pyempathy.defs
 
 # Make modification then run that:
 #diff -up /tmp/pyempathy.defs pyempathy/pyempathy.defs > pyempathy.patch



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]