Commit graph

18562 commits

Author SHA1 Message Date
Aurimas Černius
699eef9c17 Updated Lithuanian translation 2019-04-11 22:51:48 +03:00
Piotr Drąg
a6556759de Update Polish translation 2019-04-11 18:19:06 +02:00
Sebastien Bacher
8541ef9e46 Include glib/gi18n.h which is needed for gettext 2019-04-10 11:27:14 +02:00
Sebastien Bacher
1268137e63 night-light: set screen temperature strings as translatable
Fixes #437
2019-04-09 21:07:12 +02:00
Robert Ancell
d34bbda386 region: Fix input source options not being applied.
This was broken in a86cf1eca2 (3.32) when the input options dialog was converted
into a GtkPopover. Previously two GSettings objects were used, with one set to
'delay-apply' mode. The input source option didn't apply the changes.

The 'delay-apply' mode is from the original commit d3852fc831, however code was
simplified in b3199dd to only set one setting. This meant that the delay is no
longer necessary.

Fixes #440
2019-04-09 14:14:31 +12:00
Jordi Mas
ece0d9c26e Update Catalan translation 2019-04-07 21:52:57 +02:00
Georges Basile Stavracas Neto
9780fab0e5
docs: Document the Communication Guidelines
These are the documented guidelines for when communicating
and interacting with humans. Not following the documented
guidelines means the comment will be removed, or the ticket
will be closed.

[skip ci]
2019-04-02 09:06:00 -03:00
Georges Basile Stavracas Neto
476ea8f550 panel-list: Simplify placeholder widget setup
I just learned that we can use <child type="placeholder"> and
avoid C code to do that. Simplify CcPanelList as well.
2019-04-01 22:27:51 +00:00
Georges Basile Stavracas Neto
25be82715a applications: Add a placeholder widget for the sidebar list
So we keep it consistent with other lists that allow filtering,
such as the main panel list itself.
2019-04-01 22:27:51 +00:00
Georges Basile Stavracas Neto
8070940e6e applications: Add search entry to the sidebar
This matches the current mockups [1] for the panel, and
allows easily finding applications.

[1] https://gitlab.gnome.org/Teams/Design/settings-mockups/raw/master/applications/applications-wires.png
2019-04-01 22:27:51 +00:00
Georges Basile Stavracas Neto
6b5d8a93b6 applications: Select the first row at startup
That way we are not presented the empty view initially.
2019-04-01 22:27:51 +00:00
Georges Basile Stavracas Neto
622fec8303 applications: Trivial code style update 2019-04-01 22:27:51 +00:00
Georges Basile Stavracas Neto
de724065c6 applications: Remove unecessary cast
The variable is a GtkListBox already.
2019-04-01 22:27:51 +00:00
Felipe Borges
6046d562cf mouse: Reinstate keyboard navigation in the panel
Fixes #246
2019-04-01 13:25:35 +02:00
Carmen Bianca BAKKER
ed58343084 Update Esperanto translation
(cherry picked from commit 419d2f99d4)
2019-04-01 06:02:24 +00:00
Veerasamy Sevagen
fb130c06d0 panels/network/cc-wifi-connection-row.ui:Setting Connection/SSID as non-translatable.
Set to non-translatable as it is just a placeholder.

This change has been requested by Benjamin Berg(@bberg).

Issue has not been created for this but it was stated in issue#397
2019-03-31 23:22:06 +00:00
Dušan Kazik
80ac504cb4 Update Slovak translation
(cherry picked from commit 5c1dedbebd)
2019-03-30 07:06:24 +00:00
Veerasamy Sevagen
bf3d97e50d panels/display/cc-display-settings.ui: Adding context to "Scale"
The title property for "Scale" did not have any context.
2019-03-29 18:50:04 +00:00
Adrien Plazas
638dc94a8d window: Use a HdyLeaflet
This allows the window to be folded to show either the sidebar or the
panel when not enough space is available.

This reverts commit 2854669f5c8280a32d0b5fa6c5399cc391ef06f3.
2019-03-29 18:33:36 +00:00
Adrien Plazas
39ed06188a sharing: Ellipsize the labels
This helps ensuring the panel fits in narrow windows.
2019-03-29 18:20:56 +00:00
Adrien Plazas
b73213ebaf sharing: Adapt the indentation
This adapts the indentation of the children of HdyColumn, which were
deliberately left intact in the previous commit to make it more
readable.
2019-03-29 18:20:56 +00:00
Adrien Plazas
5be6fc4d1f sharing: Use a HdyColumn and a GtkScrolledWindow
Put the widget's content into a HdyColumn, itself into a
GtkScrolledWindow. This allows the panel to reach narrower sizes.

