aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-completion-match.c
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-09-27 03:42:39 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-09-27 03:42:39 +0800
commit010204b7bf75592bd178c735206331f4f6c23af5 (patch)
treea9c60623dbeecfdf8c8bf0c4967c72b8ac490552 /widgets/text/e-completion-match.c
parent31f1562d1435fd8b99f9b7f5b19bc93b3210bab4 (diff)
downloadgsoc2013-evolution-010204b7bf75592bd178c735206331f4f6c23af5.tar
gsoc2013-evolution-010204b7bf75592bd178c735206331f4f6c23af5.tar.gz
gsoc2013-evolution-010204b7bf75592bd178c735206331f4f6c23af5.tar.bz2
gsoc2013-evolution-010204b7bf75592bd178c735206331f4f6c23af5.tar.lz
gsoc2013-evolution-010204b7bf75592bd178c735206331f4f6c23af5.tar.xz
gsoc2013-evolution-010204b7bf75592bd178c735206331f4f6c23af5.tar.zst
gsoc2013-evolution-010204b7bf75592bd178c735206331f4f6c23af5.zip
Allow ctrl-p and ctrl-n to be used to move up and down in the completion
2001-09-26 Jon Trowbridge <trow@ximian.com> * gal/e-text/e-completion-view.c (e_completion_view_key_press_handler): Allow ctrl-p and ctrl-n to be used to move up and down in the completion list. (Bug #10500) * gal/e-text/e-completion-match.c (e_completion_match_set_text): Properly validate the utf8. svn path=/trunk/; revision=13159
Diffstat (limited to 'widgets/text/e-completion-match.c')
-rw-r--r--widgets/text/e-completion-match.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/text/e-completion-match.c b/widgets/text/e-completion-match.c
index 19a0980516..45c54ccce3 100644
--- a/widgets/text/e-completion-match.c
+++ b/widgets/text/e-completion-match.c
@@ -96,13 +96,13 @@ e_completion_match_set_text (ECompletionMatch *match,
if (match_text == NULL) {
match_text = "Unknown_Match";
- } else if (! g_utf8_validate (match_text, 0, NULL)) {
+ } else if (! g_utf8_validate (match_text, -1, NULL)) {
match_text = "Invalid_UTF8";
}
if (menu_text == NULL) {
menu_text = match_text;
- } else if (! g_utf8_validate (menu_text, 0, NULL)) {
+ } else if (! g_utf8_validate (menu_text, -1, NULL)) {
menu_text = "Invalid_UTF8";
}