[gnome-builder/gnome-builder-3-18] editor: use actions to move the cursor in search



commit df30c85430b5607b418740e7dff7c7f443b5b6bc
Author: Christian Hergert <chergert redhat com>
Date:   Tue Oct 13 14:15:34 2015 -0700

    editor: use actions to move the cursor in search
    
    This trying to change the direction was causing issues with getting
    emacs ctrl+r/ctrl+s working. I don't think it breaks anything else, since
    we don't want to flip directions here.

 src/editor/gb-editor-frame.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/editor/gb-editor-frame.c b/src/editor/gb-editor-frame.c
index c0dd43a..a8d85b5 100644
--- a/src/editor/gb-editor-frame.c
+++ b/src/editor/gb-editor-frame.c
@@ -489,13 +489,11 @@ gb_editor_frame__search_key_press_event (GbEditorFrame *self,
       return GDK_EVENT_STOP;
 
     case GDK_KEY_Down:
-      ide_source_view_set_search_direction (self->source_view, GTK_DIR_DOWN);
       gb_widget_activate_action (GTK_WIDGET (self), "frame", "next-search-result", NULL);
       return GDK_EVENT_STOP;
 
     case GDK_KEY_Up:
-      ide_source_view_set_search_direction (self->source_view, GTK_DIR_UP);
-      gb_widget_activate_action (GTK_WIDGET (self), "frame", "next-search-result", NULL);
+      gb_widget_activate_action (GTK_WIDGET (self), "frame", "previous-search-result", NULL);
       return GDK_EVENT_STOP;
 
     default:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]