From bd22a1cebdf9634464385f7f15bfe67932fa8553 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Thu, 1 Sep 2022 13:47:29 +0200 Subject: [PATCH] mouse: feature pointer size control --- capplets/mouse/mate-mouse-properties.c | 10 + capplets/mouse/mate-mouse-properties.ui | 341 ++++++++++++++++++++++-- capplets/mouse/ui-a11y.suppr | 6 + 3 files changed, 339 insertions(+), 18 deletions(-) diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c index d6cea0b43..03395e218 100644 --- a/capplets/mouse/mate-mouse-properties.c +++ b/capplets/mouse/mate-mouse-properties.c @@ -310,6 +310,11 @@ setup_dialog (GtkBuilder *dialog) gtk_combo_box_set_active (GTK_COMBO_BOX (gtk_builder_get_object (dialog, "mouse_accel_profile")), g_settings_get_enum (mouse_settings, "accel-profile")); + /* Pointer size */ + g_settings_bind (mouse_settings, "cursor-size", + gtk_range_get_adjustment (GTK_RANGE (gtk_builder_get_object (dialog, "pointer_size_scale"))), + "value", G_SETTINGS_BIND_DEFAULT); + /* DnD threshold */ g_settings_bind (mouse_settings, "drag-threshold", gtk_range_get_adjustment (GTK_RANGE (gtk_builder_get_object (dialog, "drag_threshold_scale"))), "value", @@ -380,6 +385,11 @@ setup_dialog (GtkBuilder *dialog) gtk_range_get_adjustment (GTK_RANGE (gtk_builder_get_object (dialog, "touchpad_sensitivity_scale"))), "value", G_SETTINGS_BIND_DEFAULT); + /* Pointer size */ + g_settings_bind (mouse_settings, "cursor-size", + gtk_range_get_adjustment (GTK_RANGE (gtk_builder_get_object (dialog, "touchpad_pointer_size_scale"))), + "value", G_SETTINGS_BIND_DEFAULT); + synaptics_check_capabilities (dialog); } diff --git a/capplets/mouse/mate-mouse-properties.ui b/capplets/mouse/mate-mouse-properties.ui index 875ee5010..5d7fafb6b 100644 --- a/capplets/mouse/mate-mouse-properties.ui +++ b/capplets/mouse/mate-mouse-properties.ui @@ -1,5 +1,5 @@ -