[gnome-builder/wip/gtk4-port] libide/editor: setup editor search too



commit 5eed980a5ce1b79d4a98ed2d8fb0457f0062ba56
Author: Christian Hergert <chergert redhat com>
Date:   Wed Apr 13 11:13:16 2022 -0700

    libide/editor: setup editor search too

 src/libide/editor/ide-editor-workspace.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/editor/ide-editor-workspace.c b/src/libide/editor/ide-editor-workspace.c
index 1f43e8100..2cd9f14ad 100644
--- a/src/libide/editor/ide-editor-workspace.c
+++ b/src/libide/editor/ide-editor-workspace.c
@@ -166,6 +166,12 @@ ide_editor_workspace_get_frame_at_position (IdeWorkspace     *workspace,
                                     self->grid);
 }
 
+static gboolean
+ide_editor_workspace_can_search (IdeWorkspace *workspace)
+{
+  return TRUE;
+}
+
 static void
 ide_editor_workspace_dispose (GObject *object)
 {
@@ -190,11 +196,12 @@ ide_editor_workspace_class_init (IdeEditorWorkspaceClass *klass)
 
   object_class->dispose = ide_editor_workspace_dispose;
 
-  workspace_class->context_set = ide_editor_workspace_context_set;
   workspace_class->add_page = ide_editor_workspace_add_page;
   workspace_class->add_pane = ide_editor_workspace_add_pane;
-  workspace_class->get_most_recent_frame = ide_editor_workspace_get_most_recent_frame;
+  workspace_class->can_search = ide_editor_workspace_can_search;
+  workspace_class->context_set = ide_editor_workspace_context_set;
   workspace_class->get_frame_at_position = ide_editor_workspace_get_frame_at_position;
+  workspace_class->get_most_recent_frame = ide_editor_workspace_get_most_recent_frame;
 
   ide_workspace_class_set_kind (workspace_class, "editor");
 


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