Commit graph

5494 commits

Author SHA1 Message Date
Ondrej Holy
f5f67823db user-accounts: Present the default avatar in the avatar popover
Currently, it is not possible to unset a custom avatar, respective it
is not possible to set the default one. Let's present the default
avatar in the avatar popover as suggested in the mockup:
https://wiki.gnome.org/Design/OS/AvatarChooser

Fixes: GNOME/gnome-control-center#62
2019-05-16 14:50:45 +00:00
Ondrej Holy
65a8c15467 user-accounts: Remove a redundant parameter
The `round_image()` function has the `icon_size` parameter, which is not
used by that function, because the size is determined from a pixbuf size.
Let's remove that redundant `icon_size` parameter.
2019-05-16 14:50:45 +00:00
Antoine Jacoutot
331f0d119b info panel: return "Unknown" on OS lacking os-release
Return "Unknown" instead of the empty string if os_info fails.
2019-05-15 22:10:30 +00:00
Bastien Nocera
d36cffa290 sound: Add "input" and "output" keywords to the panel 2019-05-14 01:55:59 +00:00
Bastien Nocera
3966f33ce8 network: Add "hotspot" keyword to the WiFi panel 2019-05-14 01:55:59 +00:00
Bastien Nocera
2bf154132e network: Add "proxy" keyword to the panel 2019-05-14 01:55:59 +00:00
Bastien Nocera
dff4d1f323 power: Don't treat all batteries as laptop batteries
They might be device batteries where the device type is not known or
catalogued.
2019-05-07 12:53:23 +02:00
Ethan Hsieh
83e055c9be power: correct the value of 90 minutes to 5400 2019-05-02 13:35:14 +08:00
Carlos Garnacho
8f825c5cc0 wacom: Dispose custom style provider with calibrator
Each CalibArea created adds a style provider that is never removed,
remove it on calib_area_free() to avoid the leak.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/504
2019-05-01 16:10:06 +02:00
Carlos Garnacho
dbd78496e1 wacom: Ensure calibrator UI CSS only applies to its UI
Set a name on the fullscreen window, and require it in all selectors
in the custom CSS. Fixes style leaking to other g-c-c bits.

https://gitlab.gnome.org/GNOME/gnome-control-center/issues/504
2019-05-01 16:09:58 +02:00
Florian Müllner
ba328a1993 network: Remove Wifi & friends from keywords
Wifi was split out into a dedicated panel.
2019-04-30 18:08:57 +00:00
Benjamin Berg
f75c3a8471 display: Fix crash if a monitor has no preferred mode
When a monitor has no current mode set and also no preferred mode we ran
into a crash. Simply select the first mode we can find as a further
fallback.
2019-04-30 14:16:17 +00:00
Jakub Steiner
db98738366 Applications: use larger icons
- the new application icon style strongly advises to use
  sizes above 32px. Lower the whitespace to fit more items
- make fullcolor icons not semi-opaque
2019-04-24 00:27:18 +00:00
Carlos Garnacho
4c31ff5269 network: Handle Infiniband as a wired interface
The configuration/UI we expose for wired settings are meaningful for those
devices as well.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/489
2019-04-23 19:46:32 +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
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
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
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
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
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
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
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
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