From f94de01a85543c5a50be2172529ced500e6c3c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sun, 9 Mar 2025 14:55:37 +0100 Subject: [PATCH] vibra-periodic: Modernize doc comment and property definitions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also untabify. No functional change. Gpb-Dch: Ignore Signed-off-by: Guido Günther --- src/fbd-feedback-vibra-periodic.c | 47 +++++++++++++------------------ 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/src/fbd-feedback-vibra-periodic.c b/src/fbd-feedback-vibra-periodic.c index bb7c69f..d89138e 100644 --- a/src/fbd-feedback-vibra-periodic.c +++ b/src/fbd-feedback-vibra-periodic.c @@ -11,10 +11,12 @@ #include "fbd-feedback-vibra-periodic.h" #include "fbd-feedback-manager.h" +#include + /** - * SECTION:fbd-feedback-vibra-periodic - * @short_description: Describes a periodic feedback via a haptic motor - * @Title: FbdFeedbackVibraPeriodic + * FbdFeedbackVibraPeriodic: + * + * Describes a periodic feedback via a haptic motor * * The #FbdVibraVibraPeriodic describes the properties of a haptic feedback * event. It knows nothing about the hardware itself but calls @@ -44,9 +46,9 @@ G_DEFINE_TYPE (FbdFeedbackVibraPeriodic, fbd_feedback_vibra_periodic, FBD_TYPE_F static void fbd_feedback_vibra_periodic_set_property (GObject *object, - guint property_id, - const GValue *value, - GParamSpec *pspec) + guint property_id, + const GValue *value, + GParamSpec *pspec) { FbdFeedbackVibraPeriodic *self = FBD_FEEDBACK_VIBRA_PERIODIC (object); @@ -68,9 +70,9 @@ fbd_feedback_vibra_periodic_set_property (GObject *object, static void fbd_feedback_vibra_periodic_get_property (GObject *object, - guint property_id, - GValue *value, - GParamSpec *pspec) + guint property_id, + GValue *value, + GParamSpec *pspec) { FbdFeedbackVibraPeriodic *self = FBD_FEEDBACK_VIBRA_PERIODIC (object); @@ -145,28 +147,19 @@ fbd_feedback_vibra_periodic_class_init (FbdFeedbackVibraPeriodicClass *klass) vibra_class->end_vibra = fbd_feedback_vibra_periodic_end_vibra; props[PROP_MAGNITUDE] = - g_param_spec_uint ( - "magnitude", - "Magnitude", - "total magnitude", - 0, MAX_MAGNITUDE, 0x7FFF, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + g_param_spec_uint ("magnitude", "", "", + 0, MAX_MAGNITUDE, 0x7FFF, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); props[PROP_FADE_IN_TIME] = - g_param_spec_uint ( - "fade-in-time", - "Fade in time", - "Fade in time until full strength", - 0, G_MAXINT, 0, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + g_param_spec_uint ("fade-in-time", "", "", + 0, G_MAXINT, 0, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); props[PROP_FADE_IN_LEVEL] = - g_param_spec_uint ( - "fade-in-level", - "Fade in level", - "Fade in start level", - 0, MAX_MAGNITUDE, 0x7FFF, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + g_param_spec_uint ("fade-in-level", "", "", + 0, MAX_MAGNITUDE, 0x7FFF, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (object_class, PROP_LAST_PROP, props); }