From 002a7deddd287084acd55689348c6e97566933ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 27 May 2022 19:36:17 +0200 Subject: [PATCH] input-device: Clean up object property setup Use the more common PROP_0 approach and make the strings static. Part-of: --- src/backends/meta-input-device.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/backends/meta-input-device.c b/src/backends/meta-input-device.c index 24f6ef9ae..55870c438 100644 --- a/src/backends/meta-input-device.c +++ b/src/backends/meta-input-device.c @@ -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); }