[gedit/wip/loader-saver: 8/16] GeditDocument: add a TODO comment



commit c7581802c6c2eefd3892d6650a02daf9ddb79caa
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Jun 26 23:12:56 2014 +0200

    GeditDocument: add a TODO comment

 gedit/gedit-document.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index fae3e77..5db29c9 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -70,10 +70,6 @@ struct _GeditDocumentPrivate
         */
        GtkSourceSearchContext *search_context;
 
-       /* Temp data while loading */
-       gboolean             create; /* Create file if uri points
-                                     * to a non existing file */
-
        /* Mount operation factory */
        GeditMountOperationFactory  mount_operation_factory;
        gpointer                    mount_operation_userdata;
@@ -88,6 +84,12 @@ struct _GeditDocumentPrivate
         * actions.
         */
        guint empty_search : 1;
+
+       /* TODO either set priv->create at the right places, or remove it if it
+        * is no longer useful or can be done outside GeditDocument.
+        */
+       /* Create file if location points to a non existing file. */
+       guint create : 1;
 };
 
 enum


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