[gnome-builder/wip/symbol-tree] bufmgr: set buffer as unmodified after loading
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/symbol-tree] bufmgr: set buffer as unmodified after loading
- Date: Thu, 18 Jun 2015 20:45:26 +0000 (UTC)
commit 29398af87a8668eb32b1dd183c50f8b8c52b21b8
Author: Christian Hergert <christian hergert me>
Date: Thu Jun 18 13:45:21 2015 -0700
bufmgr: set buffer as unmodified after loading
Recent changes in GtkSourceView no longer set the modified state of the
buffer when loading from a stream. Since that is what we use, we need to
manually flip the modified bit after load.
libide/ide-buffer-manager.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-buffer-manager.c b/libide/ide-buffer-manager.c
index 5f2f595..a66385e 100644
--- a/libide/ide-buffer-manager.c
+++ b/libide/ide-buffer-manager.c
@@ -463,6 +463,8 @@ ide_buffer_manager_load_file__load_cb (GObject *object,
g_clear_error (&error);
}
+ gtk_text_buffer_set_modified (GTK_TEXT_BUFFER (state->buffer), FALSE);
+
for (i = 0; i < self->buffers->len; i++)
{
IdeBuffer *cur_buffer;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]