[gnome-software] trivial: Save flags in GsPluginLoaderAsyncState



commit 276b9e6fe0bf2a8300fad7a4fda752586d60d043
Author: Richard Hughes <richard hughsie com>
Date:   Thu Sep 12 14:50:42 2013 +0100

    trivial: Save flags in GsPluginLoaderAsyncState

 src/gs-plugin-loader.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index d8b9637..1441986 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -373,6 +373,7 @@ typedef struct {
        GList                           *list;
        GSimpleAsyncResult              *res;
        GsPluginLoader                  *plugin_loader;
+       GsPluginLoaderFlags              flags;
        gchar                           *value;
        GsCategory                      *category;
 } GsPluginLoaderAsyncState;
@@ -557,6 +558,7 @@ gs_plugin_loader_get_updates_async (GsPluginLoader *plugin_loader,
                                                user_data,
                                                gs_plugin_loader_get_updates_async);
        state->plugin_loader = g_object_ref (plugin_loader);
+       state->flags = flags;
        if (cancellable != NULL)
                state->cancellable = g_object_ref (cancellable);
 
@@ -676,6 +678,7 @@ gs_plugin_loader_get_installed_async (GsPluginLoader *plugin_loader,
                                                user_data,
                                                gs_plugin_loader_get_installed_async);
        state->plugin_loader = g_object_ref (plugin_loader);
+       state->flags = flags;
        if (cancellable != NULL)
                state->cancellable = g_object_ref (cancellable);
 
@@ -777,6 +780,7 @@ gs_plugin_loader_get_popular_async (GsPluginLoader *plugin_loader,
                                                user_data,
                                                gs_plugin_loader_get_popular_async);
        state->plugin_loader = g_object_ref (plugin_loader);
+       state->flags = flags;
        if (cancellable != NULL)
                state->cancellable = g_object_ref (cancellable);
 
@@ -896,6 +900,7 @@ gs_plugin_loader_get_featured_async (GsPluginLoader *plugin_loader,
                                                user_data,
                                                gs_plugin_loader_get_featured_async);
        state->plugin_loader = g_object_ref (plugin_loader);
+       state->flags = flags;
        if (cancellable != NULL)
                state->cancellable = g_object_ref (cancellable);
 
@@ -1059,6 +1064,7 @@ gs_plugin_loader_search_async (GsPluginLoader *plugin_loader,
                                                user_data,
                                                gs_plugin_loader_search_async);
        state->plugin_loader = g_object_ref (plugin_loader);
+       state->flags = flags;
        state->value = g_strdup (value);
        if (cancellable != NULL)
                state->cancellable = g_object_ref (cancellable);
@@ -1207,6 +1213,7 @@ gs_plugin_loader_get_categories_async (GsPluginLoader *plugin_loader,
                                                user_data,
                                                gs_plugin_loader_get_categories_async);
        state->plugin_loader = g_object_ref (plugin_loader);
+       state->flags = flags;
        if (cancellable != NULL)
                state->cancellable = g_object_ref (cancellable);
 
@@ -1374,6 +1381,7 @@ gs_plugin_loader_get_category_apps_async (GsPluginLoader *plugin_loader,
                                                user_data,
                                                gs_plugin_loader_get_category_apps_async);
        state->plugin_loader = g_object_ref (plugin_loader);
+       state->flags = flags;
        state->category = g_object_ref (category);
        if (cancellable != NULL)
                state->cancellable = g_object_ref (cancellable);


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