changeset 17081:3b01cb4147d3

Callbacks are not supported for dbus.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 13 May 2007 08:34:26 +0000
parents e5bed026ccd2
children 4876375de307
files libpurple/dbus-analyze-functions.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/dbus-analyze-functions.py	Sun May 13 07:30:53 2007 +0000
+++ b/libpurple/dbus-analyze-functions.py	Sun May 13 08:34:26 2007 +0000
@@ -96,7 +96,7 @@
 
         if len(type) == 1:
             # simple types (int, gboolean, etc.) and enums
-            if (type[0] in simpletypes) or (type[0].startswith("Purple")):
+            if (type[0] in simpletypes) or ((type[0].startswith("Purple") and not type[0].endswith("Callback"))):
                 return self.inputsimple(type, name)
 
         # pointers ... 
@@ -118,7 +118,6 @@
             # unknown pointers are always replaced with NULL
             else:
                 return self.inputpointer(type, name)
-                return
 
         raise myexception