diff options
author | Changwoo Ryu <cwryu@debian.org> | 2018-07-29 23:38:07 +0900 |
---|---|---|
committer | Changwoo Ryu <cwryu@debian.org> | 2018-07-29 23:47:52 +0900 |
commit | c77700729735128533fa9ff23adc56ae753dbb10 (patch) | |
tree | 65209cd0801ebf66937766a4bc42ea6c8a6c4f48 | |
parent | 28723f9d167b4500b456f170e3ab8b607f55a193 (diff) | |
download | ibus-hangul-c77700729735128533fa9ff23adc56ae753dbb10.tar.gz |
setup: Add window "destroy" event handling
It corrects the setup program to quit on window close.
-rw-r--r-- | setup/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/setup/main.py b/setup/main.py index 33b9880..8d581cd 100644 --- a/setup/main.py +++ b/setup/main.py @@ -151,6 +151,7 @@ class Setup (): self.__window = self.__builder.get_object("SetupDialog") icon_file = os.path.join(config.pkgdatadir, "icons", "ibus-hangul.svg") self.__window.set_icon_from_file(icon_file) + self.__window.connect("destroy", Gtk.main_quit) self.__window.show() button = self.__builder.get_object("button_apply") |