[gtksourceview/wip/chergert/gsv-gtk4: 74/175] 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: 74/175] init: register core types during gtk_source_init()
- Date: Thu, 25 Jun 2020 19:49:29 +0000 (UTC)
commit c00698cf57f3d7df25bda97a48aa71cd0338d4d3
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]