Commit graph

69 commits

Author SHA1 Message Date
Bastien Nocera
61e00d0172 mouse: Don't allow two-finger and edge scrolling at the same time
As done when changing the setting manually.

https://bugzilla.gnome.org/show_bug.cgi?id=761461
2016-07-27 17:40:30 +02:00
Bastien Nocera
f01277fb48 mouse: Offer a separate option for edge scrolling
When a touchpad supports it. When the option is set, it will
automatically disable two-finger scrolling.

The scrolling method used by each individual touchpad is implemented in
mutter, not here.

https://bugzilla.gnome.org/show_bug.cgi?id=761461
2016-07-27 17:40:30 +02:00
Timm Bäder
9a43229ec2 mouse panel: Remove superfluous GtkListBoxRow
The GtkBox>GtkListBoxRow>GtkListBox hierarchy is unnecessary, also
remove the GtkSeparator from the GtkListBox and move it into the GtkBox,
so the width matches that of the GtkListBox (it missed 2px on either
side before).

https://bugzilla.gnome.org/show_bug.cgi?id=764503
2016-04-06 10:56:05 +02:00
Rui Matos
a7da5a2727 mouse: Detect and warn if we're running on the synaptics driver
Since we don't support the synaptics driver anymore we shouldn't show
the touchpad section in that case. In addition, emit a warning so that
this system mis-configuration is easier to diagnose.

https://bugzilla.gnome.org/show_bug.cgi?id=764257
2016-04-05 21:04:57 +02:00
Rui Matos
0bc4b21bb2 mouse: Consolidate touchpad section visibility code
Do it all in a single place. No functional changes.

https://bugzilla.gnome.org/show_bug.cgi?id=764257
2016-04-05 21:04:57 +02:00
Rui Matos
8f7e99a034 mouse: Rename touchpad capabilities check API
It's not about synaptics anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=764257
2016-04-05 21:04:57 +02:00
Felipe Borges
1ea4452b0a mouse: fix panel labels alignment
Also removed shadow_type duplicates on GtkFrames UI file.

