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:
parent
7aa56499ff
commit
002a7deddd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user