[pygobject/bilelmoussaoui/dispose: 2/2] overrides/gio: Don't wrap vfuncs functions for DBusProxy
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/bilelmoussaoui/dispose: 2/2] overrides/gio: Don't wrap vfuncs functions for DBusProxy
- Date: Tue, 26 Jul 2022 17:27:16 +0000 (UTC)
commit dfeb656bb98970a8c251c0237906d655340fee10
Author: Bilal Elmoussaoui <belmouss redhat com>
Date: Tue Jul 26 19:08:10 2022 +0200
overrides/gio: Don't wrap vfuncs functions for DBusProxy
gi/overrides/Gio.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gi/overrides/Gio.py b/gi/overrides/Gio.py
index c807fe0b..242bd4c7 100644
--- a/gi/overrides/Gio.py
+++ b/gi/overrides/Gio.py
@@ -414,8 +414,11 @@ class DBusProxy(Gio.DBusProxy):
result_handler=mymethod_done, user_data='data')
'''
def __getattr__(self, name):
- return _DBusProxyMethodCall(self, name)
-
+ if name.starts_with("do_"):
+ return self[name]
+ else:
+ return _DBusProxyMethodCall(self, name)
+
DBusProxy = override(DBusProxy)
__all__.append('DBusProxy')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]