[gnome-builder] buffer: add public function to sync buffer to unsaved files
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] buffer: add public function to sync buffer to unsaved files
- Date: Sat, 26 Sep 2015 05:35:20 +0000 (UTC)
commit c26430da516ac5da00bb38bec59133424bce66e9
Author: Christian Hergert <christian hergert me>
Date: Thu Sep 24 02:47:55 2015 -0700
buffer: add public function to sync buffer to unsaved files
This might be needed by diagnostics/completion/etc at various times.
Be very judicious about usage, because it can be slow.
libide/ide-buffer.c | 2 +-
libide/ide-buffer.h | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-buffer.c b/libide/ide-buffer.c
index ff08d95..e3ddc35 100644
--- a/libide/ide-buffer.c
+++ b/libide/ide-buffer.c
@@ -215,7 +215,7 @@ ide_buffer_set_context (IdeBuffer *self,
self);
}
-static void
+void
ide_buffer_sync_to_unsaved_files (IdeBuffer *self)
{
GBytes *content;
diff --git a/libide/ide-buffer.h b/libide/ide-buffer.h
index 2eada6a..18de2f7 100644
--- a/libide/ide-buffer.h
+++ b/libide/ide-buffer.h
@@ -91,6 +91,7 @@ void ide_buffer_hold (IdeBuffer
void ide_buffer_release (IdeBuffer *self);
gchar *ide_buffer_get_word_at_iter (IdeBuffer *self,
const GtkTextIter *iter);
+void ide_buffer_sync_to_unsaved_files (IdeBuffer *self);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]