[gnome-builder] view-stack: be assertive about destroying closed views
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] view-stack: be assertive about destroying closed views
- Date: Thu, 17 Sep 2015 07:24:12 +0000 (UTC)
commit 0dab76e5cee57dc2e50f3db971aa80a056153bed
Author: Christian Hergert <christian hergert me>
Date: Thu Sep 17 00:21:51 2015 -0700
view-stack: be assertive about destroying closed views
Lets be a bit aggressive about forcing views to destroy themselves
so that we can break reference links between plugins and views.
src/views/gb-view-stack-actions.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/views/gb-view-stack-actions.c b/src/views/gb-view-stack-actions.c
index c2d5781..e2f6649 100644
--- a/src/views/gb-view-stack-actions.c
+++ b/src/views/gb-view-stack-actions.c
@@ -38,6 +38,12 @@ gb_view_stack_actions_close_cb (GObject *object,
g_assert (GB_IS_VIEW (view));
gb_view_stack_remove (self, view);
+
+ /*
+ * Force the view to destroy. This helps situation where plugins are holding
+ * onto a reference that can't easily be broken automatically.
+ */
+ gtk_widget_destroy (GTK_WIDGET (view));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]