[gtksourceview/wip/chergert/gsv-gtk4: 90/189] 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: 90/189] init: register core types during gtk_source_init()
- Date: Mon, 22 Jun 2020 21:53:33 +0000 (UTC)
commit d196306d3e5a3119fc6aa4038205985b8d68be00
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 d13e5918..d74500dd 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]