[gedit] tab: fix a small todo
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] tab: fix a small todo
- Date: Mon, 28 Jul 2014 19:14:39 +0000 (UTC)
commit cd235ad818c766879e9c6494cd38e006777bb9f7
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Jul 28 17:45:46 2014 +0200
tab: fix a small todo
It is now done in gtksourceview.
gedit/gedit-tab.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index f0a665d..0805baa 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -2432,7 +2432,6 @@ _gedit_tab_save_as (GeditTab *tab,
GeditDocument *doc;
GtkSourceFile *file;
GtkSourceFileSaverFlags save_flags;
- GFile *prev_location;
g_return_if_fail (GEDIT_IS_TAB (tab));
g_return_if_fail (tab->priv->state == GEDIT_TAB_STATE_NORMAL ||
@@ -2468,16 +2467,6 @@ _gedit_tab_save_as (GeditTab *tab,
file = gedit_document_get_file (doc);
- prev_location = gtk_source_file_get_location (file);
-
- if (prev_location == NULL ||
- !g_file_equal (prev_location, location))
- {
- /* Ignore modification time for a save to another location. */
- /* TODO do that in GtkSourceFileSaver. */
- save_flags |= GTK_SOURCE_FILE_SAVER_FLAGS_IGNORE_MODIFICATION_TIME;
- }
-
tab->priv->saver = gtk_source_file_saver_new_with_target (GTK_SOURCE_BUFFER (doc),
file,
location);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]