[gnome-builder] grid: use assigned document manager, not default
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] grid: use assigned document manager, not default
- Date: Sun, 14 Dec 2014 11:35:09 +0000 (UTC)
commit 7a17b9d4e939751d64ce7a304e28a71837c8f253
Author: Christian Hergert <christian hergert me>
Date: Sun Dec 14 03:32:08 2014 -0800
grid: use assigned document manager, not default
src/documents/gb-document-grid.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/documents/gb-document-grid.c b/src/documents/gb-document-grid.c
index 49616a4..4f5edd0 100644
--- a/src/documents/gb-document-grid.c
+++ b/src/documents/gb-document-grid.c
@@ -230,7 +230,6 @@ static void
gb_document_grid_view_closed (GbDocumentGrid *grid,
GbDocumentView *view)
{
- GbDocumentManager *document_manager;
GbDocument *document;
GList *stacks;
GList *iter;
@@ -261,8 +260,7 @@ gb_document_grid_view_closed (GbDocumentGrid *grid,
goto cleanup;
}
- document_manager = gb_document_manager_get_default ();
- gb_document_manager_remove (document_manager, document);
+ gb_document_manager_remove (grid->priv->document_manager, document);
cleanup:
g_list_free (stacks);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]