[gnome-software] Add all the known xdg-apps to the popular list
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Add all the known xdg-apps to the popular list
- Date: Tue, 2 Feb 2016 09:09:29 +0000 (UTC)
commit c228a71160539859bf908599fa294b83c2856350
Author: Richard Hughes <richard hughsie com>
Date: Tue Feb 2 09:08:33 2016 +0000
Add all the known xdg-apps to the popular list
With so little content, we have to show *something*...
src/plugins/gs-plugin-xdg-app.c | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-xdg-app.c b/src/plugins/gs-plugin-xdg-app.c
index b226493..55bf23c 100644
--- a/src/plugins/gs-plugin-xdg-app.c
+++ b/src/plugins/gs-plugin-xdg-app.c
@@ -88,6 +88,38 @@ gs_plugin_destroy (GsPlugin *plugin)
}
/**
+ * gs_plugin_add_popular:
+ */
+gboolean
+gs_plugin_add_popular (GsPlugin *plugin,
+ GList **list,
+ GCancellable *cancellable,
+ GError **error)
+{
+ guint i;
+ const gchar *apps[] = {
+ "org.gnome.Builder.desktop",
+ "org.gnome.Calculator.desktop",
+ "org.gnome.clocks.desktop",
+ "org.gnome.Dictionary.desktop",
+ "org.gnome.Documents.desktop",
+ "org.gnome.Evince.desktop",
+ "org.gnome.gedit.desktop",
+ "org.gnome.Maps.desktop",
+ "org.gnome.Software.desktop",
+ "org.gnome.Weather.desktop",
+ NULL };
+
+ /* just add all */
+ for (i = 0; apps[i] != NULL; i++) {
+ g_autoptr(GsApp) app = NULL;
+ app = gs_app_new (apps[i]);
+ gs_plugin_add_app (list, app);
+ }
+ return TRUE;
+}
+
+/**
* gs_plugin_xdg_app_changed_cb:
*/
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]