Commit 86009fba authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Make inline completion insert the prefix at the right spot. (#170146, Doug

2005-03-17  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
	Make inline completion insert the prefix at the
	right spot.  (#170146, Doug Quale)
parent 691bea13
2005-03-17 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
Make inline completion insert the prefix at the
right spot. (#170146, Doug Quale)
2005-03-17 Tor Lillqvist <tml@novell.com>
* gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
......
2005-03-17 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
Make inline completion insert the prefix at the
right spot. (#170146, Doug Quale)
2005-03-17 Tor Lillqvist <tml@novell.com>
* gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
......
2005-03-17 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
Make inline completion insert the prefix at the
right spot. (#170146, Doug Quale)
2005-03-17 Tor Lillqvist <tml@novell.com>
* gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
......
......@@ -1468,7 +1468,6 @@ gtk_entry_completion_real_insert_prefix (GtkEntryCompletion *completion,
{
gint key_len;
gint prefix_len;
gint pos;
const gchar *key;
prefix_len = g_utf8_strlen (prefix, -1);
......@@ -1478,6 +1477,8 @@ gtk_entry_completion_real_insert_prefix (GtkEntryCompletion *completion,
if (prefix_len > key_len)
{
gint pos = prefix_len;
gtk_editable_insert_text (GTK_EDITABLE (completion->priv->entry),
prefix + key_len, -1, &pos);
gtk_editable_select_region (GTK_EDITABLE (completion->priv->entry),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment