[Xfce4-commits] <midori:master> Initially pressing Up in completion should select the last match

Christian Dywan noreply at xfce.org
Thu Jan 28 23:30:03 CET 2010


Updating branch refs/heads/master
         to 8c62689981c1bb31805cb0b7452581907966be6a (commit)
       from ca9420bdfcce62702b6e30afd1f0e1f38f556f6e (commit)

commit 8c62689981c1bb31805cb0b7452581907966be6a
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Jan 28 23:15:49 2010 +0100

    Initially pressing Up in completion should select the last match

 midori/midori-locationaction.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index a059364..a3e5cd8 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -853,7 +853,12 @@ midori_location_action_key_press_event_cb (GtkEntry*    entry,
             if (event->keyval == GDK_Down || event->keyval == GDK_KP_Down)
                 selected = MIN (selected + 1, matches -1);
             else if (event->keyval == GDK_Up || event->keyval == GDK_KP_Up)
-                selected = MAX (selected - 1, 0);
+            {
+                if (selected == -1)
+                    selected = matches - 1;
+                else
+                    selected = MAX (selected - 1, 0);
+            }
             else if (event->keyval == GDK_Page_Down)
                 selected = MIN (selected + 14, matches -1);
             else if (event->keyval == GDK_Page_Up)



More information about the Xfce4-commits mailing list