[atk] Add work_char to atktext's wrap mode.
- From: Li Yuan <liyuan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [atk] Add work_char to atktext's wrap mode.
- Date: Mon, 10 Aug 2009 03:34:11 +0000 (UTC)
commit 8421b6099bf730d23207ad6ab03d3ddd0a22044e
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Mon Aug 10 11:30:26 2009 +0800
Add work_char to atktext's wrap mode.
Bug #591105.
atk/atktext.c | 5 +++--
atk/atktext.h | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/atk/atktext.c b/atk/atktext.c
index 5bb9397..59b53f0 100755
--- a/atk/atktext.c
+++ b/atk/atktext.c
@@ -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[] =
diff --git a/atk/atktext.h b/atk/atktext.h
index 7ff3521..3ec19ce 100755
--- a/atk/atktext.h
+++ b/atk/atktext.h
@@ -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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]