[gtksourceview/wip/chergert/gsv-gtk4: 49/118] style: add gtksourcestyleschememanager-private.h
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 49/118] style: add gtksourcestyleschememanager-private.h
- Date: Wed, 29 Jan 2020 19:01:39 +0000 (UTC)
commit 94a5018813cc3f29a4b4d732c4a76ee30ec21b75
Author: Christian Hergert <chergert redhat com>
Date: Thu Jan 9 12:56:50 2020 -0800
style: add gtksourcestyleschememanager-private.h
docs/reference/meson.build | 1 +
gtksourceview/gtksourceinit.c | 2 +-
.../gtksourcestyleschememanager-private.h | 30 ++++++++++++++++++++++
gtksourceview/gtksourcestyleschememanager.c | 6 ++---
gtksourceview/gtksourcestyleschememanager.h | 2 --
5 files changed, 35 insertions(+), 6 deletions(-)
---
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index a0c19bdf..7d799f51 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -35,6 +35,7 @@ reference_private_h = [
'gtksourcepixbufhelper.h',
'gtksourceregex.h',
'gtksourcestyle-private.h',
+ 'gtksourcestyleschememanager-private.h',
'gtksourcetypes-private.h',
'gtksourceundomanagerdefault.h',
'gtksourceutils-private.h',
diff --git a/gtksourceview/gtksourceinit.c b/gtksourceview/gtksourceinit.c
index 38e046c6..d13e5918 100644
--- a/gtksourceview/gtksourceinit.c
+++ b/gtksourceview/gtksourceinit.c
@@ -24,7 +24,7 @@
#include "gtksourceinit.h"
#include "gtksourcelanguagemanager-private.h"
-#include "gtksourcestyleschememanager.h"
+#include "gtksourcestyleschememanager-private.h"
#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN
diff --git a/gtksourceview/gtksourcestyleschememanager-private.h
b/gtksourceview/gtksourcestyleschememanager-private.h
new file mode 100644
index 00000000..7efc716d
--- /dev/null
+++ b/gtksourceview/gtksourcestyleschememanager-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-2007 - 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 "gtksourcestyleschememanager.h"
+
+G_BEGIN_DECLS
+
+G_GNUC_INTERNAL
+GtkSourceStyleSchemeManager *_gtk_source_style_scheme_manager_peek_default (void);
+
+G_END_DECLS
diff --git a/gtksourceview/gtksourcestyleschememanager.c b/gtksourceview/gtksourcestyleschememanager.c
index edf56c83..fc0f9586 100644
--- a/gtksourceview/gtksourcestyleschememanager.c
+++ b/gtksourceview/gtksourcestyleschememanager.c
@@ -22,7 +22,7 @@
#include <string.h>
-#include "gtksourcestyleschememanager.h"
+#include "gtksourcestyleschememanager-private.h"
#include "gtksourcestylescheme.h"
#include "gtksourceutils-private.h"
@@ -35,8 +35,8 @@
* Object which provides access to #GtkSourceStyleScheme<!-- -->s.
*/
-#define SCHEME_FILE_SUFFIX ".xml"
-#define STYLES_DIR "styles"
+#define SCHEME_FILE_SUFFIX ".xml"
+#define STYLES_DIR "styles"
struct _GtkSourceStyleSchemeManager
{
diff --git a/gtksourceview/gtksourcestyleschememanager.h b/gtksourceview/gtksourcestyleschememanager.h
index 628e9b77..a77c6c40 100644
--- a/gtksourceview/gtksourcestyleschememanager.h
+++ b/gtksourceview/gtksourcestyleschememanager.h
@@ -56,7 +56,5 @@ const gchar * const *gtk_source_style_scheme_manager_get_scheme_ids
GTK_SOURCE_AVAILABLE_IN_ALL
GtkSourceStyleScheme *gtk_source_style_scheme_manager_get_scheme
(GtkSourceStyleSchemeManager *manager,
const gchar
*scheme_id);
-G_GNUC_INTERNAL
-GtkSourceStyleSchemeManager *_gtk_source_style_scheme_manager_peek_default (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]