[gnome-software: 4/20] gs-application: Inline setup_search_provider()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 4/20] gs-application: Inline setup_search_provider()
- Date: Thu, 17 Mar 2022 10:27:10 +0000 (UTC)
commit 9cfe9199556e8ba875f1769ea4991cab50cd13bd
Author: Philip Withnall <pwithnall endlessos org>
Date: Mon Mar 7 14:56:28 2022 +0000
gs-application: Inline setup_search_provider()
It’s only called from one place.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Helps: #1670
src/gs-application.c | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index ce2770134..79995646a 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -934,14 +934,6 @@ gs_application_settings_changed_cb (GApplication *self,
}
}
-static void
-gs_application_setup_search_provider (GsApplication *app)
-{
- gs_application_initialize_plugins (app);
- if (app->search_provider)
- gs_shell_search_provider_setup (app->search_provider, app->plugin_loader);
-}
-
static void
wrapper_action_activated_cb (GSimpleAction *action,
GVariant *parameter,
@@ -1012,7 +1004,10 @@ gs_application_startup (GApplication *application)
actions, G_N_ELEMENTS (actions),
application);
- gs_application_setup_search_provider (GS_APPLICATION (application));
+ gs_application_initialize_plugins (app);
+
+ if (app->search_provider)
+ gs_shell_search_provider_setup (app->search_provider, app->plugin_loader);
#ifdef HAVE_PACKAGEKIT
GS_APPLICATION (application)->dbus_helper = gs_dbus_helper_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]