aboutsummaryrefslogtreecommitdiffstats
path: root/python/pyempathygtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-02-03 04:10:14 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-02-03 04:10:14 +0800
commit02ec04d37187384bca8d5e9d32a02b458e499cab (patch)
tree721bf2baa483f79216dbcf37ecac43f7b470b96d /python/pyempathygtk
parentba7fd51db505c502f721e1e116a31f23a4f5fae3 (diff)
downloadgsoc2013-empathy-02ec04d37187384bca8d5e9d32a02b458e499cab.tar
gsoc2013-empathy-02ec04d37187384bca8d5e9d32a02b458e499cab.tar.gz
gsoc2013-empathy-02ec04d37187384bca8d5e9d32a02b458e499cab.tar.bz2
gsoc2013-empathy-02ec04d37187384bca8d5e9d32a02b458e499cab.tar.lz
gsoc2013-empathy-02ec04d37187384bca8d5e9d32a02b458e499cab.tar.xz
gsoc2013-empathy-02ec04d37187384bca8d5e9d32a02b458e499cab.tar.zst
gsoc2013-empathy-02ec04d37187384bca8d5e9d32a02b458e499cab.zip
Update python binding
svn path=/trunk/; revision=2374
Diffstat (limited to 'python/pyempathygtk')
-rw-r--r--python/pyempathygtk/pyempathygtk.defs40
-rw-r--r--python/pyempathygtk/pyempathygtk.override1
2 files changed, 41 insertions, 0 deletions
diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs
index 8aa5ad61d..fc168e113 100644
--- a/python/pyempathygtk/pyempathygtk.defs
+++ b/python/pyempathygtk/pyempathygtk.defs
@@ -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")
diff --git a/python/pyempathygtk/pyempathygtk.override b/python/pyempathygtk/pyempathygtk.override
index 60edf7237..40d63848b 100644
--- a/python/pyempathygtk/pyempathygtk.override
+++ b/python/pyempathygtk/pyempathygtk.override
@@ -16,6 +16,7 @@ headers
#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"