[gnome-builder/gnome-builder-3-18] editor-frame: store search direction from find action



commit fec6e0a02f2a943484534673c4b2f059bad7e3e5
Author: Ray Strode <rstrode redhat com>
Date:   Sun Oct 11 14:41:16 2015 -0400

    editor-frame: store search direction from find action
    
    The find action now passes a direction with it, this
    commit saves that direction on the view for future use.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756405

 src/editor/gb-editor-frame-actions.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-frame-actions.c b/src/editor/gb-editor-frame-actions.c
index 0d84eeb..359daa0 100644
--- a/src/editor/gb-editor-frame-actions.c
+++ b/src/editor/gb-editor-frame-actions.c
@@ -30,9 +30,14 @@ gb_editor_frame_actions_find (GSimpleAction *action,
   GtkTextBuffer *buffer;
   GtkTextIter start_sel;
   GtkTextIter end_sel;
+  GtkDirectionType search_direction;
 
   g_assert (GB_IS_EDITOR_FRAME (self));
 
+  search_direction = (GtkDirectionType) g_variant_get_int32 (variant);
+  ide_source_view_set_search_direction (self->source_view,
+                                        search_direction);
+
   buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (self->source_view));
 
   /*


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