input-device: Clean up object property setup

Use the more common PROP_0 approach and make the strings static.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2718>
This commit is contained in:
Jonas Ådahl 2022-05-27 19:36:17 +02:00 committed by Marge Bot
parent 7aa56499ff
commit 002a7deddd

View File

@ -36,7 +36,10 @@ struct _MetaInputDevicePrivate
enum
{
PROP_WACOM_DEVICE = 1,
PROP_0,
PROP_WACOM_DEVICE,
N_PROPS
};
@ -120,7 +123,8 @@ meta_input_device_class_init (MetaInputDeviceClass *klass)
g_param_spec_pointer ("wacom-device",
"Wacom device",
"Wacom device",
G_PARAM_READABLE);
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS);
g_object_class_install_properties (object_class, N_PROPS, props);
}