aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-16 20:29:55 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-16 20:29:55 +0800
commitcb931be0a6d71a05c4ea48d3380f64ffaecbfe0b (patch)
treed2a956f09fd24d1a9014563f7eaa9aeb92585059 /python
parent919573df54c04c168382698f7924451d4d83a498 (diff)
downloadgsoc2013-empathy-cb931be0a6d71a05c4ea48d3380f64ffaecbfe0b.tar
gsoc2013-empathy-cb931be0a6d71a05c4ea48d3380f64ffaecbfe0b.tar.gz
gsoc2013-empathy-cb931be0a6d71a05c4ea48d3380f64ffaecbfe0b.tar.bz2
gsoc2013-empathy-cb931be0a6d71a05c4ea48d3380f64ffaecbfe0b.tar.lz
gsoc2013-empathy-cb931be0a6d71a05c4ea48d3380f64ffaecbfe0b.tar.xz
gsoc2013-empathy-cb931be0a6d71a05c4ea48d3380f64ffaecbfe0b.tar.zst
gsoc2013-empathy-cb931be0a6d71a05c4ea48d3380f64ffaecbfe0b.zip
Update python binding
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2877
Diffstat (limited to 'python')
-rw-r--r--python/pyempathygtk/pyempathygtk.defs60
1 files changed, 27 insertions, 33 deletions
diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs
index c75c93efd..1cb19f527 100644
--- a/python/pyempathygtk/pyempathygtk.defs
+++ b/python/pyempathygtk/pyempathygtk.defs
@@ -113,7 +113,7 @@
(define-object PresenceChooser
(in-module "Empathy")
- (parent "GtkToggleButton")
+ (parent "GtkComboBoxEntry")
(c-name "EmpathyPresenceChooser")
(gtype-id "EMPATHY_TYPE_PRESENCE_CHOOSER")
)
@@ -336,8 +336,8 @@
(return-type "none")
(parameters
'("McAccount*" "account")
- '("GladeXML*" "glade")
- '("const-gchar*" "first_widget_name")
+ '("GtkBuilder*" "gui")
+ '("const-gchar*" "first_widget")
)
(varargs #t)
)
@@ -347,7 +347,7 @@
(return-type "none")
(parameters
'("McAccount*" "account")
- '("GladeXML*" "glade")
+ '("GtkBuilder*" "gui")
'("const-gchar*" "button")
'("const-gchar*" "entry")
)
@@ -1233,6 +1233,16 @@
(return-type "EmpathyContact*")
)
+(define-method set_visible
+ (of-object "EmpathyContactSelector")
+ (c-name "empathy_contact_selector_set_visible")
+ (return-type "none")
+ (parameters
+ '("EmpathyContactSelectorFilterFunc" "func")
+ '("gpointer" "user_data")
+ )
+)
+
;; From empathy-contact-widget.h
@@ -1749,50 +1759,34 @@
(return-type "GRegex*")
)
-(define-function glade_get_file_simple
- (c-name "empathy_glade_get_file_simple")
- (return-type "none")
+(define-function builder_get_file
+ (c-name "empathy_builder_get_file")
+ (return-type "GtkBuilder*")
(parameters
'("const-gchar*" "filename")
- '("const-gchar*" "root")
- '("const-gchar*" "domain")
- '("const-gchar*" "first_required_widget")
+ '("const-gchar*" "first_object")
)
(varargs #t)
)
-(define-function glade_get_file
- (c-name "empathy_glade_get_file")
- (return-type "GladeXML*")
- (parameters
- '("const-gchar*" "filename")
- '("const-gchar*" "root")
- '("const-gchar*" "domain")
- '("const-gchar*" "first_required_widget")
- )
- (varargs #t)
-)
-
-(define-function glade_connect
- (c-name "empathy_glade_connect")
+(define-function builder_connect
+ (c-name "empathy_builder_connect")
(return-type "none")
(parameters
- '("GladeXML*" "gui")
+ '("GtkBuilder*" "gui")
'("gpointer" "user_data")
- '("gchar*" "first_widget")
+ '("gchar*" "first_object")
)
(varargs #t)
)
-(define-function glade_setup_size_group
- (c-name "empathy_glade_setup_size_group")
- (return-type "none")
+(define-function builder_unref_and_keep_widget
+ (c-name "empathy_builder_unref_and_keep_widget")
+ (return-type "GtkWidget*")
(parameters
- '("GladeXML*" "gui")
- '("GtkSizeGroupMode" "mode")
- '("gchar*" "first_widget")
+ '("GtkBuilder*" "gui")
+ '("GtkWidget*" "root")
)
- (varargs #t)
)
(define-function icon_name_from_account