repo.or.cz
/
ibus.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add test task in Makefile.ams.
[ibus.git]
/
ibus
/
object.py
blob
e250b0cfc380ce41181ba5d09c099dbf7d725031
1
import
gobject
2
3
class
Object
(
gobject
.
GObject
):
4
__gsignals__
= {
5
'destroy'
: (
6
gobject
.
SIGNAL_RUN_FIRST
,
7
gobject
.
TYPE_NONE
,
8
())
9
}
10
11
def
__init__
(
self
):
12
gobject
.
GObject
.__
init
__
(
self
)
13
self
._
destroyed
=
False
14
15
def
destroy
(
self
):
16
if not
self
._
destroyed
:
17
self
.
emit
(
"destroy"
)
18
self
._
destroyed
=
True
19
20
gobject
.
type_register
(
Object
)