[gedit] Revert "tab: remove hack when loading from a stream"



commit 3cf6ceba10c2540d91b3f21f826156a58ac4cf1e
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Jun 20 13:07:18 2015 +0200

    Revert "tab: remove hack when loading from a stream"
    
    This reverts commit 4c03501c0460dd432f8b82b79e86af1c65d951b3.
    
    See the following commits in GtkSourceView:
    https://git.gnome.org/browse/gtksourceview/commit/?id=9876f295a7fe48c5263b898a1421a1f38880bfc8
    https://git.gnome.org/browse/gtksourceview/commit/?id=9332104316383a608c9260aee172758df270eac6

 gedit/gedit-tab.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index 522c204..fa2ab44 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -1842,6 +1842,12 @@ successful_load (GeditTab *tab)
                set_info_bar (tab, info_bar, GTK_RESPONSE_CANCEL);
        }
 
+       if (location == NULL)
+       {
+               /* FIXME: hackish */
+               gtk_text_buffer_set_modified (GTK_TEXT_BUFFER (doc), TRUE);
+       }
+
        tab->ask_if_externally_modified = TRUE;
 
        g_signal_emit_by_name (doc, "loaded");


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