2012-07-17 10:27:02 +00:00
|
|
|
From 027e4a40a37601c6733a8911fd3949a9310b0258 Mon Sep 17 00:00:00 2001
|
2011-09-08 05:03:03 +00:00
|
|
|
From: fujiwarat <takao.fujiwara1@gmail.com>
|
2012-07-17 10:27:02 +00:00
|
|
|
Date: Wed, 9 May 2012 19:15:00 +0900
|
2011-09-08 05:03:03 +00:00
|
|
|
Subject: [PATCH] Added a workaround to disable preedit in gnome-shell
|
|
|
|
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=658420
|
|
|
|
---
|
|
|
|
client/gtk2/ibusimcontext.c | 8 ++++++++
|
2012-07-17 10:27:02 +00:00
|
|
|
1 file changed, 8 insertions(+)
|
2011-09-08 05:03:03 +00:00
|
|
|
|
|
|
|
diff --git a/client/gtk2/ibusimcontext.c b/client/gtk2/ibusimcontext.c
|
2012-07-17 10:27:02 +00:00
|
|
|
index 584b92d..c4c61d3 100644
|
2011-09-08 05:03:03 +00:00
|
|
|
--- a/client/gtk2/ibusimcontext.c
|
|
|
|
+++ b/client/gtk2/ibusimcontext.c
|
2013-01-15 10:02:41 +00:00
|
|
|
@@ -645,6 +645,15 @@ ibus_im_context_init (GObject *obj)
|
|
|
|
|
|
|
|
ibusimcontext->events_queue = g_queue_new ();
|
|
|
|
|
2011-09-08 05:03:03 +00:00
|
|
|
+ if (!g_getenv ("IBUS_GNOME_SHELL_ENABLE_PREEDIT_TEXT")) {
|
|
|
|
+ const gchar * prgname = g_get_prgname ();
|
|
|
|
+ if (g_strcmp0 (prgname, "gnome-shell") == 0) {
|
2012-04-28 06:13:40 +00:00
|
|
|
+ if (ibusimcontext->caps & IBUS_CAP_PREEDIT_TEXT) {
|
2011-09-08 05:03:03 +00:00
|
|
|
+ ibusimcontext->caps ^= IBUS_CAP_PREEDIT_TEXT;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
2013-01-15 10:02:41 +00:00
|
|
|
+
|
2011-09-08 05:03:03 +00:00
|
|
|
// Create slave im context
|
2013-01-15 10:02:41 +00:00
|
|
|
ibusimcontext->slave = gtk_im_context_simple_new ();
|
|
|
|
gtk_im_context_simple_add_table (GTK_IM_CONTEXT_SIMPLE (ibusimcontext->slave),
|
2011-09-08 05:03:03 +00:00
|
|
|
--
|
2012-07-17 10:27:02 +00:00
|
|
|
1.7.10.4
|
2011-09-08 05:03:03 +00:00
|
|
|
|