[gtk+] Bug 528283 - Problems when using PageUp & PageDown to navigate...
- From: Kristian Rietveld <kristian src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Bug 528283 - Problems when using PageUp & PageDown to navigate...
- Date: Sun, 23 Aug 2009 20:06:58 +0000 (UTC)
commit 9976554c6e8605aadd7d8df7fd26b3e01fc9e663
Author: Kristian Rietveld <kris gtk org>
Date: Sun Aug 23 12:21:53 2009 +0200
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.
gtk/gtktreeview.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index f090a74..5933f53 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -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))
gtk_widget_error_bell (GTK_WIDGET (tree_view));
+ gtk_widget_grab_focus (GTK_WIDGET (tree_view));
+
cleanup:
gtk_tree_path_free (old_cursor_path);
gtk_tree_path_free (cursor_path);
@@ -9831,6 +9833,7 @@ gtk_tree_view_move_cursor_left_right (GtkTreeView *tree_view,
cursor_node,
NULL);
g_signal_emit (tree_view, tree_view_signals[CURSOR_CHANGED], 0);
+ gtk_widget_grab_focus (GTK_WIDGET (tree_view));
}
else
{
@@ -9896,6 +9899,7 @@ gtk_tree_view_move_cursor_start_end (GtkTreeView *tree_view,
if (gtk_tree_path_compare (old_path, path))
{
gtk_tree_view_real_set_cursor (tree_view, path, TRUE, TRUE);
+ gtk_widget_grab_focus (GTK_WIDGET (tree_view));
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]