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()
@@ -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
