[gnome-photos/wip/rishi/collection: 5/6] main-toolbar: Use g_object_ref_sink with GInitiallyUnowned



commit a83928d8614e0aa09ecc2880c696ee4e305b42ee
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Aug 18 16:51:50 2017 +0200

    main-toolbar: Use g_object_ref_sink with GInitiallyUnowned

 src/photos-main-toolbar.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index ae4a687..b868c97 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -674,9 +674,7 @@ photos_main_toolbar_constructed (GObject *object)
 
   G_OBJECT_CLASS (photos_main_toolbar_parent_class)->constructed (object);
 
-  self->searchbar = photos_overview_searchbar_new ();
-  g_object_ref (self->searchbar);
-
+  self->searchbar = g_object_ref_sink (photos_overview_searchbar_new ());
   photos_main_toolbar_reset_toolbar_mode (self);
 }
 


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