[gedit] tab: remove "hackish" fixme comment



commit bab09f4aff1bd592a12e735729fdc3a0ddff37e0
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Jun 20 13:13:38 2015 +0200

    tab: remove "hackish" fixme comment
    
    With the file loading code in GtkSourceView, the code was no longer
    hackish. It is the right thing to do. See this commit in GtkSourceView:
    https://git.gnome.org/browse/gtksourceview/commit/?id=9332104316383a608c9260aee172758df270eac6

 gedit/gedit-tab.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index fa2ab44..ce993f0 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -1842,9 +1842,11 @@ successful_load (GeditTab *tab)
                set_info_bar (tab, info_bar, GTK_RESPONSE_CANCEL);
        }
 
+       /* When loading from stdin, the contents may not be saved, so set the
+        * buffer as modified.
+        */
        if (location == NULL)
        {
-               /* FIXME: hackish */
                gtk_text_buffer_set_modified (GTK_TEXT_BUFFER (doc), TRUE);
        }
 


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