diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-09-13 15:08:43 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-09-13 15:08:43 +0000 |
commit | 90196d7e5ea063b604c493b1d1248e1c4683e5bc (patch) | |
tree | cb3452769f94a180b8a48a12afcccd45bed6235f /tests/testentrycompletion.c | |
parent | 6c8be091efe7ceb4d3ce2bd7603a2ced1a4e75cc (diff) | |
download | gtk+-90196d7e5ea063b604c493b1d1248e1c4683e5bc.tar.gz |
Add some strings containing multibyte characters.
2005-09-13 Matthias Clasen <mclasen@redhat.com>
* tests/testentrycompletion.c (create_simple_completion_model): Add
some strings containing multibyte characters.
* gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
Fix prefix insertion for multibyte characters. (#316095,
Tommi Komulainen)
Diffstat (limited to 'tests/testentrycompletion.c')
-rw-r--r-- | tests/testentrycompletion.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/testentrycompletion.c b/tests/testentrycompletion.c index b806b016be..92f69d432c 100644 --- a/tests/testentrycompletion.c +++ b/tests/testentrycompletion.c @@ -111,6 +111,12 @@ create_simple_completion_model (void) gtk_list_store_set (store, &iter, 0, "Totipalmi", -1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, 0, "zombie", -1); + gtk_list_store_append (store, &iter); + gtk_list_store_set (store, &iter, 0, "a\303\246x", -1); + gtk_list_store_append (store, &iter); + gtk_list_store_set (store, &iter, 0, "a\303\246y", -1); + gtk_list_store_append (store, &iter); + gtk_list_store_set (store, &iter, 0, "a\303\246z", -1); return GTK_TREE_MODEL (store); } @@ -314,6 +320,7 @@ main (int argc, char *argv[]) /* Create the completion object */ completion = gtk_entry_completion_new (); + gtk_entry_completion_set_inline_completion (completion, TRUE); /* Assign the completion to the entry */ gtk_entry_set_completion (GTK_ENTRY (entry), completion); |