[gtksourceview/wip/search] Move private buffer functions in gtksourcebuffer-private.h
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/search] Move private buffer functions in gtksourcebuffer-private.h
- Date: Wed, 19 Jun 2013 11:17:30 +0000 (UTC)
commit d25c364f7f737e34b06f86f39e2e4990e830c9c9
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Jun 19 13:15:11 2013 +0200
Move private buffer functions in gtksourcebuffer-private.h
gtksourceview/gtksourcebuffer-private.h | 52 ++++++++++++++++++++++++++++++
gtksourceview/gtksourcebuffer.c | 3 +-
gtksourceview/gtksourcebuffer.h | 15 --------
gtksourceview/gtksourcemark.c | 1 +
gtksourceview/gtksourceprintcompositor.c | 3 +-
gtksourceview/gtksourceview.c | 4 +-
6 files changed, 59 insertions(+), 19 deletions(-)
---
diff --git a/gtksourceview/gtksourcebuffer-private.h b/gtksourceview/gtksourcebuffer-private.h
new file mode 100644
index 0000000..87923d6
--- /dev/null
+++ b/gtksourceview/gtksourcebuffer-private.h
@@ -0,0 +1,52 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
+ * gtksourcebuffer-private.h
+ * This file is part of GtkSourceView
+ *
+ * Copyright (C) 2013 - 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, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef __GTK_SOURCE_BUFFER_PIVATE_H__
+#define __GTK_SOURCE_BUFFER_PIVATE_H__
+
+#include <gtk/gtk.h>
+#include "gtksourcetypes.h"
+#include "gtksourcetypes-private.h"
+
+G_BEGIN_DECLS
+
+G_GNUC_INTERNAL
+void _gtk_source_buffer_update_highlight (GtkSourceBuffer *buffer,
+ const GtkTextIter *start,
+ const GtkTextIter *end,
+ gboolean synchronous);
+
+G_GNUC_INTERNAL
+GtkSourceMark *_gtk_source_buffer_source_mark_next (GtkSourceBuffer *buffer,
+ GtkSourceMark *mark,
+ const gchar *category);
+
+G_GNUC_INTERNAL
+GtkSourceMark *_gtk_source_buffer_source_mark_prev (GtkSourceBuffer *buffer,
+ GtkSourceMark *mark,
+ const gchar *category);
+
+G_GNUC_INTERNAL
+GtkTextTag *_gtk_source_buffer_get_bracket_match_tag (GtkSourceBuffer *buffer);
+
+G_END_DECLS
+
+#endif /* __GTK_SOURCE_BUFFER_PIVATE_H__ */
diff --git a/gtksourceview/gtksourcebuffer.c b/gtksourceview/gtksourcebuffer.c
index 57e3eff..9f8dc01 100644
--- a/gtksourceview/gtksourcebuffer.c
+++ b/gtksourceview/gtksourcebuffer.c
@@ -30,10 +30,11 @@
#include <string.h>
#include <gtk/gtk.h>
+#include "gtksourcebuffer.h"
+#include "gtksourcebuffer-private.h"
#include "gtksourceview-i18n.h"
#include "gtksourcelanguage.h"
#include "gtksourcelanguage-private.h"
-#include "gtksourcebuffer.h"
#include "gtksourceundomanager.h"
#include "gtksourceview-marshal.h"
#include "gtksourcestylescheme.h"
diff --git a/gtksourceview/gtksourcebuffer.h b/gtksourceview/gtksourcebuffer.h
index 95447d9..5768187 100644
--- a/gtksourceview/gtksourcebuffer.h
+++ b/gtksourceview/gtksourcebuffer.h
@@ -185,21 +185,6 @@ void gtk_source_buffer_set_search_flags (GtkSourceBuffer
*buffer,
GtkTextSearchFlags gtk_source_buffer_get_search_flags (GtkSourceBuffer *buffer);
-/* private */
-void _gtk_source_buffer_update_highlight (GtkSourceBuffer *buffer,
- const GtkTextIter *start,
- const GtkTextIter *end,
- gboolean synchronous);
-
-GtkSourceMark *_gtk_source_buffer_source_mark_next (GtkSourceBuffer *buffer,
- GtkSourceMark *mark,
- const gchar *category);
-GtkSourceMark *_gtk_source_buffer_source_mark_prev (GtkSourceBuffer *buffer,
- GtkSourceMark *mark,
- const gchar *category);
-
-GtkTextTag *_gtk_source_buffer_get_bracket_match_tag (GtkSourceBuffer *buffer);
-
G_END_DECLS
#endif /* __GTK_SOURCE_BUFFER_H__ */
diff --git a/gtksourceview/gtksourcemark.c b/gtksourceview/gtksourcemark.c
index f05cfbc..fffbc62 100644
--- a/gtksourceview/gtksourcemark.c
+++ b/gtksourceview/gtksourcemark.c
@@ -21,6 +21,7 @@
#include "gtksourcemark.h"
#include "gtksourcebuffer.h"
+#include "gtksourcebuffer-private.h"
#include "gtksourceview-i18n.h"
/**
diff --git a/gtksourceview/gtksourceprintcompositor.c b/gtksourceview/gtksourceprintcompositor.c
index 61df8f6..576f91b 100644
--- a/gtksourceview/gtksourceprintcompositor.c
+++ b/gtksourceview/gtksourceprintcompositor.c
@@ -30,10 +30,11 @@
#include <string.h>
#include <time.h>
-#include "gtksourceview-i18n.h"
#include "gtksourceprintcompositor.h"
+#include "gtksourceview-i18n.h"
#include "gtksourceview.h"
#include "gtksourcebuffer.h"
+#include "gtksourcebuffer-private.h"
/**
* SECTION:printcompositor
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index 01e748d..f211938 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -32,13 +32,12 @@
#include <gdk/gdkkeysyms.h>
#include <pango/pango-tabs.h>
+#include "gtksourceview.h"
#include "gtksourceview-i18n.h"
-
#include "gtksourceview-marshal.h"
#include "gtksourceview-typebuiltins.h"
#include "gtksourcemark.h"
#include "gtksourcemarkattributes.h"
-#include "gtksourceview.h"
#include "gtksourcestylescheme.h"
#include "gtksourcecompletionprovider.h"
#include "gtksourcecompletion-private.h"
@@ -46,6 +45,7 @@
#include "gtksourcegutter-private.h"
#include "gtksourcegutterrendererlines.h"
#include "gtksourcegutterrenderermarks.h"
+#include "gtksourcebuffer-private.h"
/**
* SECTION:view
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]