[gedit] GeditDocument: ensure that a GFileInfo exists to store metadata



commit c4a3a9ee9afb0166c998fa1e2658905218d0a16d
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Jul 31 15:09:14 2015 +0200

    GeditDocument: ensure that a GFileInfo exists to store metadata
    
    For a new tab, with a NULL location, the metadata was not stored.

 gedit/gedit-document.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index d86b821..527495c 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -832,6 +832,7 @@ gedit_document_init (GeditDocument *doc)
        g_get_current_time (&priv->time_of_last_save_or_load);
 
        priv->file = gtk_source_file_new ();
+       priv->metadata_info = g_file_info_new ();
 
        g_signal_connect_object (priv->file,
                                 "notify::location",



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