[gnome-builder/gnome-builder-3-26] sourceview:sourceview: cleanup ref_sink usage



commit dafdb0fff156621fac4620fa359174129eef0477
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 18 16:05:46 2018 -0800

    sourceview:sourceview: cleanup ref_sink usage
    
    No need to imply the sink to the transfer of the call, so hoist this out.

 libide/sourceview/ide-source-view.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libide/sourceview/ide-source-view.c b/libide/sourceview/ide-source-view.c
index 02b2daa7f..d3b6a6683 100644
--- a/libide/sourceview/ide-source-view.c
+++ b/libide/sourceview/ide-source-view.c
@@ -4523,7 +4523,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 (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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]