docs: Fix up syntax

There's no [type_func@...[ syntax, it is all [func@...].
This commit is contained in:
Matthias Clasen 2021-05-22 20:41:05 -04:00
parent 40f292cb13
commit 8bcc6b1d96
7 changed files with 10 additions and 10 deletions

View File

@ -380,7 +380,7 @@ the question you have, this list is a good place to start.
}
in a CSS file, loading it with [method@Gtk.CssProvider.load_from_file], and
adding the provider with [type_func@Gtk.StyleContext.add_provider_for_display].
adding the provider with [func@Gtk.StyleContext.add_provider_for_display].
To associate this style information with your widget, set a style class
on the widget using [method@Gtk.Widget.add_css_class]. The advantage
of this approach is that users can then override the font you have chosen.

View File

@ -62,7 +62,7 @@
* [method@Gtk.CssProvider.load_from_file] or
* [method@Gtk.CssProvider.load_from_resource]
* and adding the provider with [method@Gtk.StyleContext.add_provider] or
* [type_func@Gtk.StyleContext.add_provider_for_display].
* [func@Gtk.StyleContext.add_provider_for_display].
* In addition, certain files will be read when GTK is initialized.
* First, the file `$XDG_CONFIG_HOME/gtk-4.0/gtk.css` is loaded if it

View File

@ -1642,7 +1642,7 @@ gtk_icon_theme_add_resource_path (GtkIconTheme *self,
* overriding system configuration.
*
* This function cannot be called on the icon theme objects returned
* from [type_func@Gtk.IconTheme.get_for_display].
* from [func@Gtk.IconTheme.get_for_display].
*/
void
gtk_icon_theme_set_theme_name (GtkIconTheme *self,

View File

@ -720,7 +720,7 @@ build_recent_items_list (GtkRecentManager *manager)
* signal each time something inside the list changes.
*
* `GtkRecentManager` objects are expensive: be sure to create them
* only when needed. You should use [type_func@Gtk.RecentManager.get_default]
* only when needed. You should use [func@Gtk.RecentManager.get_default]
* instead.
*
* Returns: A newly created `GtkRecentManager` object

View File

@ -89,7 +89,7 @@
* configuration facility.
*
* There is one `GtkSettings` instance per display. It can be obtained with
* [type_func@GtkSettings.get_for_display], but in many cases, it is more
* [func@Gtk.Settings.get_for_display], but in many cases, it is more
* convenient to use [method@Gtk.Widget.get_settings].
*/
@ -1333,7 +1333,7 @@ gtk_settings_get_for_display (GdkDisplay *display)
* Gets the `GtkSettings` object for the default display, creating
* it if necessary.
*
* See [type_func@Gtk.Settings.get_for_display].
* See [func@Gtk.Settings.get_for_display].
*
* Returns: (nullable) (transfer none): a `GtkSettings` object. If there is
* no default display, then returns %NULL.

View File

@ -56,7 +56,7 @@
* queries information from all attached `GtkStyleProviders`. Style
* providers can be either attached explicitly to the context through
* [method@Gtk.StyleContext.add_provider], or to the display through
* [type_func@Gtk.StyleContext.add_provider_for_display]. The resulting
* [func@Gtk.StyleContext.add_provider_for_display]. The resulting
* style is a combination of all providers information in priority order.
*
* For GTK widgets, any `GtkStyleContext` returned by
@ -354,11 +354,11 @@ gtk_style_context_new_for_node (GtkCssNode *node)
* Note that a style provider added by this function only affects
* the style of the widget to which @context belongs. If you want
* to affect the style of all widgets, use
* [type_func@Gtk.StyleContext.add_provider_for_display].
* [func@Gtk.StyleContext.add_provider_for_display].
*
* Note: If both priorities are the same, a `GtkStyleProvider`
* added through this function takes precedence over another added
* through [type_func@Gtk.StyleContext.add_provider_for_display].
* through [func@Gtk.StyleContext.add_provider_for_display].
*/
void
gtk_style_context_add_provider (GtkStyleContext *context,

View File

@ -29,7 +29,7 @@
* `GtkStyleContext`.
*
* See [method@Gtk.StyleContext.add_provider] and
* [type_func@Gtk.StyleContext.add_provider_for_display] for
* [func@Gtk.StyleContext.add_provider_for_display] for
* adding `GtkStyleProviders`.
*
* GTK uses the `GtkStyleProvider` implementation for CSS in