From d6e0cf988493087220aeee3d0b6a62725767116b Mon Sep 17 00:00:00 2001 From: gwillems Date: Tue, 21 May 2024 22:32:20 +0000 Subject: [PATCH] gobject: fix broken links to parameters and signals naming rules --- gobject/gobject.c | 2 +- gobject/gparam.c | 10 +++++----- gobject/gsignal.c | 5 ++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/gobject/gobject.c b/gobject/gobject.c index aeef71064..5a5b1cdc1 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -1020,7 +1020,7 @@ g_object_do_class_init (GObjectClass *class) * ]| * * It is important to note that you must use - * [canonical parameter names][canonical-parameter-names] as + * [canonical parameter names][class@GObject.ParamSpec#parameter-names] as * detail strings for the notify signal. */ gobject_signals[NOTIFY] = diff --git a/gobject/gparam.c b/gobject/gparam.c index be6de411a..7ad8e76ae 100644 --- a/gobject/gparam.c +++ b/gobject/gparam.c @@ -389,8 +389,8 @@ is_canonical (const gchar *key) * dynamically-generated properties which need to be validated at run-time * before actually trying to create them. * - * See [canonical parameter names][canonical-parameter-names] for details of - * the rules for valid names. + * See [canonical parameter names][class@GObject.ParamSpec#parameter-names] + * for details of the rules for valid names. * * Returns: %TRUE if @name is a valid property name, %FALSE otherwise. * Since: 2.66 @@ -429,9 +429,9 @@ g_param_spec_is_valid_name (const gchar *name) * * Creates a new #GParamSpec instance. * - * See [canonical parameter names][canonical-parameter-names] for details of - * the rules for @name. Names which violate these rules lead to undefined - * behaviour. + * See [canonical parameter names][class@GObject.ParamSpec#parameter-names] + * for details of the rules for @name. Names which violate these rules lead + * to undefined behaviour. * * Beyond the name, #GParamSpecs have two more descriptive strings, the * @nick and @blurb, which may be used as a localized label and description. diff --git a/gobject/gsignal.c b/gobject/gsignal.c index a5b471cb3..d4a1bb996 100644 --- a/gobject/gsignal.c +++ b/gobject/gsignal.c @@ -283,9 +283,8 @@ is_canonical (const gchar *key) * Validate a signal name. This can be useful for dynamically-generated signals * which need to be validated at run-time before actually trying to create them. * - * See [canonical parameter names][canonical-parameter-names] for details of - * the rules for valid names. The rules for signal names are the same as those - * for property names. + * See [func@GObject.signal_new] for details of the rules for valid names. + * The rules for signal names are the same as those for property names. * * Returns: %TRUE if @name is a valid signal name, %FALSE otherwise. * Since: 2.66