39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
From f85e79001e7669e3b1b45b1c6ad14dedc5e0752f Mon Sep 17 00:00:00 2001
|
|
From: Daiki Ueno <ueno@unixuser.org>
|
|
Date: Tue, 7 Jun 2011 12:54:53 +0900
|
|
Subject: [PATCH] Request IBUS_CAP_SURROUNDING_TEXT.
|
|
|
|
---
|
|
src/m17nutil.c | 8 ++++++++
|
|
1 files changed, 8 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/src/m17nutil.c b/src/m17nutil.c
|
|
index 1150cc4..db99686 100644
|
|
--- a/src/m17nutil.c
|
|
+++ b/src/m17nutil.c
|
|
@@ -91,6 +91,13 @@ ibus_m17n_parse_color (const gchar *hex)
|
|
return color;
|
|
}
|
|
|
|
+#define DEFAULT_REQUIRES (IBUS_CAP_PREEDIT_TEXT | \
|
|
+ IBUS_CAP_AUXILIARY_TEXT | \
|
|
+ IBUS_CAP_LOOKUP_TABLE | \
|
|
+ IBUS_CAP_FOCUS | \
|
|
+ IBUS_CAP_PROPERTY | \
|
|
+ IBUS_CAP_SURROUNDING_TEXT)
|
|
+
|
|
static IBusEngineDesc *
|
|
ibus_m17n_engine_new (MSymbol lang,
|
|
MSymbol name,
|
|
@@ -122,6 +129,7 @@ ibus_m17n_engine_new (MSymbol lang,
|
|
"icon", engine_icon ? engine_icon : "",
|
|
"layout", "us",
|
|
"rank", config->rank,
|
|
+ "requires", DEFAULT_REQUIRES,
|
|
NULL);
|
|
#else
|
|
engine = ibus_engine_desc_new (engine_name,
|
|
--
|
|
1.7.5.2
|
|
|