text: Add "none" preedit-style
authorJan Arne Petersen <jpetersen@openismus.com>
Thu, 18 Apr 2013 14:47:25 +0000 (16:47 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 2 May 2013 20:23:46 +0000 (16:23 -0400)
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@openismus.com>
clients/keyboard.c
protocol/text.xml

index b2f66f0..2f28a8f 100644 (file)
@@ -233,8 +233,8 @@ static const struct layout arabic_layout = {
 };
 
 static const char *style_labels[] = {
-       "none",
        "default",
+       "none",
        "active",
        "inactive",
        "highlight",
index 85d67ff..02c5041 100644 (file)
       <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"/>