[gedit] Use tepl_buffer_is_untouched()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Use tepl_buffer_is_untouched()
- Date: Fri, 20 Nov 2020 06:17:23 +0000 (UTC)
commit 4d4d5d48c91a47e18ce48a94e0235ab1079bc2b1
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Nov 20 07:09:56 2020 +0100
Use tepl_buffer_is_untouched()
There is a difference of implementation between
gedit_document_is_untouched() and tepl_buffer_is_untouched(), but the
new behavior should be better.
gedit/gedit-app-osx.m | 2 +-
gedit/gedit-commands-file.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-app-osx.m b/gedit/gedit-app-osx.m
index 5df1b94da..9029b491b 100644
--- a/gedit/gedit-app-osx.m
+++ b/gedit/gedit-app-osx.m
@@ -286,7 +286,7 @@ gedit_app_osx_set_window_title_impl (GeditApp *app,
g_free (uri);
}
- ismodified = !gedit_document_is_untouched (document);
+ ismodified = !tepl_buffer_is_untouched (TEPL_BUFFER (document));
[native setDocumentEdited:ismodified];
}
else
diff --git a/gedit/gedit-commands-file.c b/gedit/gedit-commands-file.c
index 17cb07945..fb64f880d 100644
--- a/gedit/gedit-commands-file.c
+++ b/gedit/gedit-commands-file.c
@@ -194,7 +194,7 @@ load_file_list (GeditWindow *window,
doc = gedit_tab_get_document (tab);
- if (gedit_document_is_untouched (doc) &&
+ if (tepl_buffer_is_untouched (TEPL_BUFFER (doc)) &&
gedit_tab_get_state (tab) == GEDIT_TAB_STATE_NORMAL)
{
_gedit_tab_load (tab,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]