Add test task in Makefile.ams.
[ibus.git] / ibus / object.py
blobe250b0cfc380ce41181ba5d09c099dbf7d725031
1 import gobject
3 class Object (gobject.GObject):
4 __gsignals__ = {
5 'destroy' : (
6 gobject.SIGNAL_RUN_FIRST,
7 gobject.TYPE_NONE,
8 ())
11 def __init__ (self):
12 gobject.GObject.__init__ (self)
13 self._destroyed = False
15 def destroy (self):
16 if not self._destroyed:
17 self.emit ("destroy")
18 self._destroyed = True
20 gobject.type_register (Object)