diff options
author | Kristian Rietveld <kris@gtk.org> | 2003-11-18 21:38:54 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2003-11-18 21:38:54 +0000 |
commit | 97dbeec935516a9e4c840383bc7858aeeffa6689 (patch) | |
tree | bb82bb0a14e1e059febf30b1bebc3f7e5a1d955a /gtk/gtkentry.c | |
parent | 7cda670d127f50507d896b842a428fcb18eef367 (diff) | |
download | gtk+-97dbeec935516a9e4c840383bc7858aeeffa6689.tar.gz |
the total number of actions is "matches + actions - 1". (Fixes #126572).
Tue Nov 18 22:26:30 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkentry.c (gtk_entry_completion_key_press): the total
number of actions is "matches + actions - 1". (Fixes #126572).
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r-- | gtk/gtkentry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index e9af219373..8f97dcf594 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -4575,8 +4575,8 @@ gtk_entry_completion_key_press (GtkWidget *widget, else if (event->keyval == GDK_Down || event->keyval == GDK_KP_Down) { completion->priv->current_selected++; - if (completion->priv->current_selected >= matches + actions) - completion->priv->current_selected = matches + actions; + if (completion->priv->current_selected > matches + actions - 1) + completion->priv->current_selected = matches + actions - 1; } else if (event->keyval == GDK_Home || event->keyval == GDK_KP_Home) completion->priv->current_selected = -1; |