[gnome-software: 14/24] gs-category-page: Use g_set_object()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 14/24] gs-category-page: Use g_set_object()
- Date: Mon, 3 May 2021 15:24:13 +0000 (UTC)
commit 71af90087ee9b69bdb76bc33596ef75116bc4c38
Author: Philip Withnall <pwithnall endlessos org>
Date: Thu Apr 22 14:50:12 2021 +0100
gs-category-page: Use g_set_object()
A slight simplification. This introduces no functional changes.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
src/gs-category-page.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/gs-category-page.c b/src/gs-category-page.c
index e2145127e..8abfa93db 100644
--- a/src/gs-category-page.c
+++ b/src/gs-category-page.c
@@ -252,8 +252,7 @@ gs_category_page_set_category (GsCategoryPage *self, GsCategory *category)
return;
/* save this */
- g_clear_object (&self->category);
- self->category = g_object_ref (category);
+ g_set_object (&self->category, category);
/* find apps in this group */
featured_subcat = gs_category_find_child (category, "featured");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]