[gnome-software] Add a flags argument to the GsPluginLoader functions for future use



commit 27a19e9930d984706f78fc08715ca4e20f70768d
Author: Richard Hughes <richard hughsie com>
Date:   Thu Sep 12 10:19:33 2013 +0100

    Add a flags argument to the GsPluginLoader functions for future use

 src/gs-plugin-loader-sync.c |   10 +++++++++
 src/gs-plugin-loader-sync.h |    5 ++++
 src/gs-plugin-loader.c      |   45 ++++++++++++++++++++++++++----------------
 src/gs-plugin-loader.h      |   16 +++++++++++++++
 src/gs-self-test.c          |   23 +++++++++++++++------
 src/gs-shell-category.c     |    1 +
 src/gs-shell-details.c      |    2 +
 src/gs-shell-installed.c    |    2 +
 src/gs-shell-overview.c     |    3 ++
 src/gs-shell-search.c       |    3 ++
 src/gs-shell-updates.c      |    1 +
 11 files changed, 87 insertions(+), 24 deletions(-)
---
diff --git a/src/gs-plugin-loader-sync.c b/src/gs-plugin-loader-sync.c
index d135da1..87d5494 100644
--- a/src/gs-plugin-loader-sync.c
+++ b/src/gs-plugin-loader-sync.c
@@ -47,6 +47,7 @@ gs_plugin_loader_get_installed_finish_sync (GsPluginLoader *plugin_loader,
  **/
 GList *
 gs_plugin_loader_get_installed (GsPluginLoader *plugin_loader,
+                               GsPluginLoaderFlags flags,
                                GCancellable *cancellable,
                                GError **error)
 {
@@ -61,6 +62,7 @@ gs_plugin_loader_get_installed (GsPluginLoader *plugin_loader,
 
        /* run async method */
        gs_plugin_loader_get_installed_async (plugin_loader,
+                                             flags,
                                              cancellable,
                                              (GAsyncReadyCallback) 
gs_plugin_loader_get_installed_finish_sync,
                                              &helper);
@@ -90,6 +92,7 @@ gs_plugin_loader_get_updates_finish_sync (GsPluginLoader *plugin_loader,
  **/
 GList *
 gs_plugin_loader_get_updates (GsPluginLoader *plugin_loader,
+                             GsPluginLoaderFlags flags,
                              GCancellable *cancellable,
                              GError **error)
 {
@@ -104,6 +107,7 @@ gs_plugin_loader_get_updates (GsPluginLoader *plugin_loader,
 
        /* run async method */
        gs_plugin_loader_get_updates_async (plugin_loader,
+                                           flags,
                                            cancellable,
                                            (GAsyncReadyCallback) gs_plugin_loader_get_updates_finish_sync,
                                            &helper);
@@ -133,6 +137,7 @@ gs_plugin_loader_get_popular_finish_sync (GsPluginLoader *plugin_loader,
  **/
 GList *
 gs_plugin_loader_get_popular (GsPluginLoader *plugin_loader,
+                             GsPluginLoaderFlags flags,
                              GCancellable *cancellable,
                              GError **error)
 {
@@ -147,6 +152,7 @@ gs_plugin_loader_get_popular (GsPluginLoader *plugin_loader,
 
        /* run async method */
        gs_plugin_loader_get_popular_async (plugin_loader,
+                                           flags,
                                            cancellable,
                                            (GAsyncReadyCallback) gs_plugin_loader_get_popular_finish_sync,
                                            &helper);
@@ -176,6 +182,7 @@ gs_plugin_loader_get_categories_finish_sync (GsPluginLoader *plugin_loader,
  **/
 GList *
 gs_plugin_loader_get_categories (GsPluginLoader *plugin_loader,
+                                GsPluginLoaderFlags flags,
                                 GCancellable *cancellable,
                                 GError **error)
 {
@@ -190,6 +197,7 @@ gs_plugin_loader_get_categories (GsPluginLoader *plugin_loader,
 
        /* run async method */
        gs_plugin_loader_get_categories_async (plugin_loader,
+                                              flags,
                                               cancellable,
                                               (GAsyncReadyCallback) 
gs_plugin_loader_get_categories_finish_sync,
                                               &helper);
@@ -220,6 +228,7 @@ gs_plugin_loader_get_category_apps_finish_sync (GsPluginLoader *plugin_loader,
 GList *
 gs_plugin_loader_get_category_apps (GsPluginLoader *plugin_loader,
                                    GsCategory *category,
+                                   GsPluginLoaderFlags flags,
                                    GCancellable *cancellable,
                                    GError **error)
 {
@@ -235,6 +244,7 @@ gs_plugin_loader_get_category_apps (GsPluginLoader *plugin_loader,
        /* run async method */
        gs_plugin_loader_get_category_apps_async (plugin_loader,
                                                  category,
+                                                 flags,
                                                  cancellable,
                                                  (GAsyncReadyCallback) 
gs_plugin_loader_get_category_apps_finish_sync,
                                                  &helper);
diff --git a/src/gs-plugin-loader-sync.h b/src/gs-plugin-loader-sync.h
index 5d5d9cd..3bb6648 100644
--- a/src/gs-plugin-loader-sync.h
+++ b/src/gs-plugin-loader-sync.h
@@ -29,19 +29,24 @@
 G_BEGIN_DECLS
 
 GList          *gs_plugin_loader_get_installed         (GsPluginLoader *plugin_loader,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GError         **error);
 GList          *gs_plugin_loader_get_updates           (GsPluginLoader *plugin_loader,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GError         **error);
 GList          *gs_plugin_loader_get_popular           (GsPluginLoader *plugin_loader,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GError         **error);
 GList          *gs_plugin_loader_get_categories        (GsPluginLoader *plugin_loader,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GError         **error);
 GList          *gs_plugin_loader_get_category_apps     (GsPluginLoader *plugin_loader,
                                                         GsCategory     *category,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GError         **error);
 
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 4264dd1..d8b9637 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -539,9 +539,10 @@ out:
  **/
 void
 gs_plugin_loader_get_updates_async (GsPluginLoader *plugin_loader,
-                                     GCancellable *cancellable,
-                                     GAsyncReadyCallback callback,
-                                     gpointer user_data)
+                                   GsPluginLoaderFlags flags,
+                                   GCancellable *cancellable,
+                                   GAsyncReadyCallback callback,
+                                   gpointer user_data)
 {
        GCancellable *tmp;
        GsPluginLoaderAsyncState *state;
@@ -657,6 +658,7 @@ out:
  **/
 void
 gs_plugin_loader_get_installed_async (GsPluginLoader *plugin_loader,
+                                     GsPluginLoaderFlags flags,
                                      GCancellable *cancellable,
                                      GAsyncReadyCallback callback,
                                      gpointer user_data)
@@ -757,9 +759,10 @@ out:
  **/
 void
 gs_plugin_loader_get_popular_async (GsPluginLoader *plugin_loader,
-                                     GCancellable *cancellable,
-                                     GAsyncReadyCallback callback,
-                                     gpointer user_data)
+                                   GsPluginLoaderFlags flags,
+                                   GCancellable *cancellable,
+                                   GAsyncReadyCallback callback,
+                                   gpointer user_data)
 {
        GCancellable *tmp;
        GsPluginLoaderAsyncState *state;
@@ -875,9 +878,10 @@ out:
  **/
 void
 gs_plugin_loader_get_featured_async (GsPluginLoader *plugin_loader,
-                                     GCancellable *cancellable,
-                                     GAsyncReadyCallback callback,
-                                     gpointer user_data)
+                                    GsPluginLoaderFlags flags,
+                                    GCancellable *cancellable,
+                                    GAsyncReadyCallback callback,
+                                    gpointer user_data)
 {
        GCancellable *tmp;
        GsPluginLoaderAsyncState *state;
@@ -910,8 +914,8 @@ gs_plugin_loader_get_featured_async (GsPluginLoader *plugin_loader,
  **/
 GList *
 gs_plugin_loader_get_featured_finish (GsPluginLoader *plugin_loader,
-                                    GAsyncResult *res,
-                                    GError **error)
+                                     GAsyncResult *res,
+                                     GError **error)
 {
        GSimpleAsyncResult *simple;
 
@@ -1037,6 +1041,7 @@ out:
 void
 gs_plugin_loader_search_async (GsPluginLoader *plugin_loader,
                               const gchar *value,
+                              GsPluginLoaderFlags flags,
                               GCancellable *cancellable,
                               GAsyncReadyCallback callback,
                               gpointer user_data)
@@ -1184,6 +1189,7 @@ out:
  **/
 void
 gs_plugin_loader_get_categories_async (GsPluginLoader *plugin_loader,
+                                      GsPluginLoaderFlags flags,
                                       GCancellable *cancellable,
                                       GAsyncReadyCallback callback,
                                       gpointer user_data)
@@ -1349,10 +1355,11 @@ out:
  **/
 void
 gs_plugin_loader_get_category_apps_async (GsPluginLoader *plugin_loader,
-                                      GsCategory *category,
-                                      GCancellable *cancellable,
-                                      GAsyncReadyCallback callback,
-                                      gpointer user_data)
+                                         GsCategory *category,
+                                         GsPluginLoaderFlags flags,
+                                         GCancellable *cancellable,
+                                         GAsyncReadyCallback callback,
+                                         gpointer user_data)
 {
        GCancellable *tmp;
        GsPluginLoaderAsyncState *state;
@@ -1386,8 +1393,8 @@ gs_plugin_loader_get_category_apps_async (GsPluginLoader *plugin_loader,
  **/
 GList *
 gs_plugin_loader_get_category_apps_finish (GsPluginLoader *plugin_loader,
-                                       GAsyncResult *res,
-                                       GError **error)
+                                          GAsyncResult *res,
+                                          GError **error)
 {
        GSimpleAsyncResult *simple;
 
@@ -1591,6 +1598,7 @@ gs_plugin_loader_thread_func (gpointer user_data)
 void
 gs_plugin_loader_app_install (GsPluginLoader *plugin_loader,
                              GsApp *app,
+                             GsPluginLoaderFlags flags,
                              GCancellable *cancellable,
                              GsPluginLoaderFinishedFunc func,
                              gpointer user_data)
@@ -1618,6 +1626,7 @@ gs_plugin_loader_app_install (GsPluginLoader *plugin_loader,
 void
 gs_plugin_loader_app_remove (GsPluginLoader *plugin_loader,
                             GsApp *app,
+                            GsPluginLoaderFlags flags,
                             GCancellable *cancellable,
                             GsPluginLoaderFinishedFunc func,
                             gpointer user_data)
@@ -1645,6 +1654,7 @@ gs_plugin_loader_app_remove (GsPluginLoader *plugin_loader,
 gboolean
 gs_plugin_loader_app_set_rating (GsPluginLoader *plugin_loader,
                                 GsApp *app,
+                                GsPluginLoaderFlags flags,
                                 GCancellable *cancellable,
                                 GError **error)
 {
@@ -1663,6 +1673,7 @@ gs_plugin_loader_app_set_rating (GsPluginLoader *plugin_loader,
 gboolean
 gs_plugin_loader_app_refine (GsPluginLoader *plugin_loader,
                             GsApp *app,
+                            GsPluginLoaderFlags flags,
                             GCancellable *cancellable,
                             GError **error)
 {
diff --git a/src/gs-plugin-loader.h b/src/gs-plugin-loader.h
index 274a1f7..12a800a 100644
--- a/src/gs-plugin-loader.h
+++ b/src/gs-plugin-loader.h
@@ -61,6 +61,11 @@ typedef enum
        GS_PLUGIN_LOADER_ERROR_LAST
 } GsPluginLoaderError;
 
+typedef enum {
+       GS_PLUGIN_LOADER_FLAGS_NONE = 0,
+       GS_PLUGIN_LOADER_FLAGS_LAST
+} GsPluginLoaderFlags;
+
 typedef void    (*GsPluginLoaderFinishedFunc)          (GsPluginLoader *plugin_loader,
                                                         GsApp          *app,
                                                         gpointer        user_data);
@@ -70,6 +75,7 @@ GType          gs_plugin_loader_get_type              (void);
 
 GsPluginLoader *gs_plugin_loader_new                   (void);
 void            gs_plugin_loader_get_installed_async   (GsPluginLoader *plugin_loader,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer        user_data);
@@ -77,6 +83,7 @@ GList         *gs_plugin_loader_get_installed_finish  (GsPluginLoader *plugin_loader,
                                                         GAsyncResult   *res,
                                                         GError         **error);
 void            gs_plugin_loader_get_updates_async     (GsPluginLoader *plugin_loader,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer        user_data);
@@ -84,6 +91,7 @@ GList         *gs_plugin_loader_get_updates_finish    (GsPluginLoader *plugin_loader,
                                                         GAsyncResult   *res,
                                                         GError         **error);
 void            gs_plugin_loader_get_popular_async     (GsPluginLoader *plugin_loader,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer        user_data);
@@ -91,6 +99,7 @@ GList         *gs_plugin_loader_get_popular_finish    (GsPluginLoader *plugin_loader,
                                                         GAsyncResult   *res,
                                                         GError         **error);
 void            gs_plugin_loader_get_featured_async    (GsPluginLoader *plugin_loader,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer        user_data);
@@ -98,6 +107,7 @@ GList                *gs_plugin_loader_get_featured_finish   (GsPluginLoader 
*plugin_loader,
                                                         GAsyncResult   *res,
                                                         GError         **error);
 void            gs_plugin_loader_get_categories_async  (GsPluginLoader *plugin_loader,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer        user_data);
@@ -106,6 +116,7 @@ GList               *gs_plugin_loader_get_categories_finish (GsPluginLoader 
*plugin_loader,
                                                         GError         **error);
 void            gs_plugin_loader_get_category_apps_async (GsPluginLoader       *plugin_loader,
                                                         GsCategory     *category,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer        user_data);
@@ -114,6 +125,7 @@ GList               *gs_plugin_loader_get_category_apps_finish (GsPluginLoader      
*plugin_loader
                                                         GError         **error);
 void            gs_plugin_loader_search_async          (GsPluginLoader *plugin_loader,
                                                         const gchar    *value,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer        user_data);
@@ -130,20 +142,24 @@ void               gs_plugin_loader_set_location          (GsPluginLoader 
*plugin_loader,
                                                         const gchar    *location);
 gboolean        gs_plugin_loader_app_refine            (GsPluginLoader *plugin_loader,
                                                         GsApp          *app,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GError         **error);
 void            gs_plugin_loader_app_install           (GsPluginLoader *plugin_loader,
                                                         GsApp          *app,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GsPluginLoaderFinishedFunc func,
                                                         gpointer        user_data);
 void            gs_plugin_loader_app_remove            (GsPluginLoader *plugin_loader,
                                                         GsApp          *app,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GsPluginLoaderFinishedFunc func,
                                                         gpointer        user_data);
 gboolean        gs_plugin_loader_app_set_rating        (GsPluginLoader *plugin_loader,
                                                         GsApp          *app,
+                                                        GsPluginLoaderFlags flags,
                                                         GCancellable   *cancellable,
                                                         GError         **error);
 GsAppState      gs_plugin_loader_get_state_for_app     (GsPluginLoader *plugin_loader,
diff --git a/src/gs-self-test.c b/src/gs-self-test.c
index 62f08bf..ad67f1e 100644
--- a/src/gs-self-test.c
+++ b/src/gs-self-test.c
@@ -117,7 +117,7 @@ gs_plugin_loader_func (void)
        ret = gs_plugin_loader_set_enabled (loader, "notgoingtoexist", TRUE);
        g_assert (!ret);
 
-       list = gs_plugin_loader_get_popular (loader, NULL, &error);
+       list = gs_plugin_loader_get_popular (loader, GS_PLUGIN_LOADER_FLAGS_NONE, NULL, &error);
        g_assert_no_error (error);
        g_assert (list != NULL);
        g_assert_cmpint (_status_changed_cnt, ==, 1);
@@ -134,7 +134,7 @@ gs_plugin_loader_func (void)
 
        /* get updates */
        _status_changed_cnt = 0;
-       list = gs_plugin_loader_get_updates (loader, NULL, &error);
+       list = gs_plugin_loader_get_updates (loader, GS_PLUGIN_LOADER_FLAGS_NONE, NULL, &error);
        g_assert_no_error (error);
        g_assert (list != NULL);
        g_assert_cmpint (_status_changed_cnt, >=, 1);
@@ -161,7 +161,7 @@ gs_plugin_loader_func (void)
        ret = gs_plugin_loader_set_enabled (loader, "datadir-apps", TRUE);
        g_assert (ret);
 
-       list = gs_plugin_loader_get_installed (loader, NULL, &error);
+       list = gs_plugin_loader_get_installed (loader, GS_PLUGIN_LOADER_FLAGS_NONE, NULL, &error);
        g_assert_no_error (error);
        g_assert (list != NULL);
        g_assert_cmpint (g_list_length (list), >, 50);
@@ -181,7 +181,7 @@ gs_plugin_loader_func (void)
        g_list_free_full (list, (GDestroyNotify) g_object_unref);
 
        /* do this again, which should be much faster */
-       list = gs_plugin_loader_get_installed (loader, NULL, &error);
+       list = gs_plugin_loader_get_installed (loader, GS_PLUGIN_LOADER_FLAGS_NONE, NULL, &error);
        g_assert_no_error (error);
        g_assert (list != NULL);
        g_assert_cmpint (g_list_length (list), >, 50);
@@ -197,13 +197,21 @@ gs_plugin_loader_func (void)
        /* create a dummy value */
        app = gs_app_new ("self-test");
        gs_app_set_rating (app, 35);
-       ret = gs_plugin_loader_app_set_rating (loader, app, NULL, &error);
+       ret = gs_plugin_loader_app_set_rating (loader,
+                                              app,
+                                              GS_PLUGIN_LOADER_FLAGS_NONE,
+                                              NULL,
+                                              &error);
        g_assert_no_error (error);
        g_assert (ret);
 
        /* get the saved value */
        gs_app_set_rating (app, -1);
-       ret = gs_plugin_loader_app_refine (loader, app, NULL, &error);
+       ret = gs_plugin_loader_app_refine (loader,
+                                          app,
+                                          GS_PLUGIN_LOADER_FLAGS_NONE,
+                                          NULL,
+                                          &error);
        g_assert_no_error (error);
        g_assert (ret);
        g_assert_cmpint (gs_app_get_rating (app), ==, 35);
@@ -242,7 +250,7 @@ gs_plugin_loader_empty_func (void)
        g_assert (ret);
 
        /* get the list of categories */
-       list = gs_plugin_loader_get_categories (loader, NULL, &error);
+       list = gs_plugin_loader_get_categories (loader, GS_PLUGIN_LOADER_FLAGS_NONE, NULL, &error);
        g_assert_no_error (error);
        g_assert (list != NULL);
 
@@ -262,6 +270,7 @@ gs_plugin_loader_empty_func (void)
                        /* find subcaegories that have no applications */
                        apps = gs_plugin_loader_get_category_apps (loader,
                                                                   sub,
+                                                                  GS_PLUGIN_LOADER_FLAGS_NONE,
                                                                   NULL,
                                                                   &error);
                        if (apps == NULL) {
diff --git a/src/gs-shell-category.c b/src/gs-shell-category.c
index 6f92a2d..077191c 100644
--- a/src/gs-shell-category.c
+++ b/src/gs-shell-category.c
@@ -146,6 +146,7 @@ gs_shell_category_populate_filtered (GsShellCategory *shell)
 
        gs_plugin_loader_get_category_apps_async (priv->plugin_loader,
                                                  priv->category,
+                                                 GS_PLUGIN_LOADER_FLAGS_NONE,
                                                  priv->cancellable,
                                                  gs_shell_category_get_apps_cb,
                                                  shell);
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 933b675..1f218b5 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -299,6 +299,7 @@ gs_shell_details_app_remove_button_cb (GtkWidget *widget, GsShellDetails *shell_
                g_debug ("remove %s", gs_app_get_id (priv->app));
                gs_plugin_loader_app_remove (priv->plugin_loader,
                                             priv->app,
+                                            GS_PLUGIN_LOADER_FLAGS_NONE,
                                             priv->cancellable,
                                             gs_shell_details_removed_func,
                                             shell_details);
@@ -316,6 +317,7 @@ gs_shell_details_app_install_button_cb (GtkWidget *widget, GsShellDetails *shell
        GsShellDetailsPrivate *priv = shell_details->priv;
        gs_plugin_loader_app_install (priv->plugin_loader,
                                      priv->app,
+                                     GS_PLUGIN_LOADER_FLAGS_NONE,
                                      priv->cancellable,
                                      gs_shell_details_installed_func,
                                      shell_details);
diff --git a/src/gs-shell-installed.c b/src/gs-shell-installed.c
index d06d57b..df87081 100644
--- a/src/gs-shell-installed.c
+++ b/src/gs-shell-installed.c
@@ -167,6 +167,7 @@ gs_shell_installed_app_remove_cb (GsAppWidget *app_widget,
                helper->app_widget = g_object_ref (app_widget);
                gs_plugin_loader_app_remove (priv->plugin_loader,
                                             app,
+                                            GS_PLUGIN_LOADER_FLAGS_NONE,
                                             priv->cancellable,
                                             gs_shell_installed_finished_func,
                                             helper);
@@ -317,6 +318,7 @@ gs_shell_installed_refresh (GsShellInstalled *shell_installed, gboolean scroll_u
 
        /* get popular apps */
        gs_plugin_loader_get_installed_async (priv->plugin_loader,
+                                             GS_PLUGIN_LOADER_FLAGS_NONE,
                                              priv->cancellable,
                                              gs_shell_installed_get_installed_cb,
                                              shell_installed);
diff --git a/src/gs-shell-overview.c b/src/gs-shell-overview.c
index 2a32825..18d042f 100644
--- a/src/gs-shell-overview.c
+++ b/src/gs-shell-overview.c
@@ -250,11 +250,13 @@ gs_shell_overview_refresh (GsShellOverview *shell, gboolean scroll_up)
        priv->refresh_count = 3;
 
        gs_plugin_loader_get_featured_async (priv->plugin_loader,
+                                            GS_PLUGIN_LOADER_FLAGS_NONE,
                                             priv->cancellable,
                                             gs_shell_overview_get_featured_cb,
                                             shell);
 
        gs_plugin_loader_get_popular_async (priv->plugin_loader,
+                                           GS_PLUGIN_LOADER_FLAGS_NONE,
                                            priv->cancellable,
                                            gs_shell_overview_get_popular_cb,
                                            shell);
@@ -263,6 +265,7 @@ gs_shell_overview_refresh (GsShellOverview *shell, gboolean scroll_up)
        gs_container_remove_all (GTK_CONTAINER (grid));
 
        gs_plugin_loader_get_categories_async (priv->plugin_loader,
+                                              GS_PLUGIN_LOADER_FLAGS_NONE,
                                               priv->cancellable,
                                               gs_shell_overview_get_categories_cb,
                                               shell);
diff --git a/src/gs-shell-search.c b/src/gs-shell-search.c
index b7887a1..da95c21 100644
--- a/src/gs-shell-search.c
+++ b/src/gs-shell-search.c
@@ -111,6 +111,7 @@ gs_shell_search_app_remove (GsShellSearch *shell_search, GsApp *app)
                g_debug ("remove %s", gs_app_get_id (app));
                gs_plugin_loader_app_remove (priv->plugin_loader,
                                             app,
+                                            GS_PLUGIN_LOADER_FLAGS_NONE,
                                             priv->cancellable,
                                             gs_shell_search_removed_func,
                                             shell_search);
@@ -128,6 +129,7 @@ gs_shell_search_app_install (GsShellSearch *shell_search, GsApp *app)
        GsShellSearchPrivate *priv = shell_search->priv;
        gs_plugin_loader_app_install (priv->plugin_loader,
                                      app,
+                                     GS_PLUGIN_LOADER_FLAGS_NONE,
                                      priv->cancellable,
                                      gs_shell_search_installed_func,
                                      shell_search);
@@ -222,6 +224,7 @@ gs_shell_search_refresh (GsShellSearch *shell_search, const gchar *value)
        /* search for apps */
        gs_plugin_loader_search_async (priv->plugin_loader,
                                       value,
+                                      GS_PLUGIN_LOADER_FLAGS_NONE,
                                       priv->cancellable,
                                       gs_shell_search_get_search_cb,
                                       shell_search);
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index 5e79c60..1e39162 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -164,6 +164,7 @@ gs_shell_updates_refresh (GsShellUpdates *shell_updates, gboolean scroll_up)
        gs_container_remove_all (GTK_CONTAINER (priv->list_box_updates));
 
        gs_plugin_loader_get_updates_async (priv->plugin_loader,
+                                           GS_PLUGIN_LOADER_FLAGS_NONE,
                                            priv->cancellable,
                                            (GAsyncReadyCallback) gs_shell_updates_get_updates_cb,
                                            shell_updates);


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