Commit 134bbff3 authored by Debarshi Ray's avatar Debarshi Ray
Browse files

main-toolbar: Use g_object_ref_sink with GInitiallyUnowned

parent f8d6c999
......@@ -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);
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