[gnome-builder] sourceview: cleanup ref_sink usage



commit 0634bc45ca6d98ce31fd89a21a9b74a9f3cc9714
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 18 16:05:09 2018 -0800

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

 src/libide/sourceview/ide-source-view.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/sourceview/ide-source-view.c b/src/libide/sourceview/ide-source-view.c
index b7bcd3866..0e9cacd13 100644
--- a/src/libide/sourceview/ide-source-view.c
+++ b/src/libide/sourceview/ide-source-view.c
@@ -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


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