diff options
author | Stanislav Slusny <slusnys@gmail.com> | 2006-02-20 23:49:38 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2006-02-20 23:49:38 (GMT) |
commit | 92603d06e3606238f25df947fed3666c5814440d (patch) | |
tree | 31e29bea7bb5656a0a965af1d1ff41f2693578fc /shell/eggfindbar.c | |
parent | aa44705ba0aace3c8ad210232a71310c598e4b67 (diff) |
Fix for the bug 319133 - Find entry should allow text scroll.
2006-02-21 Stanislav Slusny <slusnys@gmail.com>
* shell/eggfindbar.c: (egg_find_bar_class_init):
* shell/eggfindbar.h:
* shell/ev-view-accessible.c: (ev_view_accessible_idle_do_action):
* shell/ev-view-private.h:
* shell/ev-view.c: (add_scroll_binding_keypad), (ev_view_scroll),
(ev_view_class_init), (ev_sizing_mode_get_type),
(ev_scroll_type_get_type):
* shell/ev-view.h:
* shell/ev-window.c: (ev_window_cmd_scroll_forward),
(ev_window_cmd_scroll_backward), (find_bar_scroll),
(ev_window_init):
Fix for the bug 319133 - Find entry should allow text scroll.
Diffstat (limited to 'shell/eggfindbar.c')
-rw-r--r-- | shell/eggfindbar.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/shell/eggfindbar.c b/shell/eggfindbar.c index 3a42ef6..eb1f9a4 100644 --- a/shell/eggfindbar.c +++ b/shell/eggfindbar.c @@ -80,6 +80,7 @@ enum NEXT, PREVIOUS, CLOSE, + SCROLL, LAST_SIGNAL }; @@ -134,6 +135,15 @@ egg_find_bar_class_init (EggFindBarClass *klass) NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); + find_bar_signals[SCROLL] = + g_signal_new ("scroll", + G_OBJECT_CLASS_TYPE (object_class), + G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION, + G_STRUCT_OFFSET (EggFindBarClass, scroll), + NULL, NULL, + g_cclosure_marshal_VOID__ENUM, + G_TYPE_NONE, 1, + GTK_TYPE_SCROLL_TYPE); /** * EggFindBar:search_string: @@ -185,6 +195,14 @@ egg_find_bar_class_init (EggFindBarClass *klass) gtk_binding_entry_add_signal (binding_set, GDK_Escape, 0, "close", 0); + + 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); } static void |