summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2022-12-22 17:20:58 -0800
committerChristian Hergert <chergert@redhat.com>2023-01-10 14:16:28 -0800
commitf792361f54e67d4ab8d8ccab8a03bca9f0d2a874 (patch)
treef65dd08c17b88638183075774161d07b3adfb5a9
parenta7a916b57e07c5179d6928d55765f49ae675ebca (diff)
downloadgtksourceview-f792361f54e67d4ab8d8ccab8a03bca9f0d2a874.tar.gz
docs: add note about library initialization
-rw-r--r--docs/overview.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/overview.md b/docs/overview.md
index 63dec535..4728afdc 100644
--- a/docs/overview.md
+++ b/docs/overview.md
@@ -22,3 +22,11 @@ can for example use the following command:
```
$ gcc hello.c `pkg-config --cflags --libs gtksourceview-5` -o hello
```
+
+## Library Initialization
+
+Your application *MUST* initialize GtkSourceView from `main()`.
+Call `gtk_source_init()` or it's variant within your programming language.
+A great place to do this is right after calling `gtk_init()`.
+
+In language bindings, this function is often named similar to `GtkSource.init()`.