From a95b081d6c39974ca3954714661e5b20827ba840 Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Fri, 15 Mar 2024 15:14:53 +0900 Subject: [PATCH] ctl: optimize to gi-docgen 2023.3 The version of gi-docgen applies the restrict rule for the version expression. In the rule, the dot following to the number causes failure. This commit fixes the failure. Signed-off-by: Takashi Sakamoto --- src/ctl/elem-info-common.c | 10 +++++----- src/ctl/elem-info-enumerated.c | 2 +- src/ctl/elem-info-integer.c | 6 +++--- src/ctl/elem-info-integer64.c | 6 +++--- src/ctl/elem-info-single-array.c | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/ctl/elem-info-common.c b/src/ctl/elem-info-common.c index 4ac6b0b..4fcd195 100644 --- a/src/ctl/elem-info-common.c +++ b/src/ctl/elem-info-common.c @@ -7,7 +7,7 @@ * * A [iface@ElemInfoCommon] should be implemented by any type of element information. * - * Since: 0.3. + * Since: 0.3 */ static void alsactl_elem_info_common_default_init(ALSACtlElemInfoCommonInterface *iface); @@ -21,7 +21,7 @@ static void alsactl_elem_info_common_default_init(ALSACtlElemInfoCommonInterface * * The identifier of element. * - * Since: 0.3. + * Since: 0.3 */ g_object_interface_install_property(iface, g_param_spec_boxed(ELEM_ID_PROP_NAME, ELEM_ID_PROP_NAME, @@ -34,7 +34,7 @@ static void alsactl_elem_info_common_default_init(ALSACtlElemInfoCommonInterface * * The type of element, one of [enum@ElemType]. * - * Since: 0.3. + * Since: 0.3 */ g_object_interface_install_property(iface, g_param_spec_enum(ELEM_TYPE_PROP_NAME, ELEM_TYPE_PROP_NAME, @@ -48,7 +48,7 @@ static void alsactl_elem_info_common_default_init(ALSACtlElemInfoCommonInterface * * The access permission for the element with [flags@ElemAccessFlag]. * - * Since: 0.3. + * Since: 0.3 */ g_object_interface_install_property(iface, g_param_spec_flags(ACCESS_PROP_NAME, ACCESS_PROP_NAME, @@ -62,7 +62,7 @@ static void alsactl_elem_info_common_default_init(ALSACtlElemInfoCommonInterface * * The value of PID for process to own the element. * - * Since: 0.3. + * Since: 0.3 */ g_object_interface_install_property(iface, g_param_spec_int(OWNER_PROP_NAME, OWNER_PROP_NAME, diff --git a/src/ctl/elem-info-enumerated.c b/src/ctl/elem-info-enumerated.c index 052a63c..18cf652 100644 --- a/src/ctl/elem-info-enumerated.c +++ b/src/ctl/elem-info-enumerated.c @@ -91,7 +91,7 @@ static void alsactl_elem_info_enumerated_class_init(ALSACtlElemInfoEnumeratedCla * - The length of label including terminator should be within 64 bytes. * - The total length of labels including terminators should be within (64 * 1024) bytes. * - * Since: 0.3. + * Since: 0.3 */ g_object_class_install_property(gobject_class, ELEM_INFO_ENUMERATED_PROP_LABELS, g_param_spec_boxed("labels", "labels", diff --git a/src/ctl/elem-info-integer.c b/src/ctl/elem-info-integer.c index 21609bd..e01090b 100644 --- a/src/ctl/elem-info-integer.c +++ b/src/ctl/elem-info-integer.c @@ -90,7 +90,7 @@ static void alsactl_elem_info_integer_class_init(ALSACtlElemInfoIntegerClass *kl * * The minimum value of element in value array for the element. * - * Since: 0.3. + * Since: 0.3 */ g_object_class_install_property(gobject_class, ELEM_INFO_INTEGER_PROP_MIN, g_param_spec_int("value-min", "value-min", @@ -103,7 +103,7 @@ static void alsactl_elem_info_integer_class_init(ALSACtlElemInfoIntegerClass *kl * * The maximum value of element in value array for the element. * - * Since: 0.3. + * Since: 0.3 */ g_object_class_install_property(gobject_class, ELEM_INFO_INTEGER_PROP_MAX, g_param_spec_int("value-max", "value-max", @@ -116,7 +116,7 @@ static void alsactl_elem_info_integer_class_init(ALSACtlElemInfoIntegerClass *kl * * The step value of element in value array for the element. * - * Since: 0.3. + * Since: 0.3 */ g_object_class_install_property(gobject_class, ELEM_INFO_INTEGER_PROP_STEP, g_param_spec_int("value-step", "value-step", diff --git a/src/ctl/elem-info-integer64.c b/src/ctl/elem-info-integer64.c index 9224e6f..faba397 100644 --- a/src/ctl/elem-info-integer64.c +++ b/src/ctl/elem-info-integer64.c @@ -90,7 +90,7 @@ static void alsactl_elem_info_integer64_class_init(ALSACtlElemInfoInteger64Class * * The minimum value of element in value array for the element. * - * Since: 0.3. + * Since: 0.3 */ g_object_class_install_property(gobject_class, ELEM_INFO_INTEGER64_PROP_MIN, g_param_spec_int64("value-min", "value-min", @@ -103,7 +103,7 @@ static void alsactl_elem_info_integer64_class_init(ALSACtlElemInfoInteger64Class * * The maximum value of element in value array for the element. * - * Since: 0.3. + * Since: 0.3 */ g_object_class_install_property(gobject_class, ELEM_INFO_INTEGER64_PROP_MAX, g_param_spec_int64("value-max", "value-max", @@ -116,7 +116,7 @@ static void alsactl_elem_info_integer64_class_init(ALSACtlElemInfoInteger64Class * * The step value of element in value array for the element. * - * Since: 0.3. + * Since: 0.3 */ g_object_class_install_property(gobject_class, ELEM_INFO_INTEGER64_PROP_STEP, g_param_spec_int64("value-step", "value-step", diff --git a/src/ctl/elem-info-single-array.c b/src/ctl/elem-info-single-array.c index 37343f4..e1f85ec 100644 --- a/src/ctl/elem-info-single-array.c +++ b/src/ctl/elem-info-single-array.c @@ -8,7 +8,7 @@ * A [iface@ElemInfoSingleArray] should be implemented by the type of information for element * whieh has single value array. * - * Since: 0.3. + * Since: 0.3 */ static void alsactl_elem_info_single_array_default_init(ALSACtlElemInfoSingleArrayInterface *iface); @@ -23,7 +23,7 @@ static void alsactl_elem_info_single_array_default_init(ALSACtlElemInfoSingleArr * * The count of elements in value array of the element. * - * Since: 0.3. + * Since: 0.3 */ g_object_interface_install_property(iface, g_param_spec_uint(VALUE_COUNT_PROP_NAME, VALUE_COUNT_PROP_NAME, -- 2.47.3