aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-05-01 05:44:38 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-05-01 05:44:38 +0800
commit692886962aec6022d4fab9cdbd9867f2acd7f75c (patch)
treef0db8cc8325ed3b377d5663c7377db6967e41e8b /python
parentfb06002dc6fcf523f22f671aeaf22054515e926a (diff)
downloadgsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.gz
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.bz2
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.lz
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.xz
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.tar.zst
gsoc2013-empathy-692886962aec6022d4fab9cdbd9867f2acd7f75c.zip
Make use of tp-glib debug system.
svn path=/trunk/; revision=1066
Diffstat (limited to 'python')
-rw-r--r--python/pyempathy/pyempathy.defs38
-rw-r--r--python/pyempathygtk/pyempathygtk.defs8
2 files changed, 36 insertions, 10 deletions
diff --git a/python/pyempathy/pyempathy.defs b/python/pyempathy/pyempathy.defs
index a722461c4..b45b06bab 100644
--- a/python/pyempathy/pyempathy.defs
+++ b/python/pyempathy/pyempathy.defs
@@ -143,6 +143,21 @@
;; Enumerations and flags ...
+(define-flags DebugFlags
+ (in-module "Empathy")
+ (c-name "EmpathyDebugFlags")
+ (gtype-id "EMPATHY_TYPE_DEBUG_FLAGS")
+ (values
+ '("tp" "EMPATHY_DEBUG_TP")
+ '("chat" "EMPATHY_DEBUG_CHAT")
+ '("contact" "EMPATHY_DEBUG_CONTACT")
+ '("account" "EMPATHY_DEBUG_ACCOUNT")
+ '("irc" "EMPATHY_DEBUG_IRC")
+ '("filter" "EMPATHY_DEBUG_FILTER")
+ '("other" "EMPATHY_DEBUG_OTHER")
+ )
+)
+
(define-enum RegExType
(in-module "Empathy")
(c-name "EmpathyRegExType")
@@ -359,19 +374,30 @@
;; From empathy-debug.h
-(define-function empathy_debug_impl
- (c-name "empathy_debug_impl")
+(define-function empathy_debug_flag_is_set
+ (c-name "empathy_debug_flag_is_set")
+ (return-type "gboolean")
+ (parameters
+ '("EmpathyDebugFlags" "flag")
+ )
+)
+
+(define-function empathy_debug
+ (c-name "empathy_debug")
(return-type "none")
(parameters
- '("const-gchar*" "domain")
- '("const-gchar*" "msg")
+ '("EmpathyDebugFlags" "flag")
+ '("const-gchar*" "format")
)
(varargs #t)
)
-(define-function empathy_debug_set_log_file_from_env
- (c-name "empathy_debug_set_log_file_from_env")
+(define-function empathy_debug_set_flags
+ (c-name "empathy_debug_set_flags")
(return-type "none")
+ (parameters
+ '("const-gchar*" "flags_string")
+ )
)
diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs
index 604c959cd..f0ea3b096 100644
--- a/python/pyempathygtk/pyempathygtk.defs
+++ b/python/pyempathygtk/pyempathygtk.defs
@@ -374,8 +374,8 @@
(c-name "empathy_chat_correct_word")
(return-type "none")
(parameters
- '("GtkTextIter" "start")
- '("GtkTextIter" "end")
+ '("GtkTextIter*" "start")
+ '("GtkTextIter*" "end")
'("const-gchar*" "new_word")
)
)
@@ -402,8 +402,8 @@
(return-type "none")
(parameters
'("EmpathyChat*" "chat")
- '("GtkTextIter" "start")
- '("GtkTextIter" "end")
+ '("GtkTextIter*" "start")
+ '("GtkTextIter*" "end")
'("const-gchar*" "word")
)
)