Skip to content

Commit

Permalink
mouse: feature pointer size control
Browse files Browse the repository at this point in the history
  • Loading branch information
monnerat committed Sep 1, 2022
1 parent 66a4793 commit bd22a1c
Show file tree
Hide file tree
Showing 3 changed files with 339 additions and 18 deletions.
10 changes: 10 additions & 0 deletions capplets/mouse/mate-mouse-properties.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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);
}

Expand Down
Loading

0 comments on commit bd22a1c

Please sign in to comment.