[gnome-builder/wip/chergert/hover] doc: remove documentation card plugin
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/hover] doc: remove documentation card plugin
- Date: Mon, 16 Jul 2018 23:52:23 +0000 (UTC)
commit 6733e32aa880b26d2d0967d931b2ae0fe670d123
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 16 16:39:01 2018 -0700
doc: remove documentation card plugin
This is handled via hover providers now, so we can drop the popover control
and documentation resolvers. We may bring the documentation provider back
at some point, depending how we do plumbing for parameter completion.
meson_options.txt | 1 -
src/libide/documentation/ide-documentation-info.c | 226 --------------
src/libide/documentation/ide-documentation-info.h | 54 ----
.../documentation/ide-documentation-proposal.c | 220 --------------
.../documentation/ide-documentation-proposal.h | 55 ----
.../documentation/ide-documentation-provider.c | 55 ----
.../documentation/ide-documentation-provider.h | 53 ----
src/libide/documentation/ide-documentation.c | 119 --------
src/libide/documentation/ide-documentation.h | 39 ---
src/libide/documentation/meson.build | 18 --
src/libide/ide-context.c | 51 ----
src/libide/ide-context.h | 2 -
src/libide/ide-types.h | 4 -
src/libide/ide.h | 4 -
src/libide/meson.build | 1 -
.../documentation-card.gresource.xml | 9 -
.../documentation-card/documentation-card.plugin | 9 -
.../gbp-documentation-card-plugin.c | 30 --
.../gbp-documentation-card-view-addin.c | 329 ---------------------
.../gbp-documentation-card-view-addin.h | 27 --
.../documentation-card/gbp-documentation-card.c | 136 ---------
.../documentation-card/gbp-documentation-card.h | 34 ---
.../documentation-card/gbp-documentation-card.ui | 49 ---
src/plugins/documentation-card/meson.build | 20 --
src/plugins/meson.build | 1 -
25 files changed, 1546 deletions(-)
---
diff --git a/meson_options.txt b/meson_options.txt
index ea7b10ff3..1ee96f23e 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -35,7 +35,6 @@ option('with_command_bar', type: 'boolean')
option('with_comment_code', type: 'boolean')
option('with_create_project', type: 'boolean')
option('with_ctags', type: 'boolean')
-option('with_documentation_card', type: 'boolean')
option('with_devhelp', type: 'boolean')
option('with_deviced', type: 'boolean', value: false)
option('with_eslint', type: 'boolean')
diff --git a/src/libide/ide-context.c b/src/libide/ide-context.c
index 030413561..7d128dd6a 100644
--- a/src/libide/ide-context.c
+++ b/src/libide/ide-context.c
@@ -44,7 +44,6 @@
#include "debugger/ide-debug-manager.h"
#include "devices/ide-device-manager.h"
#include "doap/ide-doap.h"
-#include "documentation/ide-documentation.h"
#include "plugins/ide-extension-util.h"
#include "projects/ide-project-item.h"
#include "projects/ide-project.h"
@@ -116,7 +115,6 @@ struct _IdeContext
IdeDiagnosticsManager *diagnostics_manager;
IdeDeviceManager *device_manager;
IdeDoap *doap;
- IdeDocumentation *documentation;
GListStore *pausables;
IdeVcsMonitor *monitor;
GtkRecentManager *recent_manager;
@@ -162,7 +160,6 @@ enum {
PROP_BUILD_SYSTEM,
PROP_CONFIGURATION_MANAGER,
PROP_DEVICE_MANAGER,
- PROP_DOCUMENTATION,
PROP_PROJECT_FILE,
PROP_PROJECT,
PROP_RUNTIME_MANAGER,
@@ -299,22 +296,6 @@ ide_context_get_device_manager (IdeContext *self)
return self->device_manager;
}
-/**
- * ide_context_get_documentation:
- * @self: An #IdeContext.
- *
- * Returns the #IdeDocumentation for the source view if there is one.
- *
- * Returns: (transfer none) (nullable): an #IdeDocumentation or %NULL.
- */
-IdeDocumentation *
-ide_context_get_documentation (IdeContext *self)
-{
- g_return_val_if_fail (IDE_IS_CONTEXT (self), NULL);
-
- return self->documentation;
-}
-
/**
* ide_context_get_snippets:
*
@@ -653,10 +634,6 @@ ide_context_get_property (GObject *object,
g_value_set_object (value, ide_context_get_device_manager (self));
break;
- case PROP_DOCUMENTATION:
- g_value_set_object (value, ide_context_get_documentation (self));
- break;
-
case PROP_PROJECT:
g_value_set_object (value, ide_context_get_project (self));
break;
@@ -751,13 +728,6 @@ ide_context_class_init (IdeContextClass *klass)
IDE_TYPE_DEVICE_MANAGER,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- properties [PROP_DOCUMENTATION] =
- g_param_spec_object ("documentation",
- "Documentation",
- "The documentation for the context.",
- IDE_TYPE_DOCUMENTATION,
- (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
-
properties [PROP_PROJECT] =
g_param_spec_object ("project",
"Project",
@@ -1578,26 +1548,6 @@ ide_context_init_search_engine (gpointer source_object,
ide_task_return_boolean (task, TRUE);
}
-static void
-ide_context_init_documentation (gpointer source_object,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_autoptr(IdeTask) task = NULL;
- IdeContext *self = source_object;
-
- g_assert (IDE_IS_CONTEXT (self));
- g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
-
- self->documentation = g_object_new (IDE_TYPE_DOCUMENTATION,
- "context", self,
- NULL);
-
- task = ide_task_new (self, cancellable, callback, user_data);
- ide_task_return_boolean (task, TRUE);
-}
-
static void
ide_context_init_configuration_manager_cb (GObject *object,
GAsyncResult *result,
@@ -1864,7 +1814,6 @@ ide_context_init_async (GAsyncInitable *initable,
ide_context_init_unsaved_files,
ide_context_init_add_recent,
ide_context_init_search_engine,
- ide_context_init_documentation,
ide_context_init_runtimes,
ide_context_init_toolchain_manager,
ide_context_init_configuration_manager,
diff --git a/src/libide/ide-context.h b/src/libide/ide-context.h
index afeb2852c..87e446d3a 100644
--- a/src/libide/ide-context.h
+++ b/src/libide/ide-context.h
@@ -49,8 +49,6 @@ IdeDiagnosticsManager *ide_context_get_diagnostics_manager (IdeContext
IDE_AVAILABLE_IN_ALL
IdeDeviceManager *ide_context_get_device_manager (IdeContext *self);
IDE_AVAILABLE_IN_ALL
-IdeDocumentation *ide_context_get_documentation (IdeContext *self);
-IDE_AVAILABLE_IN_ALL
IdeProject *ide_context_get_project (IdeContext *self);
IDE_AVAILABLE_IN_3_28
GSettings *ide_context_get_project_settings (IdeContext *self);
diff --git a/src/libide/ide-types.h b/src/libide/ide-types.h
index 885207f8a..9279a6810 100644
--- a/src/libide/ide-types.h
+++ b/src/libide/ide-types.h
@@ -68,10 +68,6 @@ typedef struct _IdeDiagnosticProvider IdeDiagnosticProvider;
typedef struct _IdeDiagnostics IdeDiagnostics;
typedef struct _IdeDiagnosticsManager IdeDiagnosticsManager;
-typedef struct _IdeDocumentation IdeDocumentation;
-typedef struct _IdeDocumentationInfo IdeDocumentationInfo;
-typedef struct _IdeDocumentationProposal IdeDocumentationProposal;
-
typedef struct _IdeEnvironment IdeEnvironment;
typedef struct _IdeEnvironmentVariable IdeEnvironmentVariable;
diff --git a/src/libide/ide.h b/src/libide/ide.h
index 242d0d11b..0f142554c 100644
--- a/src/libide/ide.h
+++ b/src/libide/ide.h
@@ -98,10 +98,6 @@ G_BEGIN_DECLS
#include "diagnostics/ide-source-range.h"
#include "doap/ide-doap-person.h"
#include "doap/ide-doap.h"
-#include "documentation/ide-documentation.h"
-#include "documentation/ide-documentation-info.h"
-#include "documentation/ide-documentation-proposal.h"
-#include "documentation/ide-documentation-provider.h"
#include "editor/ide-editor-addin.h"
#include "editor/ide-editor-perspective.h"
#include "editor/ide-editor-search.h"
diff --git a/src/libide/meson.build b/src/libide/meson.build
index 1b114787d..4e8bc731b 100644
--- a/src/libide/meson.build
+++ b/src/libide/meson.build
@@ -61,7 +61,6 @@ subdir('devices')
subdir('diagnostics')
subdir('doap')
subdir('directory')
-subdir('documentation')
subdir('editor')
subdir('files')
subdir('formatting')
diff --git a/src/plugins/meson.build b/src/plugins/meson.build
index 59c3074e9..239f41267 100644
--- a/src/plugins/meson.build
+++ b/src/plugins/meson.build
@@ -23,7 +23,6 @@ subdir('command-bar')
subdir('comment-code')
subdir('create-project')
subdir('ctags')
-subdir('documentation-card')
subdir('devhelp')
subdir('deviced')
subdir('eslint')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]