[gtksourceview/wip/chergert/gsv-gtk4: 52/125] search: add gtksourcesearchcontext-private.h



commit a140d2166340dd63574a56cc44bdeac3e291dc87
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 9 13:09:43 2020 -0800

    search: add gtksourcesearchcontext-private.h

 docs/reference/meson.build                     |  1 +
 gtksourceview/gtksourcebuffer.c                |  2 +-
 gtksourceview/gtksourcesearchcontext-private.h | 33 ++++++++++++++++++++++++++
 gtksourceview/gtksourcesearchcontext.c         |  2 +-
 gtksourceview/gtksourcesearchcontext.h         |  5 ----
 gtksourceview/gtksourceview.c                  |  2 +-
 6 files changed, 37 insertions(+), 8 deletions(-)
---
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index be89e4c6..da1ae869 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -34,6 +34,7 @@ reference_private_h = [
   'gtksourcemarkssequence.h',
   'gtksourcepixbufhelper.h',
   'gtksourceregex.h',
+  'gtksourcesearchcontext-private.h',
   'gtksourcestyle-private.h',
   'gtksourcestylescheme-private.h',
   'gtksourcestyleschememanager-private.h',
diff --git a/gtksourceview/gtksourcebuffer.c b/gtksourceview/gtksourcebuffer.c
index bc32d2b1..120c9708 100644
--- a/gtksourceview/gtksourcebuffer.c
+++ b/gtksourceview/gtksourcebuffer.c
@@ -41,7 +41,7 @@
 #include "gtksourcestyleschememanager.h"
 #include "gtksourcemark.h"
 #include "gtksourcemarkssequence.h"
-#include "gtksourcesearchcontext.h"
+#include "gtksourcesearchcontext-private.h"
 #include "gtksourcetag.h"
 #include "gtksource-enumtypes.h"
 
diff --git a/gtksourceview/gtksourcesearchcontext-private.h b/gtksourceview/gtksourcesearchcontext-private.h
new file mode 100644
index 00000000..2838a1b7
--- /dev/null
+++ b/gtksourceview/gtksourcesearchcontext-private.h
@@ -0,0 +1,33 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
+ *
+ * This file is part of GtkSourceView
+ *
+ * Copyright 2013, 2016 - Sébastien Wilmet <swilmet gnome org>
+ *
+ * GtkSourceView is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * GtkSourceView is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include "gtksourcesearchcontext.h"
+
+G_BEGIN_DECLS
+
+G_GNUC_INTERNAL
+void _gtk_source_search_context_update_highlight (GtkSourceSearchContext *search,
+                                                  const GtkTextIter      *start,
+                                                  const GtkTextIter      *end,
+                                                  gboolean                synchronous);
+
+G_END_DECLS
diff --git a/gtksourceview/gtksourcesearchcontext.c b/gtksourceview/gtksourcesearchcontext.c
index 38d75594..8417a12c 100644
--- a/gtksourceview/gtksourcesearchcontext.c
+++ b/gtksourceview/gtksourcesearchcontext.c
@@ -22,7 +22,7 @@
 
 #include <string.h>
 
-#include "gtksourcesearchcontext.h"
+#include "gtksourcesearchcontext-private.h"
 #include "gtksourcesearchsettings.h"
 #include "gtksourcebuffer.h"
 #include "gtksourcebuffer-private.h"
diff --git a/gtksourceview/gtksourcesearchcontext.h b/gtksourceview/gtksourcesearchcontext.h
index 337dcd11..5f1e596d 100644
--- a/gtksourceview/gtksourcesearchcontext.h
+++ b/gtksourceview/gtksourcesearchcontext.h
@@ -109,10 +109,5 @@ guint                    gtk_source_search_context_replace_all             (GtkS
                                                                             const gchar              
*replace,
                                                                             gint                      
replace_length,
                                                                             GError                  **error);
-G_GNUC_INTERNAL
-void                     _gtk_source_search_context_update_highlight       (GtkSourceSearchContext   *search,
-                                                                            const GtkTextIter        *start,
-                                                                            const GtkTextIter        *end,
-                                                                            gboolean                  
synchronous);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index fb220e41..dbbd8474 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -48,7 +48,7 @@
 #include "gtksourcegutterrendererlines.h"
 #include "gtksourcegutterrenderermarks-private.h"
 #include "gtksourceiter-private.h"
-#include "gtksourcesearchcontext.h"
+#include "gtksourcesearchcontext-private.h"
 #include "gtksourcespacedrawer.h"
 #include "gtksourcespacedrawer-private.h"
 


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