quit mainloop, when the Panel object be destroyed.

This commit is contained in:
Huang Peng 2008-06-03 22:13:22 +08:00
Родитель 267a913566
Коммит 3d2f237c3e
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -7,7 +7,7 @@ from ibus import interface
from languagebar import LanguageBarWindow
from candidatewindow import CandidateWindow
class Panel (gobject.GObject):
class Panel (ibus.Object):
def __init__ (self, proxy):
gobject.GObject.__init__ (self)
self._proxy = proxy
@ -56,6 +56,11 @@ class Panel (gobject.GObject):
self._candidate_panel.reset ()
self._language_bar.reset ()
def do_destroy (self):
gtk.main_quit ()
gobject.type_register (Panel, "IBusPanel")
class PanelProxy (interface.IPanel):
def __init__ (self, dbusconn, object_path):
interface.IPanel.__init__ (self, dbusconn, object_path)