docs: Some updates
authorMatthias Clasen <mclasen@redhat.com>
Fri, 24 Mar 2023 12:56:06 +0000 (08:56 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Apr 2023 06:36:54 +0000 (08:36 +0200)
Fix some links ot point to docs.gtk.org.

docs/reference/gtk/question_index.md

index 44a65f8800a3090aa01332a7476acd72e4f049a9..83556137804f67b18e088c417224f39d94f090ac 100644 (file)
@@ -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?