[gnome-photos] main-toolbar: Use g_object_ref_sink with GInitiallyUnowned
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] main-toolbar: Use g_object_ref_sink with GInitiallyUnowned
- Date: Mon, 28 Aug 2017 18:41:09 +0000 (UTC)
commit 134bbff30bec3abf2d02558bddb49f835d359014
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]