[PATCH v2 11/28] text: Add "none" preedit-style

Jan Arne Petersen jpetersen at openismus.com
Thu Apr 18 07:47:25 PDT 2013


From: Jan Arne Petersen <jpetersen at openismus.com>

Use "default" preedit style as default. "None" is used when the
composing text should look like non-composing text.

Signed-off-by: Jan Arne Petersen <jpetersen at openismus.com>
---
 clients/keyboard.c | 2 +-
 protocol/text.xml  | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/clients/keyboard.c b/clients/keyboard.c
index b2f66f0..2f28a8f 100644
--- a/clients/keyboard.c
+++ b/clients/keyboard.c
@@ -233,8 +233,8 @@ static const struct layout arabic_layout = {
 };
 
 static const char *style_labels[] = {
-	"none",
 	"default",
+	"none",
 	"active",
 	"inactive",
 	"highlight",
diff --git a/protocol/text.xml b/protocol/text.xml
index 85d67ff..02c5041 100644
--- a/protocol/text.xml
+++ b/protocol/text.xml
@@ -209,7 +209,8 @@
       <arg name="commit" type="string"/>
     </event>
     <enum name="preedit_style">
-      <entry name="default" value="1"/>
+      <entry name="default" value="0" summary="default style for composing text"/>
+      <entry name="none" value="1" summary="style should be the same as in non-composing text"/>
       <entry name="active" value="2"/>
       <entry name="inactive" value="3"/>
       <entry name="highlight" value="4"/>
-- 
1.8.1.4



More information about the wayland-devel mailing list