[gnome-builder] source-view: track begin_search from vim instance
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] source-view: track begin_search from vim instance
- Date: Tue, 2 Dec 2014 04:26:54 +0000 (UTC)
commit c55968377f8798ccbe489182a3b394e71cf99ba7
Author: Christian Hergert <christian hergert me>
Date: Mon Dec 1 20:12:21 2014 -0800
source-view: track begin_search from vim instance
src/editor/gb-source-view.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-source-view.c b/src/editor/gb-source-view.c
index ab78af6..6617ff1 100644
--- a/src/editor/gb-source-view.c
+++ b/src/editor/gb-source-view.c
@@ -259,6 +259,17 @@ gb_source_view_begin_search (GbSourceView *view,
}
static void
+gb_source_view_vim_begin_search (GbSourceView *view,
+ const gchar *text,
+ GbSourceVim *vim)
+{
+ g_return_if_fail (GB_IS_SOURCE_VIEW (view));
+ g_return_if_fail (GB_IS_SOURCE_VIM (vim));
+
+ gb_source_view_begin_search (view, GTK_DIR_DOWN, text);
+}
+
+static void
on_search_highlighter_changed (GbSourceSearchHighlighter *highlighter,
GbSourceView *view)
{
@@ -1918,4 +1929,10 @@ gb_source_view_init (GbSourceView *view)
"enabled", FALSE,
"text-view", view,
NULL);
+ g_signal_connect_object (view->priv->vim,
+ "begin-search",
+ G_CALLBACK (gb_source_view_vim_begin_search),
+ view,
+ G_CONNECT_SWAPPED);
+
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]