[gitg: 14/36] Improve keynav some more



commit ebcc7ed3bd2782e29e56b5452a5d4080d4d87cc7
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 22 22:14:49 2013 -0500

    Improve keynav some more
    
    The previous commit made it so that arrow up/down can leave the
    list box when the last child is reached. But it did not work for
    Page up/down, due to the way the code was written. With this
    commit, all up/down key bindings can leave the widget.

 egg-list-box.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/egg-list-box.c b/egg-list-box.c
index 8480c4d..1532ab0 100644
--- a/egg-list-box.c
+++ b/egg-list-box.c
@@ -1968,7 +1968,7 @@ egg_list_box_real_move_cursor (EggListBox *list_box,
       return;
     }
 
-  if (child == NULL)
+  if (child == NULL || child == priv->cursor_child)
     {
       GtkDirectionType direction = count < 0 ? GTK_DIR_UP : GTK_DIR_DOWN;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]