summaryrefslogtreecommitdiff
path: root/docs/reference/gdk
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2022-02-12 17:03:22 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2022-02-12 17:28:00 +0000
commit7a608bda27156ae992074e5685baa8036a1b4303 (patch)
treed1ea7dd6e2b5705de127975ef1cc761d60de2a14 /docs/reference/gdk
parentc400dce0b1c85b60e5d6bc19ac9a443e5f707b60 (diff)
downloadgtk+-7a608bda27156ae992074e5685baa8036a1b4303.tar.gz
docs: Split dependencies from related libraries
We currently list everything as a dependencies, regardless of whether it actually is; this is a source of confusion for users that read the GTK documentation. Gi-docgen has a new "related" key in the project configuration which allows us to list libraries that are merely related to the namespace we are documenting; the "dependencies" key is used to document the actual namespace dependencies, now.
Diffstat (limited to 'docs/reference/gdk')
-rw-r--r--docs/reference/gdk/gdk4-wayland.toml.in11
-rw-r--r--docs/reference/gdk/gdk4-x11.toml.in10
-rw-r--r--docs/reference/gdk/gdk4.toml.in18
3 files changed, 26 insertions, 13 deletions
diff --git a/docs/reference/gdk/gdk4-wayland.toml.in b/docs/reference/gdk/gdk4-wayland.toml.in
index 2edf3c1a88..34ef93490f 100644
--- a/docs/reference/gdk/gdk4-wayland.toml.in
+++ b/docs/reference/gdk/gdk4-wayland.toml.in
@@ -7,13 +7,14 @@ authors = "GTK Development Team"
logo_url = "gtk-logo.svg"
license = "GPL-2.1-or-later"
description = "The GTK toolkit"
-dependencies = [ "GObject-2.0" ]
devhelp = true
- [dependencies."GObject-2.0"]
- name = "GObject"
- description = "The base type system library"
- docs_url = "https://docs.gtk.org/gobject/"
+dependencies = ["Gdk-4.0"]
+
+ [dependencies."Gdk-4.0"]
+ name = "GDK"
+ description = "The GTK drawing kit"
+ docs_url = "https://docs.gtk.org/gdk/"
[theme]
name = "basic"
diff --git a/docs/reference/gdk/gdk4-x11.toml.in b/docs/reference/gdk/gdk4-x11.toml.in
index 2edf3c1a88..726725037c 100644
--- a/docs/reference/gdk/gdk4-x11.toml.in
+++ b/docs/reference/gdk/gdk4-x11.toml.in
@@ -7,13 +7,13 @@ authors = "GTK Development Team"
logo_url = "gtk-logo.svg"
license = "GPL-2.1-or-later"
description = "The GTK toolkit"
-dependencies = [ "GObject-2.0" ]
+dependencies = ["Gdk-4.0"]
devhelp = true
- [dependencies."GObject-2.0"]
- name = "GObject"
- description = "The base type system library"
- docs_url = "https://docs.gtk.org/gobject/"
+ [dependencies."Gdk-4.0"]
+ name = "GDK"
+ description = "The GTK drawing kit"
+ docs_url = "https://docs.gtk.org/gdk4/"
[theme]
name = "basic"
diff --git a/docs/reference/gdk/gdk4.toml.in b/docs/reference/gdk/gdk4.toml.in
index bf3b0d8f95..02d9c3e8ef 100644
--- a/docs/reference/gdk/gdk4.toml.in
+++ b/docs/reference/gdk/gdk4.toml.in
@@ -8,7 +8,7 @@ authors = "GTK Development Team"
logo_url = "gtk-logo.svg"
license = "LGPL-2.1-or-later"
description = "The GTK toolkit"
-dependencies = [ "GObject-2.0", "cairo-1.0", "Pango-1.0", "GdkWayland-4.0", "GdkX11-4.0" ]
+dependencies = ["GObject-2.0", "Gio-2.0", "cairo-1.0", "Pango-1.0", "GdkPixbuf-2.0"]
devhelp = true
search_index = true
@@ -17,6 +17,11 @@ search_index = true
description = "The base type system library"
docs_url = "https://docs.gtk.org/gobject/"
+ [dependencies."Gio-2.0"]
+ name = "GIO"
+ description = "GObject Interfaces and Objects, Networking, IPC, and I/O"
+ docs_url = "https://docs.gtk.org/gio/"
+
[dependencies."cairo-1.0"]
name = "Cairo"
description = "A 2D graphics library with support for multiple output devices"
@@ -27,12 +32,19 @@ search_index = true
description = "Text shaping and rendering"
docs_url = "https://docs.gtk.org/Pango/"
- [dependencies."GdkWayland-4.0"]
+ [dependencies."GdkPixbuf-2.0"]
+ name = "GdkPixbuf"
+ description = "Image data loading"
+ docs_url = "https://docs.gtk.org/gdk-pixbuf/"
+
+related = ["GdkWayland-4.0", "GdkX11-4.0"]
+
+ [related."GdkWayland-4.0"]
name = "GdkWayland"
description = "GDK Wayland Backend"
docs_url = "https://docs.gtk.org/gdk4-wayland/"
- [dependencies."GdkX11-4.0"]
+ [related."GdkX11-4.0"]
name = "GdkX11"
description = "GDK X11 Backend"
docs_url = "https://docs.gtk.org/gdk4-x11/"