Commit 0634bc45 authored by Christian Hergert's avatar Christian Hergert
Browse files

sourceview: cleanup ref_sink usage

No need to imply the sink to the transfer of the call, so hoist this out.
parent f450495f
......@@ -3997,9 +3997,8 @@ ide_source_view_constructed (GObject *object)
priv->omni_renderer = g_object_new (IDE_TYPE_OMNI_GUTTER_RENDERER,
"visible", TRUE,
NULL);
gtk_source_gutter_insert (gutter,
g_object_ref_sink (GTK_SOURCE_GUTTER_RENDERER (priv->omni_renderer)),
0);
g_object_ref_sink (priv->omni_renderer);
gtk_source_gutter_insert (gutter, GTK_SOURCE_GUTTER_RENDERER (priv->omni_renderer), 0);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment