[gtksourceview/gtksourcecompletion] Make sure to ref_sink the completion since it now is a GInitiallyUnowned
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtksourceview/gtksourcecompletion] Make sure to ref_sink the completion since it now is a GInitiallyUnowned
- Date: Sat, 19 Sep 2009 22:14:14 +0000 (UTC)
commit 1a8185b296aec4d61378f8f68bccb006b7ff6a27
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Sun Sep 20 00:13:54 2009 +0200
Make sure to ref_sink the completion since it now is a GInitiallyUnowned
Actually, it is a GtkObject to use GtkBindingSet, which in turn is a
GInitiallyUnowned.
gtksourceview/gtksourceview.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index dc2fe99..51a96ce 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -4109,6 +4109,7 @@ gtk_source_view_get_completion (GtkSourceView *view)
if (view->priv->completion == NULL)
{
view->priv->completion = gtk_source_completion_new (view);
+ g_object_ref_sink (view->priv->completion);
}
return view->priv->completion;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]