Commit graph

56 commits

Author SHA1 Message Date
Felipe Borges
6b3233359c mouse: Set min-content-height on the scrolled window
Set a minimum content height of 490px for the panel when the
allocated height is smaller than 490px.

490 is an estimated value for the panels to properly fit on netbook
screens. See https://wiki.gnome.org/Design/SystemSettings#Notes

This also drops the max-content-height limit for the scrolled window,
as it is no longer necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=771743
2016-10-24 13:30:10 +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
Georges Basile Stavracas Neto
6c677bb0e9 mouse: center horizontally using halign property
The Mouse & Touchpad panel has a horizontally centered
list, which is centered pixel-counting the list width and
hardcoded margins.

This approach has various issues. It resizes the window
needlessly when e.g. the font changes the size, dpi or
family. This is specially visible when dealing with low
resolution screens, where the hardcoded margins are too
much to fit a 720x480 screen with the Large Font accessibility
setting on.

Fix that by removing the margins and setting the horizontal
alignment of the list to center. Since the list itself doesn't
expand to fill the available space, there won't be any user-
visible changes except that the panel is now able to scale
down.

https://bugzilla.gnome.org/show_bug.cgi?id=768529
2016-07-08 12:37:29 -03:00
Georges Basile Stavracas Neto
62f1f6bb23 mouse: set max-content-height on scrolledwindows
Instead of using only hardcoded height requests, it's better
if we give more flexibility for the content to grow up to
a certain amount of pixels.

Also, this patch slightly reduces the maximum size by 20px, so
that in the tested scenario (Adwaita with Large Font settings on)
the panel is still able to size down.

https://bugzilla.gnome.org/show_bug.cgi?id=768529
2016-07-08 12:36:05 -03:00
Felipe Borges
0ac120b782 mouse: allow focus on switches in the Touchpad section
Enables the navigation/focus on the switches in the Touchpad
section.

https://bugzilla.gnome.org/show_bug.cgi?id=766186
2016-05-10 14:25:26 +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
Timm Bäder
645330853b mouse panel: Make all listbox rows unactivatable
Activating them doesn't do anything, so don't make them look like it
does.

https://bugzilla.gnome.org/show_bug.cgi?id=764503
2016-04-06 10:56:05 +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
Yosef Or Boczko
ac4e8fc774 Mouse: Mark two strings as translatable 2015-11-13 14:09:03 +02:00
Felipe Borges
c75fcf0198 mouse: make primary-buttons homogeneous and same size as mockups
https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-11-05 12:50:40 +01:00
Felipe Borges
311c54008e mouse: properly wrap and scale the row description texts
In the designs at https://wiki.gnome.org/Design/SystemSettings/Mouse,
the description texts of each row is slightly smaller than their
labels.
Besides, the description of the primary-button row has an arbitrary
line break.

https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-11-05 12:50:34 +01:00
Felipe Borges
723c7f5fdb mouse: primary buttons entry is now vertically centered in the row
https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-11-04 17:38:08 +01:00
Felipe Borges
9e96750393 mouse: make the touchpad options separator non-selectable
Since the first entry in the Touchpad section causes the sensitive
of the items below to change, those items are in a diferent ListBox.
To make it look like it is all the same ListBox, we arbitrarily add
a separator between the first item and the items below.

https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-11-03 17:04:19 +01:00
Felipe Borges
918a0e2982 mouse: add a label description for the 'Natural Scrolling' entries
https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-11-03 16:38:59 +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
Felipe Borges
e96a2bf340 mouse: make all rows the same height
https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-11-02 15:05:26 +01:00
Bastien Nocera
d6ed423f9c mouse: Fix "Primary button" description
https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-10-28 13:30:22 +01:00
Allan Day
f872293465 mouse: Tweak header spacing
There was slightly too much padding between the headings and the
list boxes below.

https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-10-28 13:28:11 +01:00
Bastien Nocera
d6970f1c58 mouse: Fix right-/left-handed buttons getting out of sync
Make the two independent buttons into a group of radio buttons without
an indicator to make sure they stay in sync (one enabled, one disabled).

