Package: ibus-hangul / 1.5.1-1

window-close.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: setup: Add window "destroy" event handling
 It corrects the setup program to quit on window close.
Author: Changwoo Ryu <cwryu@debian.org>
Bug: https://github.com/libhangul/ibus-hangul/pull/66
Forwarded: yes

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")