summaryrefslogtreecommitdiff
path: root/src/terminal-app.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal-app.cc')
-rw-r--r--src/terminal-app.cc36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/terminal-app.cc b/src/terminal-app.cc
index 59a4db15..59407423 100644
--- a/src/terminal-app.cc
+++ b/src/terminal-app.cc
@@ -52,14 +52,6 @@
#include "terminal-prefs.hh"
#endif
-#ifndef TERMINAL_SERVER
-#undef ENABLE_SEARCH_PROVIDER
-#endif
-
-#ifdef ENABLE_SEARCH_PROVIDER
-#include "terminal-search-provider.hh"
-#endif /* ENABLE_SEARCH_PROVIDER */
-
#include <sys/wait.h>
#include <errno.h>
#include <string.h>
@@ -124,10 +116,6 @@ struct _TerminalApp
GDBusObjectManagerServer *object_manager;
GHashTable *screen_map;
-#ifdef ENABLE_SEARCH_PROVIDER
- TerminalSearchProvider *search_provider;
-#endif /* ENABLE_SEARCH_PROVIDER */
-
GMenuModel *menubar;
GMenu *menubar_new_terminal_section;
GMenu *menubar_set_profile_section;
@@ -1091,22 +1079,6 @@ terminal_app_dbus_register (GApplication *application,
error))
return FALSE;
-#ifdef ENABLE_SEARCH_PROVIDER
- if (g_settings_get_boolean (app->global_settings, TERMINAL_SETTING_SHELL_INTEGRATION_KEY)) {
- gs_unref_object TerminalSearchProvider *search_provider;
-
- search_provider = terminal_search_provider_new ();
-
- if (!terminal_search_provider_dbus_register (search_provider,
- connection,
- TERMINAL_SEARCH_PROVIDER_PATH,
- error))
- return FALSE;
-
- gs_transfer_out_value (&app->search_provider, &search_provider);
- }
-#endif /* ENABLE_SEARCH_PROVIDER */
-
object = terminal_object_skeleton_new (TERMINAL_FACTORY_OBJECT_PATH);
factory = terminal_factory_impl_new ();
terminal_object_skeleton_set_factory (object, factory);
@@ -1132,14 +1104,6 @@ terminal_app_dbus_unregister (GApplication *application,
app->object_manager = nullptr;
}
-#ifdef ENABLE_SEARCH_PROVIDER
- if (app->search_provider) {
- terminal_search_provider_dbus_unregister (app->search_provider, connection, TERMINAL_SEARCH_PROVIDER_PATH);
- g_object_unref (app->search_provider);
- app->search_provider = nullptr;
- }
-#endif /* ENABLE_SEARCH_PROVIDER */
-
G_APPLICATION_CLASS (terminal_app_parent_class)->dbus_unregister (application,
connection,
object_path);