[gnome-builder/wip/chergert/completion] html: remove dynamic type registration
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/completion] html: remove dynamic type registration
- Date: Wed, 6 Jun 2018 03:34:09 +0000 (UTC)
commit ea8222e3cc701f53d0b2ea5c106b2b215954c883
Author: Christian Hergert <chergert redhat com>
Date: Tue Jun 5 15:16:47 2018 -0700
html: remove dynamic type registration
.../html-completion/ide-html-completion-provider.c | 19 ++++++-------------
1 file changed, 6 insertions(+), 13 deletions(-)
---
diff --git a/src/plugins/html-completion/ide-html-completion-provider.c
b/src/plugins/html-completion/ide-html-completion-provider.c
index 659e80174..c9935358b 100644
--- a/src/plugins/html-completion/ide-html-completion-provider.c
+++ b/src/plugins/html-completion/ide-html-completion-provider.c
@@ -50,12 +50,12 @@ struct _IdeHtmlCompletionProvider
static void completion_provider_init (GtkSourceCompletionProviderIface *);
-G_DEFINE_DYNAMIC_TYPE_EXTENDED (IdeHtmlCompletionProvider,
- ide_html_completion_provider,
- IDE_TYPE_OBJECT,
- 0,
- G_IMPLEMENT_INTERFACE (GTK_SOURCE_TYPE_COMPLETION_PROVIDER,
completion_provider_init)
- G_IMPLEMENT_INTERFACE (IDE_TYPE_COMPLETION_PROVIDER, NULL))
+G_DEFINE_TYPE_EXTENDED (IdeHtmlCompletionProvider,
+ ide_html_completion_provider,
+ IDE_TYPE_OBJECT,
+ 0,
+ G_IMPLEMENT_INTERFACE (GTK_SOURCE_TYPE_COMPLETION_PROVIDER, completion_provider_init)
+ G_IMPLEMENT_INTERFACE (IDE_TYPE_COMPLETION_PROVIDER, NULL))
static gchar *
get_word (GtkSourceCompletionContext *context)
@@ -453,11 +453,6 @@ ide_html_completion_provider_get_icon (GtkSourceCompletionProvider *provider)
return NULL;
}
-static void
-ide_html_completion_provider_class_finalize (IdeHtmlCompletionProviderClass *klass)
-{
-}
-
static void
ide_html_completion_provider_class_init (IdeHtmlCompletionProviderClass *klass)
{
@@ -911,8 +906,6 @@ completion_provider_init (GtkSourceCompletionProviderIface *iface)
void
ide_html_completion_register_types (PeasObjectModule *module)
{
- ide_html_completion_provider_register_type (G_TYPE_MODULE (module));
-
peas_object_module_register_extension_type (module,
IDE_TYPE_COMPLETION_PROVIDER,
IDE_TYPE_HTML_COMPLETION_PROVIDER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]