Fix problems with characters < 256 in wide character locales. (Patch from

Tue Feb 13 13:56:58 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktext.c (find_char_width): Fix problems with
	characters < 256 in wide character locales. (Patch
	from Yoichi Imai.)
This commit is contained in:
Owen Taylor
2001-02-13 19:58:35 +00:00
committed by Owen Taylor
parent ec7e8f971e
commit 8c9ce83511
8 changed files with 43 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
Tue Feb 13 13:56:58 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (find_char_width): Fix problems with
characters < 256 in wide character locales. (Patch
from Yoichi Imai.)
Tue Feb 13 00:58:49 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c: Properly handle passive buttons at

View File

@@ -1,3 +1,9 @@
Tue Feb 13 13:56:58 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (find_char_width): Fix problems with
characters < 256 in wide character locales. (Patch
from Yoichi Imai.)
Tue Feb 13 00:58:49 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c: Properly handle passive buttons at

View File

@@ -1,3 +1,9 @@
Tue Feb 13 13:56:58 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (find_char_width): Fix problems with
characters < 256 in wide character locales. (Patch
from Yoichi Imai.)
Tue Feb 13 00:58:49 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c: Properly handle passive buttons at

View File

@@ -1,3 +1,9 @@
Tue Feb 13 13:56:58 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (find_char_width): Fix problems with
characters < 256 in wide character locales. (Patch
from Yoichi Imai.)
Tue Feb 13 00:58:49 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c: Properly handle passive buttons at

View File

@@ -1,3 +1,9 @@
Tue Feb 13 13:56:58 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (find_char_width): Fix problems with
characters < 256 in wide character locales. (Patch
from Yoichi Imai.)
Tue Feb 13 00:58:49 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c: Properly handle passive buttons at

View File

@@ -1,3 +1,9 @@
Tue Feb 13 13:56:58 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (find_char_width): Fix problems with
characters < 256 in wide character locales. (Patch
from Yoichi Imai.)
Tue Feb 13 00:58:49 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c: Properly handle passive buttons at

View File

@@ -1,3 +1,9 @@
Tue Feb 13 13:56:58 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (find_char_width): Fix problems with
characters < 256 in wide character locales. (Patch
from Yoichi Imai.)
Tue Feb 13 00:58:49 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c: Properly handle passive buttons at

View File

@@ -3700,7 +3700,7 @@ find_char_width (GtkText* text, const GtkPropertyMark *mark, const TabStopMark *
{
return tab_mark->to_next_tab * char_widths[' '];
}
else if (ch < 256)
else if (!text->use_wchar)
{
return char_widths[ch];
}