From 351a9e5e125d2afdbed88b8d6d39ff289c99f06b Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 7 Sep 2008 17:34:47 +0000 Subject: [PATCH] Allow page scrolling with PageUp/PageDown keys when find bar is active. 2008-09-07 Carlos Garcia Campos * shell/eggfindbar.c: (egg_find_bar_class_init): Allow page scrolling with PageUp/PageDown keys when find bar is active. Fixes bug #529833. svn path=/trunk/; revision=3163 --- ChangeLog | 7 +++++++ shell/eggfindbar.c | 13 ++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4949510c..45beab0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-09-07 Carlos Garcia Campos + + * shell/eggfindbar.c: (egg_find_bar_class_init): + + Allow page scrolling with PageUp/PageDown keys when find bar is + active. Fixes bug #529833. + 2008-09-07 Carlos Garcia Campos * shell/ev-view-private.h: diff --git a/shell/eggfindbar.c b/shell/eggfindbar.c index bfa9e126..8b8ba262 100644 --- a/shell/eggfindbar.c +++ b/shell/eggfindbar.c @@ -187,10 +187,21 @@ egg_find_bar_class_init (EggFindBarClass *klass) gtk_binding_entry_add_signal (binding_set, GDK_Up, 0, "scroll", 1, GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_STEP_BACKWARD); - gtk_binding_entry_add_signal (binding_set, GDK_Down, 0, "scroll", 1, GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_STEP_FORWARD); + gtk_binding_entry_add_signal (binding_set, GDK_Page_Up, 0, + "scroll", 1, + GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_BACKWARD); + gtk_binding_entry_add_signal (binding_set, GDK_KP_Page_Up, 0, + "scroll", 1, + GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_BACKWARD); + gtk_binding_entry_add_signal (binding_set, GDK_Page_Down, 0, + "scroll", 1, + GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_FORWARD); + gtk_binding_entry_add_signal (binding_set, GDK_KP_Page_Down, 0, + "scroll", 1, + GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_FORWARD); } static void -- 2.43.5