summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2022-05-27 19:36:17 +0200
committerMarge Bot <marge-bot@gnome.org>2022-12-17 13:52:51 +0000
commit002a7deddd287084acd55689348c6e97566933ee (patch)
tree8486cfd6d0b23e334e54fdfebddfbef3466878c3
parent7aa56499ff2545b019edad3081e3aa751cd80e11 (diff)
downloadmutter-002a7deddd287084acd55689348c6e97566933ee.tar.gz
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>
-rw-r--r--src/backends/meta-input-device.c8
1 files 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);
}