diff options
author | Christian Hergert <chergert@redhat.com> | 2022-12-22 17:20:58 -0800 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2023-01-10 14:16:28 -0800 |
commit | f792361f54e67d4ab8d8ccab8a03bca9f0d2a874 (patch) | |
tree | f65dd08c17b88638183075774161d07b3adfb5a9 | |
parent | a7a916b57e07c5179d6928d55765f49ae675ebca (diff) | |
download | gtksourceview-f792361f54e67d4ab8d8ccab8a03bca9f0d2a874.tar.gz |
docs: add note about library initialization
-rw-r--r-- | docs/overview.md | 8 |
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()`. |