ibus/ibus-810211-no-switch-by-no-trigger.patch
Takao Fujiwara a208e6b136 Bumped to 1.4.99.20121109
Removed im-chooser, imsettings-gnome, gnome-icon-theme-symbolic
dependencies in f18 because ibus gnome integration is done.
Use ibus-keyboard instead of input-keyboard-symbolic.
Disabled ibus-gjs build because of ibus gnome integration.
2012-11-14 12:41:29 +09:00

37 lines
1.1 KiB
Diff

From 092d20121fc5401810b60c1d01f331a80b4ed42c Mon Sep 17 00:00:00 2001
From: fujiwarat <takao.fujiwara1@gmail.com>
Date: Sat, 6 Oct 2012 17:54:27 +0900
Subject: [PATCH] Fix not to switch engines by non-trigger keys.
---
ui/gtk3/switcher.vala | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ui/gtk3/switcher.vala b/ui/gtk3/switcher.vala
index 494fab9..c5286b1 100644
--- a/ui/gtk3/switcher.vala
+++ b/ui/gtk3/switcher.vala
@@ -127,6 +127,7 @@ class Switcher : Gtk.Window {
/* Let gtk recalculate the window size. */
resize(1, 1);
+ m_result = 0;
m_selected_engine = index;
m_label.set_text(m_buttons[index].longname);
m_buttons[index].grab_focus();
@@ -365,6 +366,11 @@ class Switcher : Gtk.Window {
break;
default:
debug("0x%04x", pe->keyval);
+ if (m_loop != null) {
+ m_loop.quit();
+ m_loop = null;
+ }
+ retval = false;
break;
}
} while (false);
--
1.8.0