[gtksourceview/wip/chergert/gsv-gtk4: 51/117] words: add various -private.h headers
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 51/117] words: add various -private.h headers
- Date: Wed, 29 Jan 2020 17:31:41 +0000 (UTC)
commit 85c99e6846140a955d14b9424027065a7825d2f3
Author: Christian Hergert <chergert redhat com>
Date: Thu Jan 9 13:39:09 2020 -0800
words: add various -private.h headers
Keep G_GNUC_INTERNAL things inside of -private.h headers.
.../completion-providers/words/gtksourcecompletionwords.c | 10 ++++++----
...nwordsbuffer.h => gtksourcecompletionwordsbuffer-private.h} | 2 +-
.../words/gtksourcecompletionwordsbuffer.c | 4 ++--
...ordslibrary.h => gtksourcecompletionwordslibrary-private.h} | 3 ++-
.../words/gtksourcecompletionwordslibrary.c | 4 ++--
...dsproposal.h => gtksourcecompletionwordsproposal-private.h} | 0
.../words/gtksourcecompletionwordsproposal.c | 2 +-
...ionwordsutils.h => gtksourcecompletionwordsutils-private.h} | 0
.../completion-providers/words/gtksourcecompletionwordsutils.c | 2 +-
testsuite/test-completion-words.c | 2 +-
10 files changed, 16 insertions(+), 13 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
index f593a1f7..4bb5e91d 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
@@ -31,15 +31,17 @@
#include "config.h"
-#include "gtksourcecompletionwords.h"
#include <string.h>
#include <glib/gi18n-lib.h>
-#include "gtksourcecompletionwordslibrary.h"
-#include "gtksourcecompletionwordsbuffer.h"
-#include "gtksourcecompletionwordsutils.h"
+
#include "gtksourceview/gtksource.h"
#include "gtksourceview/gtksource-enumtypes.h"
+#include "gtksourcecompletionwords.h"
+#include "gtksourcecompletionwordslibrary-private.h"
+#include "gtksourcecompletionwordsbuffer-private.h"
+#include "gtksourcecompletionwordsutils-private.h"
+
#define BUFFER_KEY "GtkSourceCompletionWordsBufferKey"
enum
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.h
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer-private.h
similarity index 97%
rename from gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.h
rename to gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer-private.h
index 21b8b7a8..770bfe16 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer-private.h
@@ -22,7 +22,7 @@
#include <gtk/gtk.h>
-#include "gtksourcecompletionwordslibrary.h"
+#include "gtksourcecompletionwordslibrary-private.h"
G_BEGIN_DECLS
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
index 6d9a3e32..f9a5824d 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
@@ -21,8 +21,8 @@
#include "config.h"
-#include "gtksourcecompletionwordsbuffer.h"
-#include "gtksourcecompletionwordsutils.h"
+#include "gtksourcecompletionwordsbuffer-private.h"
+#include "gtksourcecompletionwordsutils-private.h"
#include "gtksourceview/gtksourceregion.h"
/* Timeout in seconds */
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h
b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary-private.h
similarity index 98%
rename from gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h
rename to gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary-private.h
index b1f375b5..398e5318 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary-private.h
@@ -21,7 +21,8 @@
#pragma once
#include <glib-object.h>
-#include "gtksourcecompletionwordsproposal.h"
+
+#include "gtksourcecompletionwordsproposal-private.h"
G_BEGIN_DECLS
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
index 90345332..2e6f7bcc 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
@@ -21,10 +21,10 @@
#include "config.h"
-#include "gtksourcecompletionwordslibrary.h"
-
#include <string.h>
+#include "gtksourcecompletionwordslibrary-private.h"
+
enum
{
LOCK,
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal-private.h
similarity index 100%
rename from gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h
rename to gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal-private.h
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
index c7b14233..52dbfe8b 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
@@ -20,7 +20,7 @@
#include "config.h"
-#include "gtksourcecompletionwordsproposal.h"
+#include "gtksourcecompletionwordsproposal-private.h"
struct _GtkSourceCompletionWordsProposal
{
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.h
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils-private.h
similarity index 100%
rename from gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.h
rename to gtksourceview/completion-providers/words/gtksourcecompletionwordsutils-private.h
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.c
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.c
index 0ef95bf8..6f67bcef 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.c
@@ -23,7 +23,7 @@
#include <string.h>
-#include "gtksourcecompletionwordsutils.h"
+#include "gtksourcecompletionwordsutils-private.h"
/* Here, we work on strings. It is more efficient than working with
* GtkTextIters to traverse the text (~3x faster). Both techniques are equally
diff --git a/testsuite/test-completion-words.c b/testsuite/test-completion-words.c
index 6dbafa11..c227ed55 100644
--- a/testsuite/test-completion-words.c
+++ b/testsuite/test-completion-words.c
@@ -19,7 +19,7 @@
#include <gtk/gtk.h>
#include <gtksourceview/gtksource.h>
-#include "gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h"
+#include "gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary-private.h"
static void
library_add_words (GtkSourceCompletionWordsLibrary *library)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]