[gnome-builder] libide/code: clear modified bit on load
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/code: clear modified bit on load
- Date: Sun, 4 Sep 2022 16:23:42 +0000 (UTC)
commit 651e856156cafa7f5647b81ca1d8ac29603d15aa
Author: Christian Hergert <chergert redhat com>
Date: Sun Sep 4 09:23:38 2022 -0700
libide/code: clear modified bit on load
We need to reset the modified bit as well as changed-on-volume or we wont
see the right state in the tab widget.
src/libide/code/ide-buffer.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/libide/code/ide-buffer.c b/src/libide/code/ide-buffer.c
index d864943a8..29b8e3342 100644
--- a/src/libide/code/ide-buffer.c
+++ b/src/libide/code/ide-buffer.c
@@ -1438,6 +1438,7 @@ ide_buffer_load_file_cb (GObject *object,
gtk_text_buffer_select_range (GTK_TEXT_BUFFER (self), &iter, &iter);
/* Assume we are at newest state at end of file-load operation */
+ gtk_text_buffer_set_modified (GTK_TEXT_BUFFER (self), FALSE);
_ide_buffer_set_changed_on_volume (self, FALSE);
ide_highlight_engine_unpause (self->highlight_engine);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]