[evolution/wip/webkit-composer: 194/372] EEditor: Sink the floating EEditorWidget reference.
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 194/372] EEditor: Sink the floating EEditorWidget reference.
- Date: Thu, 6 Feb 2014 11:39:49 +0000 (UTC)
commit b7f3728509400873eac906ddb6e0e63d97bd0032
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Jan 19 08:46:21 2013 -0500
EEditor: Sink the floating EEditorWidget reference.
EEditor unreferences the EEditorWidget in dispose() so it needs to sink
the floating EEditorWidget reference upon creation. The reference cycle
fixed in the previous commit had been keeping EEditorWidget alive during
widget destruction.
e-util/e-editor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-editor.c b/e-util/e-editor.c
index 6493c2f..716dcfe 100644
--- a/e-util/e-editor.c
+++ b/e-util/e-editor.c
@@ -792,7 +792,7 @@ e_editor_init (EEditor *editor)
priv->language_actions = gtk_action_group_new ("language");
priv->spell_check_actions = gtk_action_group_new ("spell-check");
priv->suggestion_actions = gtk_action_group_new ("suggestion");
- priv->editor_widget = e_editor_widget_new ();
+ priv->editor_widget = g_object_ref_sink (e_editor_widget_new ());
priv->selection = e_editor_widget_get_selection (priv->editor_widget);
filename = editor_find_ui_file ("e-editor-manager.ui");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]