[gtksourceview/wip/chergert/gsv-gtk4: 58/192] language: add gtksourcelanguagemanager-private.h




commit 67b9d165566303659b40a3626e79ba0c92aa3574
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 9 12:52:19 2020 -0800

    language: add gtksourcelanguagemanager-private.h

 docs/reference/meson.build                       |  1 +
 gtksourceview/gtksourceinit.c                    |  5 ++--
 gtksourceview/gtksourcelanguagemanager-private.h | 30 ++++++++++++++++++++++++
 gtksourceview/gtksourcelanguagemanager.c         |  3 +--
 gtksourceview/gtksourcelanguagemanager.h         |  2 --
 5 files changed, 35 insertions(+), 6 deletions(-)
---
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index 8f47ab377..a0c19bdfd 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -30,6 +30,7 @@ reference_private_h = [
   'gtksourcegutterrenderer-private.h',
   'gtksourceiter-private.h',
   'gtksourcelanguage-private.h',
+  'gtksourcelanguagemanager-private.h',
   'gtksourcemarkssequence.h',
   'gtksourcepixbufhelper.h',
   'gtksourceregex.h',
diff --git a/gtksourceview/gtksourceinit.c b/gtksourceview/gtksourceinit.c
index f4f25c68f..38e046c66 100644
--- a/gtksourceview/gtksourceinit.c
+++ b/gtksourceview/gtksourceinit.c
@@ -20,9 +20,10 @@
 
 #include "config.h"
 
-#include "gtksourceinit.h"
 #include <glib/gi18n-lib.h>
-#include "gtksourcelanguagemanager.h"
+
+#include "gtksourceinit.h"
+#include "gtksourcelanguagemanager-private.h"
 #include "gtksourcestyleschememanager.h"
 
 #ifdef G_OS_WIN32
diff --git a/gtksourceview/gtksourcelanguagemanager-private.h 
b/gtksourceview/gtksourcelanguagemanager-private.h
new file mode 100644
index 000000000..3579d13ca
--- /dev/null
+++ b/gtksourceview/gtksourcelanguagemanager-private.h
@@ -0,0 +1,30 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
+ *
+ * This file is part of GtkSourceView
+ *
+ * Copyright 2003 - Paolo Maggi <paolo maggi polito it>
+ *
+ * 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 "gtksourcelanguagemanager.h"
+
+G_BEGIN_DECLS
+
+G_GNUC_INTERNAL
+GtkSourceLanguageManager *_gtk_source_language_manager_peek_default (void);
+
+G_END_DECLS
diff --git a/gtksourceview/gtksourcelanguagemanager.c b/gtksourceview/gtksourcelanguagemanager.c
index a3745d1b9..3ac329fd1 100644
--- a/gtksourceview/gtksourcelanguagemanager.c
+++ b/gtksourceview/gtksourcelanguagemanager.c
@@ -20,13 +20,12 @@
 
 #include "config.h"
 
-#include "gtksourcelanguagemanager.h"
-
 #include <string.h>
 #include <gio/gio.h>
 
 #include "gtksourcelanguage.h"
 #include "gtksourcelanguage-private.h"
+#include "gtksourcelanguagemanager-private.h"
 #include "gtksourceutils-private.h"
 
 /**
diff --git a/gtksourceview/gtksourcelanguagemanager.h b/gtksourceview/gtksourcelanguagemanager.h
index e1f2f7418..58409feaf 100644
--- a/gtksourceview/gtksourcelanguagemanager.h
+++ b/gtksourceview/gtksourcelanguagemanager.h
@@ -52,7 +52,5 @@ GTK_SOURCE_AVAILABLE_IN_ALL
 GtkSourceLanguage        *gtk_source_language_manager_guess_language   (GtkSourceLanguageManager  *lm,
                                                                         const gchar               *filename,
                                                                         const gchar               
*content_type);
-G_GNUC_INTERNAL
-GtkSourceLanguageManager *_gtk_source_language_manager_peek_default    (void);
 
 G_END_DECLS


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