feedback-sound: Modernize prop definitions

Gbp-Dch: Ignore
Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
Guido Günther
2025-04-30 10:52:57 +02:00
parent aa23c8f91d
commit 0f031521e7
+14 -7
View File
@@ -143,14 +143,21 @@ fbd_feedback_sound_class_init (FbdFeedbackSoundClass *klass)
base_class->end = fbd_feedback_sound_end;
base_class->is_available = fbd_feedback_sound_is_available;
/**
* FbdFeedbackSound:effect:
*
* The sound effect name
*/
props[PROP_EFFECT] =
g_param_spec_string (
"effect",
"Effect",
"The sound effects name",
"",
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_param_spec_string ("effect", "", "",
NULL,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
/**
* FbdFeedbackSound:file-name:
*
* The file name to use for the sound effect. This overrides the
* effect name.
*/
props[PROP_FILE_NAME] =
g_param_spec_string ("file-name", "", "",
NULL,