summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-03-24 08:56:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2023-03-24 08:56:06 -0400
commitce983c9495f50026f4aca3b603c540b494bf6c8b (patch)
tree31ef8df36a4ff7e4fdfde8c4088ad1bdd53b1ba4 /docs
parent91b19854c4e507a05c20bbe7010305e8ad5d74de (diff)
downloadgtk+-ce983c9495f50026f4aca3b603c540b494bf6c8b.tar.gz
docs: Some updates
Fix some links ot point to docs.gtk.org.
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gtk/question_index.md13
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/reference/gtk/question_index.md b/docs/reference/gtk/question_index.md
index 44a65f8800..8355613780 100644
--- a/docs/reference/gtk/question_index.md
+++ b/docs/reference/gtk/question_index.md
@@ -263,10 +263,13 @@ the question you have, this list is a good place to start.
* How do I load an image or animation from a file?
To load an image file straight into a display widget, use
- [ctor@Gtk.Picture.new_for_file] or [ctor@GTk.Picture.new_for_filename].
+ [ctor@Gtk.Picture.new_for_file] or [ctor@Gtk.Picture.new_for_filename].
To load an image for another purpose, use [ctor@Gdk.Texture.new_from_file].
To load a video from a file, use [ctor@Gtk.MediaFile.new_for_file].
+ Note that [class@Gtk.Image] is meant for fixed-size icons. For arbitrary
+ image files, you should use [class@Gtk.Picture].
+
* How do I draw text?
If you just want to put text into your user interface somewhere, it is
@@ -283,8 +286,8 @@ the question you have, this list is a good place to start.
pango_font_description_free (fontdesc);
g_object_unref (layout);
- See also the [Cairo Rendering](https://developer.gnome.org/pango/stable/pango-Cairo-Rendering.html)
- section of the [Pango documentation](https://developer.gnome.org/pango/stable/).
+ See also the [Cairo Rendering](https://docs.gtk.org/PangoCairo/pango_cairo.html)
+ section of the [Pango documentation](https://docs.gtk.org/Pango/).
To draw a piece of text in a widget [vfunc@Gtk.Widget.snapshot] implementation,
use [method@Gtk.Snapshot.append_layout].
@@ -301,8 +304,8 @@ the question you have, this list is a good place to start.
pango_font_description_free (fontdesc);
g_object_unref (layout);
- See also the [Layout Objects](https://developer.gnome.org/pango/stable/pango-Layout-Objects.html)
- section of the [Pango documentation](https://developer.gnome.org/pango/stable/).
+ See also the [Layout Objects](https://docs.gtk.org/Pango/class.Layout.html)
+ section of the [Pango documentation](https://docs.gtk.org/Pango/).
* Why are types not registered if I use their `GTK_TYPE_BLAH` macro?