Blame SOURCES/fonts-tweak-tool-sigint.patch

c7769d
From f3a1f55c594a06503c27c8a7e9f6c11308bf1053 Mon Sep 17 00:00:00 2001
c7769d
From: Akira TAGOH <akira@tagoh.org>
c7769d
Date: Thu, 12 Dec 2013 20:20:28 +0900
c7769d
Subject: [PATCH] Workaround to terminate with SIGINT
c7769d
c7769d
---
c7769d
 fonts-tweak-tool | 2 ++
c7769d
 1 file changed, 2 insertions(+)
c7769d
c7769d
diff --git a/fonts-tweak-tool b/fonts-tweak-tool
c7769d
index 6e8c5e3..60ede69 100755
c7769d
--- a/fonts-tweak-tool
c7769d
+++ b/fonts-tweak-tool
c7769d
@@ -24,6 +24,7 @@ import gettext
c7769d
 import gi
c7769d
 import locale
c7769d
 import os
c7769d
+import signal
c7769d
 from fontstweak.fontstweak import FontsTweakConst
c7769d
 from fontstweak.util import FontsTweakUtil
c7769d
 from fontstweak.aliasui import FontsTweakAliasUI
c7769d
@@ -45,6 +46,7 @@ except Locale.Error as e:
c7769d
     os.environ['LC_ALL'] = 'C'
c7769d
     locale.setlocale(locale.LC_ALL, '')
c7769d
 
c7769d
+signal.signal(signal.SIGINT, signal.SIG_DFL)
c7769d
 gettext.bind_textdomain_codeset(FontsTweakConst.GETTEXT_PACKAGE, locale.nl_langinfo(locale.CODESET))
c7769d
 gettext.bindtextdomain(FontsTweakConst.GETTEXT_PACKAGE, FontsTweakConst.LOCALEDIR)
c7769d
 gettext.textdomain(FontsTweakConst.GETTEXT_PACKAGE)
c7769d
-- 
c7769d
1.8.4.2
c7769d