From b583933820718abeb0f09b38f08bdf53c6924340 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 24 Jun 2016 19:43:45 +0200 Subject: eggfindbar: Find next/previous with control + Up/Down https://bugzilla.gnome.org/show_bug.cgi?id=653910 taken from: https://git.gnome.org/browse/evince/commit/?id=0d6afe8 --- shell/eggfindbar.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/shell/eggfindbar.c b/shell/eggfindbar.c index ee9eb6e0..091a5b1a 100644 --- a/shell/eggfindbar.c +++ b/shell/eggfindbar.c @@ -106,7 +106,7 @@ egg_find_bar_class_init (EggFindBarClass *klass) find_bar_signals[NEXT] = g_signal_new ("next", G_OBJECT_CLASS_TYPE (object_class), - G_SIGNAL_RUN_FIRST, + G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (EggFindBarClass, next), NULL, NULL, g_cclosure_marshal_VOID__VOID, @@ -114,7 +114,7 @@ egg_find_bar_class_init (EggFindBarClass *klass) find_bar_signals[PREVIOUS] = g_signal_new ("previous", G_OBJECT_CLASS_TYPE (object_class), - G_SIGNAL_RUN_FIRST, + G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (EggFindBarClass, previous), NULL, NULL, g_cclosure_marshal_VOID__VOID, @@ -208,6 +208,11 @@ egg_find_bar_class_init (EggFindBarClass *klass) gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Page_Down, 0, "scroll", 1, GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_PAGE_FORWARD); + + gtk_binding_entry_add_signal (binding_set, GDK_KEY_Up, GDK_CONTROL_MASK, + "previous", 0); + gtk_binding_entry_add_signal (binding_set, GDK_KEY_Down, GDK_CONTROL_MASK, + "next", 0); } static void -- cgit v1.2.1