This deliberately doesn't adapt the indentation of the contained widget
to help this commit to be more readable and easier to review, it will be
adapted in the next commit.
2019-03-29 18:20:56 +00:00
Adrien Plazas
f9d0decc3a shell: Bump the right panel width request to 360
This will help ensuring the shell's leaflets fold consistently for all
panels by setting a more reasonable minimum size constraint for the
right panel, so that more panels can meet it.
2019-03-29 18:12:03 +00:00
Adrien Plazas
ef93835b31 power: Make the rows adaptive
This factorizes the row creation a bit and normalizes the margins and
spacing, reducing the required width. This also makes labels like row
titles and descriptions ellipsizable so the rows can reach narrower
widths.
2019-03-29 17:55:20 +00:00
Adrien Plazas
101ebf1bd4 power: Use a HdyColumn
This allows the window to reach narrower sizes.
2019-03-29 17:55:20 +00:00
Adrien Plazas
4e6ec3aad0 power: Don't tweak the scrollbar policy
This allows the window to reach smaller sizes.
2019-03-29 17:55:20 +00:00
Bastien Nocera
f9d0dc9795 privacy: Rename "Show Notifications" label
To be clearer.

https://bugzilla.gnome.org/show_bug.cgi?id=743307
2019-03-29 17:12:20 +00:00
Bastien Nocera
07485a1103 keyboard: Fix keyboard shortcut label
The instructions label says:
Press Esc to cancel or Backspace to reset the keyboard shortcut.
but the Backspace key set the shortcut to be empty, and disables the
feature. Reset is achieved clicking the button to the right handside of
the shortcut in the main window, and is only visible when the shortcut
isn't set to the default value.
2019-03-29 17:03:45 +00:00
Dušan Kazik
b77a36f98b Update Slovak translation
(cherry picked from commit 901bb6b366)
2019-03-29 16:09:31 +00:00
Georges Basile Stavracas Neto
5606637c5e
3.32.1 2019-03-29 11:36:46 -03:00
Benjamin Berg
a368153973 mouse: Sync touchpad scrolling switch states correctly
The old code would not sync the state when the page was loaded. Also,
due to how the code was written, it would not update the switch state if
the underlying setting was changed in some other way.

Fix this by connecting the setting with the "state" of the switches.
When the switches "active" property is changed, update the underlying
setting and ensure the mutually exclusive switch is turned off when
needed.

Fixes #398
2019-03-29 13:36:40 +00:00
Benjamin Berg
8e175bb562 network: Don't shorten names of bluetooth connections
This prevents a single bluetooth connection to be shortened to the name
"Bluetooth", which means we end up with one "Bluetooth" device in the
"Bluetooth" section. Rather, always use the long name of the bluetooth
device so that the user knows what they are connecting to.
2019-03-29 14:08:45 +01:00
Benjamin Berg
77cae9ce72 network: Only show bluetooth devices in Bluetooth section
Historically, the bluetooth section has been the dumping ground for any
device we don't handle in another way. It has had the "Bluetooth" title
for a long time now though, and many of the devices that end up in there
are actually not useful in the GNOME context.

There are some people complaining that we should support these devices
properly, but the status quo does not help any one either really, so
lets remove them entirely for now.

Obsoletes: !203
Fixes: #190
Touches: #167
2019-03-29 14:08:45 +01:00
Benjamin Berg
e5b017f45e wifi: Fix connection names with markup not showing up
In some cases, the network connection UI uses pango markup to denote the
SSID name inside a connection name. However, if the SSID matched the
connection name, then we would end up setting the SSID as pango markup
without it being escaped.

Fix this by escaping the SSID before setting it as markup.