https://bugzilla.gnome.org/show_bug.cgi?id=761762
2016-02-10 11:10:08 +01:00
Felipe Borges
07c6c4d3f7 mouse: Remove the two-finger scroll switch
The two-finger scroll method will be enabled in all cases
(see bgo#759304). When a touchpad without two-finger scrolling
support but with edge scrolling support is available, show the
switch.

Also bump the required gsettings-desktop-schemas version for
the new key.

https://bugzilla.gnome.org/show_bug.cgi?id=759307
2015-12-15 14:48:05 +01:00
Bastien Nocera
752ed5c443 mouse: Make touchpad settings unsensitive when disabled
Rather than hiding all the settings.

https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-11-02 16:06:27 +01:00
Bastien Nocera
f945dabbe8 mouse: Style fixes
Fix grammar and coding style in a couple of places.
2015-11-02 16:06:27 +01:00
Bastien Nocera
3d95415965 mouse: Remove default value marks on scales
They weren't that helpful.

https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-10-28 13:35:18 +01:00
Bastien Nocera
1a76afe8ad mouse: Use GtkGesture to handle secondary button
Instead of hacking the release signal.

https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-10-28 13:26:24 +01:00
Bastien Nocera
1d952001f5 mouse: Change UI when mouse handedness when setting changes
This simplifies the way that we keep the settings and the UI in sync.

https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-10-28 13:01:18 +01:00
Felipe Borges
40b769bd08 mouse: make the scale cursors point to the bottom to match the mockups
https://wiki.gnome.org/Design/SystemSettings/Mouse#Tentative_Design

https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-10-27 16:27:43 +01:00
Felipe Borges
beb8e9a945 mouse: handle better the visibility of scroll-method entries
Fixes the situation where you unplug a touchpad device which
supports two-finger-scrolling and plug in another one with
edge-scrolling only, we would have two switches. These entries
are mutually exclusive.

https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-10-27 16:27:43 +01:00
Felipe Borges
ad1c44fbad mouse: align the speed sliders in the same size group
https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-10-27 16:27:43 +01:00
Felipe Borges
c1318c634f mouse: decouple Natural Scrolling for mice and touchpads
Now each kind of device has its own entry.

https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-10-27 16:27:42 +01:00
Felipe Borges
1896fafef6 mouse: port panel to the new design
https://wiki.gnome.org/Design/SystemSettings/Mouse

https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-10-23 14:16:09 +02:00
Felipe Borges
5cd231fd59 mouse: decouple the scroll-methods detection code from the UI file
https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-10-22 13:57:08 +02:00
Ondrej Holy
f290d71e9a mouse: Adapt to changes in gsd-input-helper
Redundant code can be removed from mouse panel thanks to changes
in gsd-input-helper.

https://bugzilla.gnome.org/show_bug.cgi?id=749818
2015-07-02 15:51:04 +02:00
Ondrej Holy
b1f3f3e458 mouse: Fix tap-to-click toggle sensitivity with libinput
Set tap_to_click_toggle sensitive if there is any device which supports
tapping.

https://bugzilla.gnome.org/show_bug.cgi?id=745601
2015-04-15 15:33:44 +02:00
Ondrej Holy
155d440623 mouse: Fix sensitivity of two-finger toggle with libinput
Check "libinput Scroll Methods Available" and set two_finger_scroll_toggle
sensitivity appropriately. Many libinput devices don't have edge scroll,
see http://who-t.blogspot.cz/2015/03/why-libinput-doesnt-support-edge.html
Allow changing scroll methods only if both two-finger and edge scroll is
supported.

https://bugzilla.gnome.org/show_bug.cgi?id=745601
2015-04-15 15:18:54 +02:00
Ondrej Holy
2f84534388 mouse: Fix checking capabilities for multiple devices
Two finger scroll toggle should be sensitive if at least one of the
devices support it. g-s-d is responsible to set edge-scroll for the
devices which don't support double touch.

https://bugzilla.gnome.org/show_bug.cgi?id=745601
2015-04-15 15:18:54 +02:00
Rui Matos
0ae0f4abe4 mouse: Use GsdDeviceManager to check for device type presence
This allows us to work on non-X11 backends.

https://bugzilla.gnome.org/show_bug.cgi?id=743266
2015-01-21 14:26:00 +01:00
Rui Matos
d341f77756 mouse: Check synaptics capabilities only on X11
On other backends we don't have a way to check for synaptics
capabilities so we just show all the touchpad knobs there.

https://bugzilla.gnome.org/show_bug.cgi?id=743266
2015-01-21 14:26:00 +01:00
Rui Matos
f5eb204741 mouse: Switch to new peripherals settings schema
Most peripherals settings have been moved to
gsettings-desktop-schemas.

There are some semantic differences:

* pointer and touchpad speed is now a single value in the [-1..1]
  range (from "unaccelerated" to "fast"). A value of 0 is the default;

* touchpad enabled is now an enum which can be enabled, disabled or
  disabled-on-external-mouse. This patch keeps the same UI so the last
  value is the same as disabled in the UI and can't be set for now;

* disable while typing is now always enabled so the checkbox has been
  removed;

* horizontal scrolling is always enabled when two finger scroll is
  disabled. It wasn't in the UI but we no longer need to set it since
  it doesn't exist anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=743194
2015-01-20 15:02:06 +01:00
Ondrej Holy
2640a9dfd7 mouse: avoid using deprecated GtkAlignment and GtkMisc
https://bugzilla.gnome.org/show_bug.cgi?id=736013
2014-10-31 08:53:25 +01:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Rui Matos
98ec15a5d5 mouse: Remove unused toplevel windows from .ui files
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:02 +02:00
Ondrej Holy
da911dce3c mouse: remove unnecessary acceleration value setting
The acceleration value is set twice, because binding already exists.

https://bugzilla.gnome.org/show_bug.cgi?id=708241
2013-09-27 16:09:11 +02:00
Ondrej Holy
1fc4a0c6b6 mouse: do not reset mouse speed when unset
https://bugzilla.gnome.org/show_bug.cgi?id=708241
2013-09-27 16:08:41 +02:00
Srinivasa Ragavan
e0fb22e384 Fix the build break due to the last cherrypicking. 2013-07-10 19:06:34 +05:30
Srinivasa Ragavan
d855a80bf6 mouse: show enable trackpad slider button even if mouse is not present.
On touchscreen machine, if the trackpad was previously disabled using mouse
which isn't present now, there is no way to enable it. It now shows the slider
when trackpad is disable or if mouse/touchscreen is present.

Fixes bug #703946
2013-07-10 18:51:44 +05:30
Ondrej Holy
af812426de mouse: Mouse preferences as a proper widget
https://bugzilla.gnome.org/show_bug.cgi?id=695902
2013-05-24 15:12:22 +02:00
Ondrej Holy
59467033f1 mouse: Restore mouse and touchpad pointer speed
https://bugzilla.gnome.org/show_bug.cgi?id=699015
2013-05-02 16:28:51 +02:00
Ondrej Holy
81e210d0dc mouse: Enable horizontal scrolling when changing scroll method
https://bugzilla.gnome.org/show_bug.cgi?id=687509
2013-04-04 14:55:55 +02:00
Ondrej Holy
5b2818c482 mouse: Don't show touchpad disable button when there isn't mouse
https://bugzilla.gnome.org/show_bug.cgi?id=685583
2012-10-11 17:17:31 +02:00
Ondrej Holy
3e5cdb6fce mouse: Switch left/right radios according text direction.
https://bugzilla.gnome.org/show_bug.cgi?id=669961
2012-08-28 12:05:51 +01:00
Ondrej Holy
278c89fdce mouse: Show mouse section only if mouse is present
https://bugzilla.gnome.org/show_bug.cgi?id=677206
2012-08-20 19:21:00 +01:00
Ondrej Holy
7929e550f1 mouse: Add natural scroll toggle
https://bugzilla.gnome.org/show_bug.cgi?id=677206
2012-08-20 19:21:00 +01:00
Ondrej Holy
9f76e89661 mouse: Sensitivity and acceleration sliders merge
https://bugzilla.gnome.org/show_bug.cgi?id=677206
2012-08-20 19:20:59 +01:00
Ondrej Holy
a6262b0ad4 mouse: Reorganize widgets according to mockup
https://bugzilla.gnome.org/show_bug.cgi?id=677206
2012-08-20 19:20:59 +01:00
Bastien Nocera
6baadbf827 mouse: Remove dead code 2012-08-18 18:11:31 +01:00
Peter Hutterer
3964582635 mouse: Don't enable two-finger scrolling based on width
Reverts part of 109b369199

Good idea in principle, albeit the hardware gets in our way. In
synaptics 1.4 two-finger emulation was enabled by default on devices
that reported finger width but had to since revert this. The hardware
doesn't really separate width and pressure, so a hard tap off a finger
gives a high width, a wide finger gives a high pressure on light
touches. We got spurious right-click presses when two-finger
emulation was enabled.

Now we have the control-center providing a checkbox for two-finger
emulation but it doesn't enable emulation, which to the users appears as if
two-finger scrolling is broken
(https://bugzilla.redhat.com/show_bug.cgi?id=738123).

We now disable the checkbox again for hardware that doesn't do two-fingers.
it's not reliable and we're likely to see further bugs when the spurious right
clicks take effect

https://bugzilla.gnome.org/show_bug.cgi?id=661963
2012-03-13 19:12:47 +01:00
Bastien Nocera
c34734dd87 mouse: Don't reset scrolling method on start
Or tap-to-click for that matter, if the device present does
not support it.

https://bugzilla.gnome.org/show_bug.cgi?id=642474
2011-03-20 16:59:21 +00:00
Bastien Nocera
6946159d84 mouse: Check caps of the touchpad when added 2011-03-18 15:46:56 +00:00
Bastien Nocera
2fd11caaaf mouse: Don't forget to set the variables we use
Otherwise we can't disconnect very much...
2011-03-18 15:29:15 +00:00
Bastien Nocera
5b259bfe56 mouse: Make touchpad tab appear when connected
On-the-fly!
2011-03-16 13:48:08 +00:00
Bastien Nocera
30fdeafef5 mouse: Remove unused "start_page" code 2011-03-16 13:41:00 +00:00
Bastien Nocera
4c2fcca2f6 mouse: Implement dispose for the widget 2011-03-16 13:41:00 +00:00