[gedit/wip/reusable-code] Move gedit-document error stuff to the libgedit



commit 4c543c8abb4be1410a3d9a48847ca0f8a533c0f6
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Sep 19 15:41:48 2013 +0200

    Move gedit-document error stuff to the libgedit
    
    The document saver is now independent of GeditDocument.

 gedit/gedit-document-saver.c |    1 -
 gedit/gedit-document.c       |   11 -----------
 gedit/gedit-document.h       |   14 --------------
 libgedit                     |    2 +-
 4 files changed, 1 insertions(+), 27 deletions(-)
---
diff --git a/gedit/gedit-document-saver.c b/gedit/gedit-document-saver.c
index 99e4c0c..0d85b13 100644
--- a/gedit/gedit-document-saver.c
+++ b/gedit/gedit-document-saver.c
@@ -32,7 +32,6 @@
 #include "gedit/gedit-utils.h"
 #include "gedit/libgedit-enum-types.h"
 #include "gedit-marshal.h"
-#include "gedit-document.h"
 
 #define WRITE_CHUNK_SIZE 8192
 
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 150f5dc..e8b3db9 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -178,17 +178,6 @@ static guint document_signals[LAST_SIGNAL] = { 0 };
 
 G_DEFINE_TYPE_WITH_PRIVATE (GeditDocument, gedit_document, GTK_SOURCE_TYPE_BUFFER)
 
-GQuark
-gedit_document_error_quark (void)
-{
-       static GQuark quark = 0;
-
-       if (G_UNLIKELY (quark == 0))
-               quark = g_quark_from_static_string ("gedit_io_load_error");
-
-       return quark;
-}
-
 static GHashTable *allocated_untitled_numbers = NULL;
 
 static gint
diff --git a/gedit/gedit-document.h b/gedit/gedit-document.h
index 7faf720..99d53eb 100644
--- a/gedit/gedit-document.h
+++ b/gedit/gedit-document.h
@@ -120,20 +120,6 @@ struct _GeditDocumentClass
                                         GtkTextIter      *end);
 };
 
-#define GEDIT_DOCUMENT_ERROR gedit_document_error_quark ()
-
-enum
-{
-       GEDIT_DOCUMENT_ERROR_EXTERNALLY_MODIFIED,
-       GEDIT_DOCUMENT_ERROR_CANT_CREATE_BACKUP,
-       GEDIT_DOCUMENT_ERROR_TOO_BIG,
-       GEDIT_DOCUMENT_ERROR_ENCODING_AUTO_DETECTION_FAILED,
-       GEDIT_DOCUMENT_ERROR_CONVERSION_FALLBACK,
-       GEDIT_DOCUMENT_NUM_ERRORS
-};
-
-GQuark          gedit_document_error_quark     (void);
-
 GType           gedit_document_get_type        (void) G_GNUC_CONST;
 
 GeditDocument   *gedit_document_new            (void);
diff --git a/libgedit b/libgedit
index 2861089..86ba439 160000
--- a/libgedit
+++ b/libgedit
@@ -1 +1 @@
-Subproject commit 2861089df288ed3b297695dd964f3459527066d9
+Subproject commit 86ba4399f48a48657bd0b02bd63b517a8860e16d



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