mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-20 10:20:09 +00:00
Bug 528283 - Problems when using PageUp & PageDown to navigate...
Patch from Jonathan Matthew to make focus grabbing of page up/down, home/end and left/right movements consistent with up/down.
This commit is contained in:
parent
2f3cf2c449
commit
9976554c6e
@ -9737,6 +9737,8 @@ gtk_tree_view_move_cursor_page_up_down (GtkTreeView *tree_view,
|
|||||||
if (!gtk_tree_path_compare (old_cursor_path, cursor_path))
|
if (!gtk_tree_path_compare (old_cursor_path, cursor_path))
|
||||||
gtk_widget_error_bell (GTK_WIDGET (tree_view));
|
gtk_widget_error_bell (GTK_WIDGET (tree_view));
|
||||||
|
|
||||||
|
gtk_widget_grab_focus (GTK_WIDGET (tree_view));
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
gtk_tree_path_free (old_cursor_path);
|
gtk_tree_path_free (old_cursor_path);
|
||||||
gtk_tree_path_free (cursor_path);
|
gtk_tree_path_free (cursor_path);
|
||||||
@ -9831,6 +9833,7 @@ gtk_tree_view_move_cursor_left_right (GtkTreeView *tree_view,
|
|||||||
cursor_node,
|
cursor_node,
|
||||||
NULL);
|
NULL);
|
||||||
g_signal_emit (tree_view, tree_view_signals[CURSOR_CHANGED], 0);
|
g_signal_emit (tree_view, tree_view_signals[CURSOR_CHANGED], 0);
|
||||||
|
gtk_widget_grab_focus (GTK_WIDGET (tree_view));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -9896,6 +9899,7 @@ gtk_tree_view_move_cursor_start_end (GtkTreeView *tree_view,
|
|||||||
if (gtk_tree_path_compare (old_path, path))
|
if (gtk_tree_path_compare (old_path, path))
|
||||||
{
|
{
|
||||||
gtk_tree_view_real_set_cursor (tree_view, path, TRUE, TRUE);
|
gtk_tree_view_real_set_cursor (tree_view, path, TRUE, TRUE);
|
||||||
|
gtk_widget_grab_focus (GTK_WIDGET (tree_view));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user