[gtksourceview/wip/regex-search: 7/10] Move private buffer functions to gtksourcebuffer-private.h



commit 9b346e83a2eac9bdcb87960664e75f25dcd0aa9d
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Aug 1 13:40:05 2013 +0200

    Move private buffer functions to gtksourcebuffer-private.h
    
    Instead of having them in a public header. The symbols are anyway not
    exported.

 docs/reference/Makefile.am               |    1 +
 gtksourceview/Makefile.am                |    1 +
 gtksourceview/gtksourcebuffer-private.h  |   51 ++++++++++++++++++++++++++++++
 gtksourceview/gtksourcebuffer.c          |    1 +
 gtksourceview/gtksourcebuffer.h          |   21 ------------
 gtksourceview/gtksourcemark.c            |    1 +
 gtksourceview/gtksourceprintcompositor.c |    1 +
 gtksourceview/gtksourceview.c            |    5 ++-
 8 files changed, 59 insertions(+), 23 deletions(-)
---
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index 0ee0152..8acf0b3 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -21,6 +21,7 @@ CFILE_GLOB = $(top_srcdir)/gtksourceview/*.c
 # e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code
 IGNORE_HFILES =                                        \
        config.h                                \
+       gtksourcebuffer-private.h               \
        gtksourcecompletioncontainer.h          \
        gtksourcecompletionmodel.h              \
        gtksourcecompletion-private.h           \
diff --git a/gtksourceview/Makefile.am b/gtksourceview/Makefile.am
index c05795c..0d2f140 100644
--- a/gtksourceview/Makefile.am
+++ b/gtksourceview/Makefile.am
@@ -50,6 +50,7 @@ libgtksourceview_headers =                    \
        gtksourceview.h
 
 libgtksourceview_private_headers = \
+       gtksourcebuffer-private.h               \
        gtksourcecompletioncontainer.h          \
        gtksourcecompletionmodel.h              \
        gtksourcecompletion-private.h           \
diff --git a/gtksourceview/gtksourcebuffer-private.h b/gtksourceview/gtksourcebuffer-private.h
new file mode 100644
index 0000000..9273380
--- /dev/null
+++ b/gtksourceview/gtksourcebuffer-private.h
@@ -0,0 +1,51 @@
+/* -*- 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_PRIVATE_H__
+#define __GTK_SOURCE_BUFFER_PRIVATE_H__
+
+#include <gtk/gtk.h>
+#include "gtksourcetypes.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_PRIVATE_H__ */
diff --git a/gtksourceview/gtksourcebuffer.c b/gtksourceview/gtksourcebuffer.c
index 6998473..737cf48 100644
--- a/gtksourceview/gtksourcebuffer.c
+++ b/gtksourceview/gtksourcebuffer.c
@@ -31,6 +31,7 @@
 #include <gtk/gtk.h>
 
 #include "gtksourcebuffer.h"
+#include "gtksourcebuffer-private.h"
 #include "gtksourceview-i18n.h"
 #include "gtksourcelanguage.h"
 #include "gtksourcelanguage-private.h"
diff --git a/gtksourceview/gtksourcebuffer.h b/gtksourceview/gtksourcebuffer.h
index 8fa90d7..9026ca2 100644
--- a/gtksourceview/gtksourcebuffer.h
+++ b/gtksourceview/gtksourcebuffer.h
@@ -180,27 +180,6 @@ GtkSourceUndoManager       *gtk_source_buffer_get_undo_manager                     
(GtkSourceBuffer        *buf
 void                    gtk_source_buffer_set_undo_manager                     (GtkSourceBuffer        
*buffer,
                                                                                 GtkSourceUndoManager   
*manager);
 
-/* private */
-
-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_H__ */
diff --git a/gtksourceview/gtksourcemark.c b/gtksourceview/gtksourcemark.c
index 01d11a7..85a7a2f 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 253cf67..de08162 100644
--- a/gtksourceview/gtksourceprintcompositor.c
+++ b/gtksourceview/gtksourceprintcompositor.c
@@ -34,6 +34,7 @@
 #include "gtksourceprintcompositor.h"
 #include "gtksourceview.h"
 #include "gtksourcebuffer.h"
+#include "gtksourcebuffer-private.h"
 
 /**
  * SECTION:printcompositor
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index 1f28614..381a381 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -32,13 +32,14 @@
 #include <gdk/gdkkeysyms.h>
 #include <pango/pango-tabs.h>
 
+#include "gtksourceview.h"
+#include "gtksourcebuffer.h"
+#include "gtksourcebuffer-private.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"


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