Commit graph

190 commits

Author SHA1 Message Date
Benjamin Berg
c2f601a9d4 Move common panel code from shell/ to panel/common
This creates a new static library called libwidget which the shell links
against.
2018-04-17 15:26:59 +02:00
Piotr Drąg
7265bd53a0 Add translator comments to .desktop files
Icons are confusing translators, and gettext
is unlikely to get fixed any time soon.
2018-02-23 18:49:35 +01:00
Iñigo Martínez
0dd386f405 build: Migrate from Intltool to Gettext
Recent versions of Gettext are able to translate several formats
that are used in GNOME applications. This patch migrates from
Intltool to Gettext by using meson's i18n features.

https://bugzilla.gnome.org/show_bug.cgi?id=787588
2018-01-23 10:49:31 +01:00
Robert Ancell
d9f0b737ac mouse: Use g_auto for variables
https://bugzilla.gnome.org/show_bug.cgi?id=792808
2018-01-23 00:59:53 -02:00
Iñigo Martínez
dc0988d47c build: Remove autotools
To avoid the burden of maintaining multiple build systems, this
patch removes autotools support.

https://bugzilla.gnome.org/show_bug.cgi?id=785414
2018-01-18 12:20:08 +01:00
Piotr Drąg
b65e31323a panels: Remove soft hyphens from .desktop files
With the old shell gone, there is no need to work around cut off panel
names (bug #647087). As it stands now, it only confuses translators
(invisible characters are hard to, well, see).

https://bugzilla.gnome.org/show_bug.cgi?id=792629
2018-01-18 00:12:04 -02:00
Iñigo Martínez
32edd6789e build: Port to meson build system
Meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.

https://bugzilla.gnome.org/show_bug.cgi?id=785414
2018-01-17 20:09:35 -02:00
Allan Day
87568e9250 Harmonize list box row layouts
While it isn't possible, or even advisable, to make all the list
box rows the same height, using a number of standard heights will
make the control center feel more harmoneous.

Adust the height of the list box rows in Color, Date & Time,
Mouse & Touchpad, Network, Privacy, Region & Language, Sharing
and Universal Access. Makes standard rows that contain labels
and/or controls 58px tall. Some other rows, such as those which
contain two lines of text, are allowed to be taller.

https://bugzilla.gnome.org/show_bug.cgi?id=786384
2017-08-20 18:38:48 +02:00
Allan Day
8a8e53ab8a Standardize vertical spacing of panels
Ensure that the vertical spacing inside each panel is similar.
This makes the transition between each panel smoother and makes
the control center feel more cohesive.

Settings panels are given 32px above and below their content
and 32px vertical space between major sections. 12px space is
placed below headings.

Bluetooth, displays and printers are not addressed.

https://bugzilla.gnome.org/show_bug.cgi?id=786384
2017-08-20 18:38:42 +02:00
Rui Matos
82546faf24 mouse: Fix synaptics check
It seems like (at least some versions of) gdk don't set
GDK_SOURCE_TOUCHPAD on synaptics devices. In this case though, we
don't need the additional check. Just knowing if there's any device
being driven by this X driver is enough.

https://bugzilla.gnome.org/show_bug.cgi?id=784266
2017-07-07 15:37:25 +02:00
Bastien Nocera
cf5c17b692 mouse: Add debug output for touchpad disable switch
See https://bugzilla.gnome.org/show_bug.cgi?id=779290
2017-03-01 13:00:33 +01:00
Bastien Nocera
3f0510cac8 build: Better libm checks
Use AC_CHECK_LIBM instead of AC_CHECK_LIB(m,...
and use $(LIBM) instead of hardcoding "-lm" in Makefiles.
2017-02-08 19:21:53 +01:00
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
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
Georges Basile Stavracas Neto
a58f9dd3f8 mouse: remove arbitrary height request
The test frame widget size is better handled by the
scrolled window's max-content-height property introduced
in commit 62f1f6b than an arbitrary height request.

https://bugzilla.gnome.org/show_bug.cgi?id=768529
2016-07-08 12:38:39 -03: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
Georges Basile Stavracas Neto
2777fd583d panels: use the new categories
Following the previous patch, this patch adds the new alternative
categories to the panels' Desktop files. These alternative categories
are only relevant for the alternative Shell, and do not break the
current Shell in any way.

https://bugzilla.gnome.org/show_bug.cgi?id=767301
2016-06-14 12:16:43 -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
Rui Matos
9b5329f4a8 mouse: Make touchpad capability checking on wayland work as intended
We need to set the out variables otherwise the intended semantics as
documented by the comment aren't enforced.

https://bugzilla.gnome.org/show_bug.cgi?id=765879
2016-05-02 18:23:54 +02:00
Bastien Nocera
5c10ce45b8 panels: Fix translators comments being truncated
Commit b3be076 added soft hyphens along with a comment for translators
to use those soft hyphens. Except that gettext would only grab the one
line out of the four we wrote for translators to read. Put them all on
the same line so that gettext actually extracts those.

https://bugzilla.gnome.org/show_bug.cgi?id=765778
2016-04-28 23:38:00 +02:00
Bastien Nocera
b3be07609a panels: Fix truncated panel names for larger fonts
Note that this fix will not automatically fix translations, which will
need to add soft-hyphens (U+00AD) to their translations themselves, and
will not fix larger fonts for which the split up syllables end up
being bigger than the maximum text width.

It's the best we can do without redesigning the Settings shell, which is
already something planned.

https://bugzilla.gnome.org/show_bug.cgi?id=647087#c13
2016-04-07 16:06:35 +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
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
727d2284f2 mouse: Use Gdk instead of Xlib for touchpad capabilities check
Just use X API where needed.

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
Rui Matos
6a86c7e957 mouse: Drop unused synaptics capabilities check
We don't support synaptics anymore so checking for this is useless.

https://bugzilla.gnome.org/show_bug.cgi?id=764257
2016-04-05 21:04:57 +02:00
Rui Matos
d3252400a9 mouse: Fix initial widget visibility
We're showing all widgets on panel start up instead of selectively
hiding non-relevant widgets since the gtk_widget_show_all() on the
stack after creating the panel widget and adding it to the stack
overrides the visibility decisions done while constructing the panel.

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
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
Bastien Nocera
f945dabbe8 mouse: Style fixes
Fix grammar and coding style in a couple of places.
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
4ff7d6f671 mouse: Clean up resource files on "make clean"
The resource files are generated, so we'll need to clean them up.
2015-10-28 14:23:19 +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
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
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
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
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