[gnome-software] trivial: Set the IdKind in the self test program



commit b65e0929a2166c26dd6fe4b275f61cd6a2e74280
Author: Richard Hughes <richard hughsie com>
Date:   Thu Oct 17 10:06:36 2013 +0100

    trivial: Set the IdKind in the self test program

 src/plugins/gs-plugin-dummy.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-dummy.c b/src/plugins/gs-plugin-dummy.c
index 248ce1e..97b569b 100644
--- a/src/plugins/gs-plugin-dummy.c
+++ b/src/plugins/gs-plugin-dummy.c
@@ -105,6 +105,7 @@ gs_plugin_add_updates (GsPlugin *plugin,
        gs_app_set_name (app, "Boxes");
        gs_app_set_summary (app, "Do not segfault when using newer versons of libvirt.");
        gs_app_set_kind (app, GS_APP_KIND_NORMAL);
+       gs_app_set_id_kind (app, GS_APP_ID_KIND_DESKTOP);
        gs_plugin_add_app (list, app);
 
        /* add an OS update */
@@ -112,6 +113,7 @@ gs_plugin_add_updates (GsPlugin *plugin,
        gs_app_set_name (app, "libvirt-glib-devel");
        gs_app_set_summary (app, "Fix several memory leaks.");
        gs_app_set_kind (app, GS_APP_KIND_PACKAGE);
+       gs_app_set_id_kind (app, GS_APP_ID_KIND_DESKTOP);
        gs_plugin_add_app (list, app);
 
        /* add a second OS update */
@@ -119,6 +121,7 @@ gs_plugin_add_updates (GsPlugin *plugin,
        gs_app_set_name (app, "gnome-boxes-libs");
        gs_app_set_summary (app, "Do not segfault when using newer versons of libvirt.");
        gs_app_set_kind (app, GS_APP_KIND_PACKAGE);
+       gs_app_set_id_kind (app, GS_APP_ID_KIND_DESKTOP);
        gs_plugin_add_app (list, app);
 
        return TRUE;
@@ -141,6 +144,7 @@ gs_plugin_add_installed (GsPlugin *plugin,
        gs_app_set_state (app, GS_APP_STATE_AVAILABLE);
        gs_app_set_kind (app, GS_APP_KIND_NORMAL);
        gs_plugin_add_app (list, app);
+       gs_app_set_id_kind (app, GS_APP_ID_KIND_DESKTOP);
 
        return TRUE;
 }
@@ -162,6 +166,7 @@ gs_plugin_add_popular (GsPlugin *plugin,
        gs_app_set_state (app, GS_APP_STATE_AVAILABLE);
        gs_app_set_kind (app, GS_APP_KIND_NORMAL);
        gs_plugin_add_app (list, app);
+       gs_app_set_id_kind (app, GS_APP_ID_KIND_DESKTOP);
 
        return TRUE;
 }
@@ -209,6 +214,7 @@ gs_plugin_add_category_apps (GsPlugin *plugin,
        gs_app_set_kind (app, GS_APP_KIND_NORMAL);
        gs_app_set_state (app, GS_APP_STATE_AVAILABLE);
        gs_app_set_pixbuf (app, gdk_pixbuf_new_from_file 
("/usr/share/icons/hicolor/48x48/apps/gnome-boxes.png", NULL));
+       gs_app_set_id_kind (app, GS_APP_ID_KIND_DESKTOP);
        gs_plugin_add_app (list, app);
        return TRUE;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]