[gnome-software] trivial: Allow getting the GsPluginLoader from the GsApplication
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Allow getting the GsPluginLoader from the GsApplication
- Date: Mon, 28 Sep 2015 11:35:51 +0000 (UTC)
commit 2f5b38245d6cb081b7774e8f44d394feec249ae4
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 28 09:45:04 2015 +0100
trivial: Allow getting the GsPluginLoader from the GsApplication
src/gs-application.c | 7 ++++++-
src/gs-application.h | 4 +++-
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index 43dd957..165d7f5 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -41,7 +41,6 @@
#include "gs-shell.h"
#include "gs-update-monitor.h"
#include "gs-proxy-settings.h"
-#include "gs-plugin-loader.h"
#include "gs-shell-search-provider.h"
#include "gs-offline-updates.h"
#include "gs-folders.h"
@@ -67,6 +66,12 @@ struct _GsApplication {
G_DEFINE_TYPE (GsApplication, gs_application, GTK_TYPE_APPLICATION);
+GsPluginLoader *
+gs_application_get_plugin_loader (GsApplication *application)
+{
+ return application->plugin_loader;
+}
+
gboolean
gs_application_has_active_window (GsApplication *application)
{
diff --git a/src/gs-application.h b/src/gs-application.h
index 211dce6..3953af9 100644
--- a/src/gs-application.h
+++ b/src/gs-application.h
@@ -24,12 +24,14 @@
#include <gtk/gtk.h>
+#include "gs-plugin-loader.h"
+
#define GS_APPLICATION_TYPE (gs_application_get_type ())
G_DECLARE_FINAL_TYPE (GsApplication, gs_application, GS, APPLICATION, GtkApplication)
GsApplication *gs_application_new (void);
-
+GsPluginLoader *gs_application_get_plugin_loader (GsApplication *application);
gboolean gs_application_has_active_window (GsApplication *application);
#endif /* __GS_APPLICATION_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]