[gedit] tab: one more small cleanup in document_loaded()



commit 3e77253c90324d6edf5f5e77991b2e482dacb83b
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Jun 15 22:57:05 2014 +0200

    tab: one more small cleanup in document_loaded()
    
    Have this commit separated from the other cleanups, for git bisect. But
    normally gedit_tab_get_document() returns the same document.

 gedit/gedit-tab.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index 0db6b4f..8df7983 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -1123,11 +1123,8 @@ document_loaded (GeditDocument *document,
 
        if (location == NULL)
        {
-               GeditDocument *d;
-
                /* FIXME: hackish */
-               d = gedit_tab_get_document (tab);
-               gtk_text_buffer_set_modified (GTK_TEXT_BUFFER (d), TRUE);
+               gtk_text_buffer_set_modified (GTK_TEXT_BUFFER (document), TRUE);
        }
 
        tab->priv->ask_if_externally_modified = TRUE;


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