Fixes: #435
2019-03-29 11:15:52 +01:00
Jordi Mas
879dac115f Update Catalan translation 2019-03-28 06:09:52 +01:00
Robert Ancell
e85816f83b common: Fix crash in language chooser
A report in Red Hat bugzilla [1] shows for some reason the country is set to
NULL and this causes a crash when comparing against search terms. The solution
is to handle the NULL without crashing.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1685251
2019-03-26 22:02:32 +00:00
Goran Vidović
ecb809bb89 Update Croatian translation 2019-03-26 11:06:17 +00:00
Robert Ancell
a3b2725dfa online-accounts: Fix widgets added by GOA being invisible
Fixes #362
2019-03-22 16:28:44 +13:00
Robert Ancell
3565216b5b applications: Make async file operations cancellable
The previous operations could crash if the panel was changed during an operation.
2019-03-20 17:19:36 +00:00
Robert Ancell
a3db60a24b applications: Rename functions as portal permssions are not Flatpak specific 2019-03-20 17:07:45 +00:00
Robert Ancell
a856740dfa applications: Fix wrong IDs being passed to portal permission store
There were two cases of the app ID being used instead of the Flatpak ID.
2019-03-20 17:07:45 +00:00
Benjamin Berg
b26a8bdeed display: Ensure configuration has the expected type
In almost all cases, the configuration will be "valid" in the sense that
g-c-c can represent it in the UI. However, there are cases like
mirroring setups with three monitors that we do not allow.

In case that the user has such a configuration, ensure that the
configuration we represent is actually valid according to our
expectations. This should not affect normal use cases, but allows users
to recover again if the configuration is broken for some reason.

Fixes #383
2019-03-20 18:01:01 +01:00
Benjamin Berg
f45dcff81f display: Ensure at least one display is enabled
When the user has more than two monitors, then they can disable each
monitor separately. If the user creates an invalid configuration because
they disabled the last monitor, then enable a different one immediately.
2019-03-20 18:01:01 +01:00
Benjamin Berg
defbcebfab display: Simplify configuration type and UI selection logic
The new logic selects a single configuration type rather than detecting
which types can be considered valid. This simplifies the UI rebuilding
somewhat, but also changes some internal behaviour. We will now always
be in the correct mode internally, even if the UI may not represent this
change (i.e. with more than two monitors it always looks the same).
2019-03-20 18:01:01 +01:00
Benjamin Berg
b2f1d489ad display: Add unusable monitors to dropdown and disable switch for them
We should show unusable monitors in the monitor selection drop-down
list. So always add them to the combobox and add the code to make the
switch to enable them insensitive.
2019-03-20 18:01:01 +01:00
Benjamin Berg
e387b3bb86 display: Only enforce single mode when desired by UI
We should only enforce single mode, when we have exactly two monitors
and the two button UI is used to switch between them in single mode.
Move the code to ensure the single configuration into the relevant
callback handler, rather than trying to solve this globally.
2019-03-20 18:01:01 +01:00
Benjamin Berg
98d20659b7 display: Make rebuilding variable a counter
We need to also set rebuilding while updating some other UI elements.
Make it into a counter to allow for recursive setting.
Note that additional checks for rebuilding will be added in later
commits.
2019-03-20 17:58:29 +01:00
Benjamin Berg
21bb6416be display: Reset resolution when switching configuration types
It generally makes more sense to reset the resolution of a monitor after
we switch configuration types. The main case where this is relevant is
switching from a mirror configuration (CLONE) to either join or single.
In this case, higher resolutions for monitors may become available.

Note that this might be annoying to some users, because there may be
monitors reporting a lower "preferred" resolution than the highest
supported resolution. There is little we can do though, as always
selecting the highest resolution doesn't seem like a much better
approach.
2019-03-20 17:26:56 +01:00
Benjamin Berg
ae22f72cac display: Prevent error when serializing invalid configuration
If no monitors are enabled, then the variant would end up with an
invalid variant type, causing a crash later on. This case only happened
due to other bugs (i.e. in principle we should never send a
configuration without any monitors to the server).

Prevent the serialization error by specifying the correct type for the
builder, therefore potentially preventing a crash in such a corner case.
2019-03-20 17:26:56 +01:00
Benjamin Berg
0c4e84e417 display: Ensure we have a primary monitor after all were disabled
When enabling the first monitor, we need to select it as primary as we
otherwise end up without a primary monitor (rendering the configuration
invalid). "Unsetting" the NULL primary monitor effectively causes the
first and only available monitor to become the primary, while not doing
anything if we have a primary monitor.
2019-03-20 17:26:08 +01:00