[gedit-plugins] Ref the window.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Ref the window.
- Date: Thu, 29 Jul 2010 20:38:37 +0000 (UTC)
commit d0475cf2dc59d6ad6f35760cd3a6de10cf3f0871
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu Jul 29 22:38:08 2010 +0200
Ref the window.
We are disposing the window, so when we get it in the view activatable
we must ref it.
.../wordcompletion/gedit-word-completion-plugin.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/wordcompletion/gedit-word-completion-plugin.c b/plugins/wordcompletion/gedit-word-completion-plugin.c
index 80f5e8c..bb29a65 100644
--- a/plugins/wordcompletion/gedit-word-completion-plugin.c
+++ b/plugins/wordcompletion/gedit-word-completion-plugin.c
@@ -176,6 +176,9 @@ gedit_word_completion_view_activate (GeditViewActivatable *activatable)
priv->window = GEDIT_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (priv->view)));
+ /* We are disposing the window */
+ g_object_ref (priv->window);
+
completion = gtk_source_view_get_completion (GTK_SOURCE_VIEW (priv->view));
buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW (priv->view));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]