[gnome-software] Make the size of featured categories accurate
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Make the size of featured categories accurate
- Date: Sat, 21 Sep 2013 04:32:56 +0000 (UTC)
commit 62a0991f351cdb29abc3934c9ec122e7c6d03a75
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Sep 21 00:27:02 2013 -0400
Make the size of featured categories accurate
We want to use the size when prepopulating grids,
so don't lie about it.
src/plugins/gs-plugin-hardcoded-popular.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/gs-plugin-hardcoded-popular.c b/src/plugins/gs-plugin-hardcoded-popular.c
index c4973ea..6ae5178 100644
--- a/src/plugins/gs-plugin-hardcoded-popular.c
+++ b/src/plugins/gs-plugin-hardcoded-popular.c
@@ -224,17 +224,13 @@ gs_plugin_add_categories (GsPlugin *plugin,
id = gs_category_get_id (parent);
if (g_strcmp0 (last_id, id) == 0) {
cat = gs_category_new (parent, "featured", _("Featured"));
- /* always show these, even if small */
- gs_category_increment_size (cat);
- gs_category_increment_size (cat);
- gs_category_increment_size (cat);
- gs_category_increment_size (cat);
-
gs_category_add_subcategory (parent, cat);
break;
}
}
}
+ if (cat)
+ gs_category_increment_size (cat);
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]