[gedit] GeditDocument: move metadata #defines from public to private header
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] GeditDocument: move metadata #defines from public to private header
- Date: Sat, 9 May 2015 12:35:24 +0000 (UTC)
commit ac21182783925bb0a7be92ecc47504d0cb130d36
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat May 9 14:24:42 2015 +0200
GeditDocument: move metadata #defines from public to private header
Those metadata are internal to gedit. They were anyway not present in
the docs.
gedit/gedit-document-private.h | 10 ++++++++++
gedit/gedit-document.h | 10 ----------
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gedit/gedit-document-private.h b/gedit/gedit-document-private.h
index 10120e2..0d59aaf 100644
--- a/gedit/gedit-document-private.h
+++ b/gedit/gedit-document-private.h
@@ -28,6 +28,16 @@
G_BEGIN_DECLS
+#ifdef G_OS_WIN32
+#define GEDIT_METADATA_ATTRIBUTE_POSITION "position"
+#define GEDIT_METADATA_ATTRIBUTE_ENCODING "encoding"
+#define GEDIT_METADATA_ATTRIBUTE_LANGUAGE "language"
+#else
+#define GEDIT_METADATA_ATTRIBUTE_POSITION "metadata::gedit-position"
+#define GEDIT_METADATA_ATTRIBUTE_ENCODING "metadata::gedit-encoding"
+#define GEDIT_METADATA_ATTRIBUTE_LANGUAGE "metadata::gedit-language"
+#endif
+
glong _gedit_document_get_seconds_since_last_save_or_load (GeditDocument *doc);
/* Note: this is a sync stat: use only on local files */
diff --git a/gedit/gedit-document.h b/gedit/gedit-document.h
index c76faa1..07716d4 100644
--- a/gedit/gedit-document.h
+++ b/gedit/gedit-document.h
@@ -32,16 +32,6 @@ G_BEGIN_DECLS
G_DECLARE_DERIVABLE_TYPE (GeditDocument, gedit_document, GEDIT, DOCUMENT, GtkSourceBuffer)
-#ifdef G_OS_WIN32
-#define GEDIT_METADATA_ATTRIBUTE_POSITION "position"
-#define GEDIT_METADATA_ATTRIBUTE_ENCODING "encoding"
-#define GEDIT_METADATA_ATTRIBUTE_LANGUAGE "language"
-#else
-#define GEDIT_METADATA_ATTRIBUTE_POSITION "metadata::gedit-position"
-#define GEDIT_METADATA_ATTRIBUTE_ENCODING "metadata::gedit-encoding"
-#define GEDIT_METADATA_ATTRIBUTE_LANGUAGE "metadata::gedit-language"
-#endif
-
struct _GeditDocumentClass
{
GtkSourceBufferClass parent_class;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]