[gnome-software] overview: Make sure to not filter out manually set featured tile
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] overview: Make sure to not filter out manually set featured tile
- Date: Mon, 15 Jun 2015 08:56:52 +0000 (UTC)
commit c74b524eb1b3b58a28a2718fc12d26af2bf97422
Author: Kalev Lember <kalevlember gmail com>
Date: Mon Jun 15 10:50:09 2015 +0200
overview: Make sure to not filter out manually set featured tile
Normally we try and avoid showing featured tiles that are from the same
category that is currently featured down below. Howere, when the
featured tile is overridden on the command line with
GNOME_SOFTWARE_FEATURED=inkscape.desktop gnome-software
... make sure it gets shown regardless of the category of the day.
src/gs-shell-overview.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index 558026a..2e1088a 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -252,9 +252,11 @@ gs_shell_overview_get_featured_cb (GObject *source_object,
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
goto out;
- /* Don't show apps from the category that's currently featured as the category of the day */
- gs_plugin_list_filter (&list, filter_category, priv->category_of_day);
- gs_plugin_list_randomize (&list);
+ if (g_getenv ("GNOME_SOFTWARE_FEATURED") == NULL) {
+ /* Don't show apps from the category that's currently featured as the category of the day */
+ gs_plugin_list_filter (&list, filter_category, priv->category_of_day);
+ gs_plugin_list_randomize (&list);
+ }
gs_container_remove_all (GTK_CONTAINER (priv->bin_featured));
gtk_widget_set_visible (priv->featured_heading, list != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]