[PATCH 12/13] text: Add "none" preedit-style

Jan Arne Petersen jpetersen at openismus.com
Tue Feb 19 10:27:06 PST 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 9307585..18a54d9 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.2



More information about the wayland-devel mailing list