Add work_char to atktext's wrap mode.
authorJoanmarie Diggs <joanmarie.diggs@gmail.com>
Mon, 10 Aug 2009 03:30:26 +0000 (11:30 +0800)
committerLi Yuan <li.yuan@sun.com>
Mon, 10 Aug 2009 03:30:26 +0000 (11:30 +0800)
Bug #591105.

atk/atktext.c
atk/atktext.h

index 5bb9397..59b53f0 100755 (executable)
@@ -89,9 +89,10 @@ static const guint8 direction_offsets[] = {
 static const char wrap_mode[] =
   "none\0"
   "char\0"
-  "word";
+  "word\0"
+  "word_char";
 static const guint8 wrap_mode_offsets[] = {
-  0, 5, 10
+  0, 5, 10, 15
 };
 
 static const char underline[] =
index 7ff3521..3ec19ce 100755 (executable)
@@ -54,7 +54,7 @@ G_BEGIN_DECLS
  *@ATK_TEXT_ATTR_FG_COLOR:The foreground color. The value is an RGB value of the format "%u,%u,%u"
  *@ATK_TEXT_ATTR_BG_STIPPLE: "true" if a #GdkBitmap is set for stippling the background color.
  *@ATK_TEXT_ATTR_FG_STIPPLE: "true" if a #GdkBitmap is set for stippling the foreground color.
- *@ATK_TEXT_ATTR_WRAP_MODE: The wrap mode of the text, if any. Values are "none", "char" or "word" 
+ *@ATK_TEXT_ATTR_WRAP_MODE: The wrap mode of the text, if any. Values are "none", "char", "word", or "word_char".
  *@ATK_TEXT_ATTR_DIRECTION: The direction of the text, if set. Values are "none", "ltr" or "rtl" 
  *@ATK_TEXT_ATTR_JUSTIFICATION: The justification of the text, if set. Values are "left", "right", "center" or "fill" 
  *@ATK_TEXT_ATTR_STRETCH: The stretch of the text, if set. Values are "ultra_condensed", "extra_condensed", "condensed", "semi_condensed", "normal", "semi_expanded", "expanded", "extra_expanded" or "ultra_expanded"