[gnome-builder] editor: clear search box on escape



commit 88423f0af25dddbeadfb9e621013c5b28817ea6b
Author: Christian Hergert <chergert redhat com>
Date:   Wed Feb 13 12:11:24 2019 -0800

    editor: clear search box on escape
    
    This is a bit friendlier to clear the search box when focused in the
    editor.
    
    This does not affect the vim keybindings though, as they do not use the
    clear-search from Escape in their default keybinding. That is expected
    since vim mode can use "nohl" to clear the search.

 src/libide/editor/ide-editor-page.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libide/editor/ide-editor-page.c b/src/libide/editor/ide-editor-page.c
index a8ad0c5bf..823ed2c94 100644
--- a/src/libide/editor/ide-editor-page.c
+++ b/src/libide/editor/ide-editor-page.c
@@ -593,6 +593,7 @@ ide_editor_page_clear_search (IdeEditorPage *self,
 
   ide_editor_search_set_search_text (self->search, NULL);
   ide_editor_search_set_visible (self->search, FALSE);
+  gtk_revealer_set_reveal_child (self->search_revealer, FALSE);
 }
 
 static void


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