1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
diff -urN kazehakase-0.5.7.orig/src/widget/kz-entry.c kazehakase-0.5.7/src/widget/kz-entry.c
--- kazehakase-0.5.7.orig/src/widget/kz-entry.c 2009-08-29 01:15:11.000000000 +0300
+++ kazehakase-0.5.7/src/widget/kz-entry.c 2009-09-03 22:42:29.000000000 +0300
@@ -514,7 +514,7 @@
if (entry->visible)
{
- g_string_prepend_len (tmp_string, entry->text, entry->x_n_bytes);
+ g_string_prepend_len (tmp_string, entry->text, entry->n_bytes);
g_string_insert (tmp_string, cursor_index, preedit_string);
}
else
@@ -523,7 +523,7 @@
gint preedit_len_chars;
gunichar invisible_char;
- ch_len = g_utf8_strlen (entry->text, entry->x_n_bytes);
+ ch_len = g_utf8_strlen (entry->text, entry->n_bytes);
preedit_len_chars = g_utf8_strlen (preedit_string, -1);
ch_len += preedit_len_chars;
@@ -557,7 +557,7 @@
{
if (entry->visible)
{
- pango_layout_set_text (layout, entry->text, entry->x_n_bytes);
+ pango_layout_set_text (layout, entry->text, entry->n_bytes);
}
else
{
|