[gnome-software] trivial: Allow calling gs_feature_tile_new() with no app set
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Allow calling gs_feature_tile_new() with no app set
- Date: Thu, 4 May 2017 15:08:27 +0000 (UTC)
commit 9f1ae76871c4db334b17f8f4290ea9f505e75021
Author: Richard Hughes <richard hughsie com>
Date: Thu May 4 16:02:30 2017 +0100
trivial: Allow calling gs_feature_tile_new() with no app set
src/gs-feature-tile.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-feature-tile.c b/src/gs-feature-tile.c
index 1f8e4fa..f5fcadd 100644
--- a/src/gs-feature-tile.c
+++ b/src/gs-feature-tile.c
@@ -158,7 +158,8 @@ gs_feature_tile_new (GsApp *app)
GsFeatureTile *tile;
tile = g_object_new (GS_TYPE_FEATURE_TILE, NULL);
- gs_app_tile_set_app (GS_APP_TILE (tile), app);
+ if (app != NULL)
+ gs_app_tile_set_app (GS_APP_TILE (tile), app);
return GTK_WIDGET (tile);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]