[gnome-builder/document-manager] GbEditorDocument: reset progress before updating progress in callback
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/document-manager] GbEditorDocument: reset progress before updating progress in callback
- Date: Wed, 10 Dec 2014 09:42:10 +0000 (UTC)
commit d131dcbdd8af4f45b5a81c3c4864e3ecdbb6ddb6
Author: Christian Hergert <christian hergert me>
Date: Wed Dec 10 00:25:24 2014 -0800
GbEditorDocument: reset progress before updating progress in callback
src/editor/gb-editor-document.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-document.c b/src/editor/gb-editor-document.c
index bb08bdb..beab52a 100644
--- a/src/editor/gb-editor-document.c
+++ b/src/editor/gb-editor-document.c
@@ -642,6 +642,8 @@ gb_editor_document_save_async (GbEditorDocument *document,
gb_editor_file_mark_set_column (mark, column);
}
+ gb_editor_document_set_progress (document, 0.0);
+
gtk_source_file_saver_save_async (saver,
G_PRIORITY_DEFAULT,
cancellable,
@@ -771,6 +773,8 @@ gb_editor_document_load_async (GbEditorDocument *document,
loader = gtk_source_file_loader_new (GTK_SOURCE_BUFFER (document),
document->priv->file);
+ gb_editor_document_set_progress (document, 0.0);
+
gtk_source_file_loader_load_async (loader,
G_PRIORITY_DEFAULT,
cancellable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]