mirror of
https://github.com/brl/mutter.git
synced 2024-12-22 19:12:04 +00:00
input-settings: Silence a glib critical
The scroll-wheel-emulation-button key is 'i' in the schema but it also specifies a minimum range of 0 so using get_int() and casting is safe.
This commit is contained in:
parent
8769b3d554
commit
cfb7297cf1
@ -488,7 +488,9 @@ update_trackball_scroll_button (MetaInputSettings *input_settings,
|
||||
|
||||
priv = meta_input_settings_get_instance_private (input_settings);
|
||||
input_settings_class = META_INPUT_SETTINGS_GET_CLASS (input_settings);
|
||||
button = g_settings_get_uint (priv->trackball_settings, "scroll-wheel-emulation-button");
|
||||
/* This key is 'i' in the schema but it also specifies a minimum
|
||||
* range of 0 so the cast here is safe. */
|
||||
button = (guint) g_settings_get_int (priv->trackball_settings, "scroll-wheel-emulation-button");
|
||||
|
||||
if (device && device_is_trackball (device))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user