[gnome-builder/wip/libide: 86/237] documents: set back/forward list on newly created views
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide: 86/237] documents: set back/forward list on newly created views
- Date: Tue, 17 Feb 2015 21:36:39 +0000 (UTC)
commit 6dbda43835306538e73c28bc50f754dd9a0ef6e6
Author: Christian Hergert <christian hergert me>
Date: Wed Feb 11 11:12:05 2015 -0800
documents: set back/forward list on newly created views
src/documents/gb-document-stack.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/documents/gb-document-stack.c b/src/documents/gb-document-stack.c
index e7f5f01..cc77e14 100644
--- a/src/documents/gb-document-stack.c
+++ b/src/documents/gb-document-stack.c
@@ -478,12 +478,15 @@ gb_document_stack_document_selected (GbDocumentStack *stack,
GbDocument *document,
GbDocumentMenuButton *button)
{
+ GbDocumentStackPrivate *priv;
GtkWidget *view;
g_return_if_fail (GB_IS_DOCUMENT_STACK (stack));
g_return_if_fail (GB_IS_DOCUMENT (document));
g_return_if_fail (GB_IS_DOCUMENT_MENU_BUTTON (button));
+ priv = stack->priv;
+
view = gb_document_stack_find_with_document (stack, document);
if (!view)
@@ -498,6 +501,9 @@ gb_document_stack_document_selected (GbDocumentStack *stack,
return;
}
+ gb_document_view_set_back_forward_list (GB_DOCUMENT_VIEW (view),
+ priv->back_forward_list);
+
gtk_container_add (GTK_CONTAINER (stack->priv->stack), view);
controls = gb_document_view_get_controls (GB_DOCUMENT_VIEW (view));
if (controls)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]