[gtksourceview/wip/chergert/gsv-gtk4: 85/192] init: register core types during gtk_source_init()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 85/192] init: register core types during gtk_source_init()
- Date: Fri, 7 Aug 2020 18:31:07 +0000 (UTC)
commit 6726ae20daca3608e20f1dc77c776d490fffcb4c
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 15 13:50:01 2020 -0800
init: register core types during gtk_source_init()
gtksourceview/gtksourceinit.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/gtksourceview/gtksourceinit.c b/gtksourceview/gtksourceinit.c
index d13e59181..d74500dd8 100644
--- a/gtksourceview/gtksourceinit.c
+++ b/gtksourceview/gtksourceinit.c
@@ -23,8 +23,14 @@
#include <glib/gi18n-lib.h>
#include "gtksourceinit.h"
+#include "gtksourcegutterrendererpixbuf.h"
+#include "gtksourcegutterrenderertext.h"
#include "gtksourcelanguagemanager-private.h"
+#include "gtksourcemap.h"
+#include "gtksourcestyleschemechooserbutton.h"
+#include "gtksourcestyleschemechooserwidget.h"
#include "gtksourcestyleschememanager-private.h"
+#include "gtksourceview.h"
#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN
@@ -156,6 +162,13 @@ gtk_source_init (void)
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ g_type_ensure (GTK_SOURCE_TYPE_GUTTER_RENDERER_TEXT);
+ g_type_ensure (GTK_SOURCE_TYPE_GUTTER_RENDERER_PIXBUF);
+ g_type_ensure (GTK_SOURCE_TYPE_MAP);
+ g_type_ensure (GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_BUTTON);
+ g_type_ensure (GTK_SOURCE_TYPE_STYLE_SCHEME_CHOOSER_WIDGET);
+ g_type_ensure (GTK_SOURCE_TYPE_VIEW);
+
done = TRUE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]