https://bugzilla.gnome.org/show_bug.cgi?id=756863
2015-10-28 12:20:50 +01:00
Felipe Borges
0fd9b483f5 mouse: make slow-to-fast in the speed sliders go from left-to-right
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
Ondrej Holy
27428f1d19 mouse: put check buttons in one row
https://bugzilla.gnome.org/show_bug.cgi?id=743198
2015-01-20 17:28:22 +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
71aca7abdb mouse: replace deprecated stuff
https://bugzilla.gnome.org/show_bug.cgi?id=736013
2014-11-20 11:57:25 +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
Yosef Or Boczko
089266fd0a mouse: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:27:42 +02: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
92148a4be7 mouse: Rename "Content sticks to fingers"
...to "Natural scrolling". The previous name was a little bit
disgusting, and people didn't understand its purpose. Using the
same name as OSX means that people will either know it, or be less
afraid of testing it.

https://bugzilla.gnome.org/show_bug.cgi?id=689128
2013-06-11 16:51:02 +02:00
Piotr Drąg
a94cfed4b6 mouse: Better contexts for speed labels
As it turns out, some languages need different translations for
double click, mouse and touchpad speed labels.
2013-03-31 21:11:23 +02:00
Piotr Drąg
b61b4b2a64 mouse: Improve contexts for ambiguous strings
https://bugzilla.gnome.org/show_bug.cgi?id=684336
2012-10-09 10:17:52 +02:00
Matthias Clasen
7ef84e87e9 mouse: Fix accessible labels for switches in mouse panel
Setting mnemonic-widget on the labels makes orca read out meaningful
text for the switches.
https://bugzilla.gnome.org/show_bug.cgi?id=683703
2012-09-13 06:42:38 -04:00
Ondrej Holy
14dde72dfe mouse: Fix of bad radio spacing in RTL.
https://bugzilla.gnome.org/show_bug.cgi?id=669961
2012-08-28 12:05:51 +01: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
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
0e49b5b88d mouse: Add context for Low/High
https://bugzilla.gnome.org/show_bug.cgi?id=672738
2012-04-22 12:57:19 +01:00
Bastien Nocera
aeb1e47411 mouse: Remove italics
https://bugzilla.gnome.org/show_bug.cgi?id=669070
2012-01-31 17:34:14 +00:00
Bastien Nocera
7b3f942318 mouse: Fix ATK descriptions 2011-10-19 14:43:30 +01:00
Matthias Clasen
007696b8fd Fix a11y/keynav issues in the mouse panel
The Acceleration mnemonics were conflicting with the 'All Settings'
mnemonic, which can easily be avoided by moving the mnemonic to 'c'.
Also, the mnemonic widgets for the scale labeles on the touchpad
page were pointing at the widgets on the mouse page (copy-paste error)
and thus did not work.

Part of bug 650132
2011-05-15 14:36:03 -04:00
William Jon McCann
917fa81f10 mouse: make sure we fit within our minimum vertical size
Make sure we fit on netbook screens.
2011-03-20 03:06:48 -04:00
Bastien Nocera
cf8465c250 mouse: Don't destroy the touchpad tab
We might actually need it when a touchpad appears.
2011-03-16 13:41:00 +00:00
Matthias Clasen
451b7edf37 Mouse: don't reuse the same adjustments
The acceleration and sensitivity sliders on the mouse and touchpad
tabs were sharing the same adjustment, which doesn't really work.

https://bugzilla.gnome.org/show_bug.cgi?id=644223
2011-03-13 00:40:24 -05:00
Bastien Nocera
8251128055 mouse: Remove obsolete properties 2011-02-25 23:21:19 +00:00
William Jon McCann
2fb2afdc04 mouse: remove a11y tab 2011-01-18 17:06:34 -05:00
William Jon McCann
3198b8d084 mouse: change tab label to Mouse
https://bugzilla.gnome.org/show_bug.cgi?id=639787
2011-01-18 17:03:33 -05:00
William Jon McCann
d51d16fddf various: use a consistent and slightly larger border width for panels 2010-11-21 19:33:34 -05:00
William Jon McCann
b14cd82bf5 mouse: don't force wrapping the label at 180px 2010-11-14 12:52:35 -05:00