[gnome-software/wip/hughsie/no-global-cache: 6/8] trivial: Use gs_plugin_loader_app_create() when showing the plugindir warning



commit ec4895c58b05071e9232a3aa4270b340bb42449f
Author: Richard Hughes <richard hughsie com>
Date:   Thu Feb 22 16:44:41 2018 +0000

    trivial: Use gs_plugin_loader_app_create() when showing the plugindir warning

 lib/gs-plugin-loader.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 8f767b53..6ae7a546 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -2249,14 +2249,13 @@ gs_plugin_loader_plugin_dir_changed_cb (GFileMonitor *monitor,
                                        GFileMonitorEvent event_type,
                                        GsPluginLoader *plugin_loader)
 {
-       GsPluginLoaderPrivate *priv = gs_plugin_loader_get_instance_private (plugin_loader);
-       GsApp *app;
+       g_autoptr(GsApp) app = NULL;
        g_autoptr(GsPluginEvent) event = gs_plugin_event_new ();
        g_autoptr(GError) error = NULL;
 
        /* add app */
        gs_plugin_event_set_action (event, GS_PLUGIN_ACTION_SETUP);
-       app = gs_app_list_lookup (priv->global_cache,
+       app = gs_plugin_loader_app_create (plugin_loader,
                "system/*/*/*/org.gnome.Software.desktop/*");
        if (app != NULL)
                gs_plugin_event_set_app (event, app);


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