From 653b834e018482495d0e5d4f7c4c56eb4db476fd Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 26 Feb 2019 10:32:17 +1000 Subject: [PATCH] tools: add a noop notify() function to all our classes ratbagd uses GObjects and properties so we also make use of notify() a fair bit. Make sure we don't crash out in ratbagc for that, just add an empty noop function named notify() Signed-off-by: Peter Hutterer --- tools/ratbagc.py.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/ratbagc.py.in b/tools/ratbagc.py.in index 00df2103..802371d2 100644 --- a/tools/ratbagc.py.in +++ b/tools/ratbagc.py.in @@ -51,6 +51,10 @@ class MetaRatbag(type): c = type.__new__(cls, name, bases, dct) if "__late_init__" in dct: c.__late_init__() + + # Add a noop self.notify() so we're compatible with GObjects + c.notify = lambda *args : None + return c