Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gnome-builder
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Günther Wagner
gnome-builder
Commits
78ea5a00
Commit
78ea5a00
authored
Jan 09, 2019
by
Christian Hergert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
html-completion: port to libide-sourceview
parent
9dac7be0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
21 deletions
+22
-21
src/plugins/html-completion/html-completion-plugin.c
src/plugins/html-completion/html-completion-plugin.c
+5
-3
src/plugins/html-completion/html-completion.gresource.xml
src/plugins/html-completion/html-completion.gresource.xml
+1
-1
src/plugins/html-completion/html-completion.plugin
src/plugins/html-completion/html-completion.plugin
+5
-5
src/plugins/html-completion/ide-html-proposal.h
src/plugins/html-completion/ide-html-proposal.h
+1
-1
src/plugins/html-completion/meson.build
src/plugins/html-completion/meson.build
+10
-11
No files found.
src/plugins/html-completion/html-completion-plugin.c
View file @
78ea5a00
...
...
@@ -18,13 +18,15 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#include <ide.h>
#include "config.h"
#include <libide-sourceview.h>
#include <libpeas/peas.h>
#include "ide-html-completion-provider.h"
void
ide_html_completion_register_types
(
PeasObjectModule
*
module
)
_IDE_EXTERN
void
_
ide_html_completion_register_types
(
PeasObjectModule
*
module
)
{
peas_object_module_register_extension_type
(
module
,
IDE_TYPE_COMPLETION_PROVIDER
,
...
...
src/plugins/html-completion/html-completion.gresource.xml
View file @
78ea5a00
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource
prefix=
"/
org/gnome/builder/plugins
"
>
<gresource
prefix=
"/
plugins/html-completion
"
>
<file>
html-completion.plugin
</file>
</gresource>
</gresources>
src/plugins/html-completion/html-completion.plugin
View file @
78ea5a00
[Plugin]
Module=html-completion-plugin
Name=HTML Auto-Completion
Description=Provides auto-completion when authoring HTML documents
Authors=Christian Hergert <christian@hergert.me>
Copyright=Copyright © 2015 Christian Hergert
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
Embedded=ide_html_completion_register_types
src/plugins/html-completion/ide-html-proposal.h
View file @
78ea5a00
...
...
@@ -20,7 +20,7 @@
#pragma once
#include <
ide
.h>
#include <
libide-sourceview
.h>
#include "ide-html-proposals.h"
...
...
src/plugins/html-completion/meson.build
View file @
78ea5a00
if get_option('
with
_html_completion')
if get_option('
plugin
_html_completion')
html_completion_resources = gnome.compile_resources(
'html-completion-resources',
'html-completion.gresource.xml',
c_name: 'gbp_html_completion',
)
html_completion_sources = [
plugins_sources += files([
'html-completion-plugin.c',
'ide-html-completion-provider.c',
'ide-html-proposal.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)
gnome_builder_plugins_sources += html_completion_resources[0]
plugins_sources += plugin_html_completion_resources[0]
endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment