Updated ibus-anthy-HEAD.patch to fix clear() in input mode.

This commit is contained in:
Takao Fujiwara 2014-05-19 12:20:08 +09:00
parent 51673816f2
commit 5d417498fa
2 changed files with 45 additions and 1 deletions

View File

@ -2481,3 +2481,44 @@ index fa5f34f..437e94c 100644
-- --
1.8.5.3 1.8.5.3
From b852cfb6061259e4fd7198e3a2579b4495e15ecd Mon Sep 17 00:00:00 2001
From: fujiwarat <takao.fujiwara1@gmail.com>
Date: Mon, 19 May 2014 12:01:22 +0900
Subject: [PATCH] Fix None object has clear() in input mode icon. (#1097364)
---
engine/python2/engine.py | 3 ++-
engine/python3/engine.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/engine/python2/engine.py b/engine/python2/engine.py
index 68a4b48..68e898b 100644
--- a/engine/python2/engine.py
+++ b/engine/python2/engine.py
@@ -1104,7 +1104,8 @@ class Engine(IBus.EngineSimple):
# It seems do_destroy() is called when launch_engine() is called.
#self.__remove_dict_files()
# It seems super.destroy() does not unref the engine.
- self.__input_mode_icon.clear()
+ if self.__input_mode_icon != None:
+ self.__input_mode_icon.clear()
self.__input_mode_icon = None
def __join_all_segments(self):
diff --git a/engine/python3/engine.py b/engine/python3/engine.py
index 67370d8..517a64a 100644
--- a/engine/python3/engine.py
+++ b/engine/python3/engine.py
@@ -1099,7 +1099,8 @@ class Engine(IBus.EngineSimple):
# It seems do_destroy() is called when launch_engine() is called.
#self.__remove_dict_files()
# It seems super.destroy() does not unref the engine.
- self.__input_mode_icon.clear()
+ if self.__input_mode_icon != None:
+ self.__input_mode_icon.clear()
self.__input_mode_icon = None
def __join_all_segments(self):
--
1.8.5.3

View File

@ -14,7 +14,7 @@
Name: ibus-anthy Name: ibus-anthy
Version: 1.5.5 Version: 1.5.5
Release: 3%{?dist} Release: 4%{?dist}
Summary: The Anthy engine for IBus input platform Summary: The Anthy engine for IBus input platform
License: GPLv2+ License: GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
@ -157,6 +157,9 @@ touch --no-create %{_datadir}/icons/hicolor || :
%{_libdir}/libanthygobject-%{sub_version}.so %{_libdir}/libanthygobject-%{sub_version}.so
%changelog %changelog
* Mon May 19 2014 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.5-4
- Updated ibus-anthy-HEAD.patch to fix clear() in input mode.
* Mon Apr 21 2014 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.5-3 * Mon Apr 21 2014 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.5-3
- Updated ibus-anthy-HEAD.patch to unref pixbuf on destroy. - Updated ibus-anthy-HEAD.patch to unref pixbuf on destroy.