Commit 78ea5a00 authored by Christian Hergert's avatar Christian Hergert

html-completion: port to libide-sourceview

parent 9dac7be0
...@@ -18,13 +18,15 @@ ...@@ -18,13 +18,15 @@
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
*/ */
#include <ide.h> #include "config.h"
#include <libide-sourceview.h>
#include <libpeas/peas.h> #include <libpeas/peas.h>
#include "ide-html-completion-provider.h" #include "ide-html-completion-provider.h"
void _IDE_EXTERN void
ide_html_completion_register_types (PeasObjectModule *module) _ide_html_completion_register_types (PeasObjectModule *module)
{ {
peas_object_module_register_extension_type (module, peas_object_module_register_extension_type (module,
IDE_TYPE_COMPLETION_PROVIDER, IDE_TYPE_COMPLETION_PROVIDER,
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<gresources> <gresources>
<gresource prefix="/org/gnome/builder/plugins"> <gresource prefix="/plugins/html-completion">
<file>html-completion.plugin</file> <file>html-completion.plugin</file>
</gresource> </gresource>
</gresources> </gresources>
[Plugin] [Plugin]
Module=html-completion-plugin
Name=HTML Auto-Completion
Description=Provides auto-completion when authoring HTML documents
Authors=Christian Hergert <christian@hergert.me> Authors=Christian Hergert <christian@hergert.me>
Copyright=Copyright © 2015 Christian Hergert
Builtin=true Builtin=true
Copyright=Copyright © 2015 Christian Hergert
Description=Provides auto-completion when authoring HTML documents
Embedded=_ide_html_completion_register_types
Module=html-completion
Name=HTML Auto-Completion
X-Completion-Provider-Languages=asp,dtl,html,php,css X-Completion-Provider-Languages=asp,dtl,html,php,css
Embedded=ide_html_completion_register_types
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#pragma once #pragma once
#include <ide.h> #include <libide-sourceview.h>
#include "ide-html-proposals.h" #include "ide-html-proposals.h"
......
if get_option('with_html_completion') if get_option('plugin_html_completion')
html_completion_resources = gnome.compile_resources( plugins_sources += files([
'html-completion-resources',
'html-completion.gresource.xml',
c_name: 'gbp_html_completion',
)
html_completion_sources = [
'html-completion-plugin.c', 'html-completion-plugin.c',
'ide-html-completion-provider.c', 'ide-html-completion-provider.c',
'ide-html-proposal.c', 'ide-html-proposal.c',
'ide-html-proposals.c', 'ide-html-proposals.c',
] ])
plugin_html_completion_resources = gnome.compile_resources(
'gbp-html-completion-resources',
'html-completion.gresource.xml',
c_name: 'gbp_html_completion',
)
gnome_builder_plugins_sources += files(html_completion_sources) plugins_sources += plugin_html_completion_resources[0]
gnome_builder_plugins_sources += html_completion_resources[0]
endif endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment