[almanah/wip/jtojnar/gtksourceview-4] build: Switch to GtkSourceView 4
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [almanah/wip/jtojnar/gtksourceview-4] build: Switch to GtkSourceView 4
- Date: Mon, 15 Aug 2022 11:55:31 +0000 (UTC)
commit 0ba7f05cba7feaf2ae2c220596aead5dfc676675
Author: Jan Tojnar <jtojnar gmail com>
Date: Mon Aug 15 13:36:44 2022 +0200
build: Switch to GtkSourceView 4
No API changes that affect us, other than the need to call init/finalize:
https://gnome.pages.gitlab.gnome.org/gtksourceview/gtksourceview5/porting-guide-3-to-4.html
meson.build | 2 +-
src/main.c | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 813e67b..9c4f155 100644
--- a/meson.build
+++ b/meson.build
@@ -31,7 +31,7 @@ gtk = dependency('gtk+-3.0', version: '>= 3.15')
gmodule = dependency('gmodule-2.0')
gthread = dependency('gthread-2.0')
gio = dependency('gio-2.0', version: '>= 2.32')
-gtksourceview = dependency('gtksourceview-3.0')
+gtksourceview = dependency('gtksourceview-4')
sqlite = dependency('sqlite3')
cairo = dependency('cairo')
atk = dependency('atk')
diff --git a/src/main.c b/src/main.c
index c7065e0..eb07a0c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -33,9 +33,13 @@ main (int argc, char *argv[])
g_thread_init (NULL);
#endif
+ gtk_source_init ();
+
application = almanah_application_new ();
status = g_application_run (G_APPLICATION (application), argc, argv);
g_object_unref (application);
+ gtk_source_finalize ();
+
return status;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]