summaryrefslogtreecommitdiff
path: root/shell/eggfindbar.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-24 19:43:45 +0200
committerraveit65 <[email protected]>2016-06-29 16:23:03 +0200
commitb583933820718abeb0f09b38f08bdf53c6924340 (patch)
treebe572a168a3493fe5697c0af69cf84c60b9cefb4 /shell/eggfindbar.c
parent6bf223cbbfcfa6b42c019a45fb96c1236b88cdc5 (diff)
downloadatril-b583933820718abeb0f09b38f08bdf53c6924340.tar.bz2
atril-b583933820718abeb0f09b38f08bdf53c6924340.tar.xz
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
Diffstat (limited to 'shell/eggfindbar.c')
-rw-r--r--shell/eggfindbar.c9
1 files 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