mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
make sure we fail keynav if the only item in the list is already selected.
2007-08-14 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): make sure we fail keynav if the only item in the list is already selected. (Fixes #465039, reported by Fernando Herrera). svn path=/trunk/; revision=18610
This commit is contained in:
parent
658bb5e07c
commit
bd7b15f347
@ -1,3 +1,9 @@
|
||||
2007-08-14 Kristian Rietveld <kris@imendio.com>
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): make
|
||||
sure we fail keynav if the only item in the list is already selected.
|
||||
(Fixes #465039, reported by Fernando Herrera).
|
||||
|
||||
2007-08-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* modules/printbackends/file/gtkprintbackendfile.c: change the
|
||||
|
@ -9596,7 +9596,7 @@ gtk_tree_view_move_cursor_up_down (GtkTreeView *tree_view,
|
||||
|
||||
/*
|
||||
* If the list has only one item and multi-selection is set then select
|
||||
* the row.
|
||||
* the row (if not yet selected).
|
||||
*/
|
||||
if (tree_view->priv->selection->type == GTK_SELECTION_MULTIPLE &&
|
||||
new_cursor_node == NULL)
|
||||
@ -9608,7 +9608,8 @@ gtk_tree_view_move_cursor_up_down (GtkTreeView *tree_view,
|
||||
_gtk_rbtree_prev_full (cursor_tree, cursor_node,
|
||||
&new_cursor_tree, &new_cursor_node);
|
||||
|
||||
if (new_cursor_node == NULL)
|
||||
if (new_cursor_node == NULL
|
||||
&& !GTK_RBNODE_FLAG_SET (cursor_node, GTK_RBNODE_IS_SELECTED))
|
||||
{
|
||||
new_cursor_node = cursor_node;
|
||||
new_cursor_tree = cursor_tree;
|
||||
|
Loading…
Reference in New Issue
Block a user