[gtksourceview] completion: ensure info type is registered



commit cfe7e0a1c5d4940172fcc0f54ea073f4425e7f1c
Author: Christian Hergert <chergert redhat com>
Date:   Sun Apr 26 08:49:11 2020 -0700

    completion: ensure info type is registered
    
    Before we try to expand the template, ensure the type has been registered.
    This shouldn't be necessary, so long as you can resolve the symbol type
    by name, but this makes that a no-op.
    
    Related #128

 gtksourceview/gtksourcecompletion.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 06886e3d..15cdf27a 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -2720,6 +2720,8 @@ gtk_source_completion_class_init (GtkSourceCompletionClass *klass)
                                      2,
                                      GTK_TYPE_SCROLL_STEP, GTK_SCROLL_ENDS,
                                      G_TYPE_INT, 1);
+
+       g_type_ensure (GTK_SOURCE_TYPE_COMPLETION_INFO);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]