Commit graph

20665 commits

Author SHA1 Message Date
Jan Beich
37b29c32cb meson: drop unused argument for i18n.merge_file()
Ignored in Meson < 0.60.0, deprecated since 0.60.1 and fatal since 0.61.0.

panels/applications/meson.build:10:5: ERROR: Function does not take positional arguments.
panels/background/meson.build:10:5: ERROR: Function does not take positional arguments.
panels/camera/meson.build:10:5: ERROR: Function does not take positional arguments.
[...]
2022-01-07 17:22:43 +00:00
Christopher Davis
12fefbc0d7 cc-multitasking-panel: Fix initial state for "all workspaces" setting 2022-01-07 13:50:39 +00:00
Christopher Davis
257557d660 cc-multitasking-panel: Remove can-focus
The default should be used, and the way we were
using it was redundant.
2022-01-07 13:50:39 +00:00
Christopher Davis
736150b035 multitasking: Use AdwPreferences{Page,Group} 2022-01-07 13:50:39 +00:00
Christopher Davis
617341591b cc-window: Use AdwLeaflet's navigation API
This should be preferred over `set_visible_child ()`
2022-01-07 13:43:50 +00:00
Christopher Davis
494f8a0f14 cc-window: Enable leaflet navigation
This enables touchpad/touchscreen gestures, alt+arrows,
and mouse buttons.
2022-01-07 13:43:50 +00:00
Aleksandr Melman
6691ba9b76 Update Russian translation 2022-01-07 11:47:08 +00:00
Hugo Carvalho
5f1ed40692 Update Portuguese translation 2022-01-06 22:51:31 +00:00
Christopher Davis
88027fc310 info-overview: Vertically clamp OS Logo
Otherwise it would grow as large as the page would let
it.
2022-01-06 22:15:30 +00:00
Christopher Davis
96ecd3acdf info-overview: Use AdwPreferences{Page,Group} 2022-01-06 22:15:30 +00:00
Christopher Davis
079bf51086 network: Fix wifi icon loading
GTK4 changes how icons are loaded - only icons that are
set up to follow icon theme paths are recolored. The way
the network panel loaded icons wasn't compatible with this,
causing icons to stay dark in dark mode.

This commit adjusts the gresource so that icons are
in `$RESOURCE_BASE_PATH/icons/scalable/actions`. Since
GTK knows how to handle that automatically, we can
simply use `icon-name` instead of loading a full
icon path.
2022-01-06 12:42:34 -08:00
Christopher Davis
24fbb5e49a cc-datetime-panel: Use AdwComboRow
The API is nicer, and it's the recommended widget to use
for dropdown rows.
2022-01-06 11:47:10 -08:00
Christopher Davis
0a5515463d cc-datetime-panel: Use AdwPreferencesGroup
Lets us get rid of our manual listboxes.
2022-01-06 11:42:08 -08:00
Christopher Davis
d3756aaf26 cc-datetime-panel: Move activation handling to rows 2022-01-06 11:42:08 -08:00
Christopher Davis
3b90e5b43f cc-datetime-panel: Set activatable-widget on rows with switches 2022-01-06 11:42:08 -08:00
Christopher Davis
52a32574fb cc-datetime-panel: Remove keynav-failed handling 2022-01-06 11:42:08 -08:00
Christopher Davis
e637f47e78 cc-list-row: Subclass AdwActionRow
AdwActionRow handles many of the properties we use
CcListRow for. We can re-use it instead of re-creating it.

CcListRow is now an AdwActionRow with three suffixes.
The `activatable-widget` is set when the switch is visible.

Since our `icon-name` property was only used for the arrow
icon, it has been replaced with a `show-arrow` property.

The `bold` property has been removed - it was only used in
one place, and it's not a pattern used in other apps.

I decided to go this route because replacing all the
instances of CcListRow with AdwActionRow directly would
end up being more code.
2022-01-06 08:56:12 -08:00
Mohammed Sadiq
81a5390c30 wwan: Use button icon-name property to set button image
This simplifies setting button image and improves the way they
are presented as the css will then be handled better this way.
2022-01-06 15:04:28 +00:00
Mohammed Sadiq
fbb2f98c44 wwan: Port to GTK4 2022-01-06 15:04:28 +00:00
Yuri Chornoivan
3357491a31 Update Ukrainian translation 2022-01-06 08:50:09 +00:00
Jordi Mas
62612eb93d Update Catalan translation 2022-01-06 08:40:50 +01:00
Christopher Davis
161e096667 cc-notifications-panel: Use AdwActionRow
AdwActionRow handles most of what we were building
a custom row for, and what it doesn't handle we
can simply use its API for.
2022-01-06 00:51:36 +00:00
Christopher Davis
d61b5bb0b0 cc-notifications-panel: Use AdwPreferences{Page,Group}
libadwaita provides nice pre-built widgets for preferences
pages and groups. We should use them where possible.
2022-01-06 00:51:36 +00:00
Christopher Davis
e216f7f2db cc-sound-panel: Use AdwPreferencesPage and PreferencesGroup
libadwaita provides nice pre-built widgets for preferences
pages and groups. We should use them where possible.
2022-01-06 00:38:31 +00:00
Benjamin Berg
6f825cd486 network: Fix saving passwords for non-wifi connections
When validating security settings for non-wifi connections, we
temporarily create a wireless connection. Unfortunately, when this
connection is destroyed, it'll clear the stored password from the 802.1x
settings object.

Avoid this by removing the setting before the temporary connection is
destroyed.

Closes: #337
2022-01-05 23:09:45 +00:00
Christopher Davis
4e2706fc6f cc-window: Re-enable type-to-search
This was lost in the GTK4 port. This commit uses
GtkSearchBar's API to capture events.

See https://gnome.pages.gitlab.gnome.org/gtk/gtk4/method.SearchBar.set_key_capture_widget.html
2022-01-05 22:31:17 +00:00
Christopher Davis
f1d5a0e71e cc-window: Enable scroll-to-focus on panel list
GTK4 doesn't do this by default, so we need to make sure
to specify it on our GtkViewport.
2022-01-05 22:31:17 +00:00
Jakub Steiner
8ba134fbce multitasking: make graphics work in dark mode
- more of a workaround than a solution. Getting rid of the white fills
  at the expense of clarity and style.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1565
2022-01-05 22:22:57 +00:00
Robert Mader
6a4652bd35 display-config: Do not invert order when constructing modes
Mutter sends modes in descending order of preference. By reverting
the order via `g_list_prepend`, we get unintended side effects
such as choosing the least preferred refresh rate by default (if
the selected mode is not marked as preferred).

Instead of adding complex logic in several places, make sure that
the assumption of descending preference is kept by simply not
inverting the order.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1562
2022-01-05 22:12:13 +00:00
Christopher Davis
0af1937d4d universal-access: Inline Sound Keys dialog
This can also be replaced with a simple switch
in an AdwActionRow.
2022-01-05 22:06:37 +00:00
Christopher Davis
f4b0ac5318 universal-access: Inline Screen Reader dialog
The dialog can easily be replaced by an
AdwActionRow with a switch and a subtitle.
2022-01-05 22:06:37 +00:00
Christopher Davis
9982f30008 cc-ua-panel: Remove custom listboxes
No longer needed now that all rows handle
activation.
2022-01-05 22:06:37 +00:00
Christopher Davis
997fadf8fb cc-ua-panel: Handle row activation on individual rows
The custom listboxes serve another purpose: to handle
row activation. Instead of using a custom listbox, we
can simply listen to the `activated` signal on the
rows that don't have a switch.
2022-01-05 22:06:37 +00:00
Christopher Davis
02b9f29c44 cc-ua-panel: Use AdwActionRow for all rows
AdwActionRow simplifies activation handling for
switches, provides consistent styling and sizing,
and mnemonic handling.
2022-01-05 22:06:37 +00:00
Christopher Davis
a58fa42e1d cc-ua-panel: Use AdwPreferencesPage/AdwPreferencesGroup
The individual groups still use their own listboxes,
as the custom rows they use won't be added to
AdwPreferencesGroup's list.

See https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.PreferencesGroup.html#adwpreferencesgroup-as-gtkbuildable
2022-01-05 22:06:37 +00:00
Christopher Davis
6a525c861e cc-ua-panel: Remove custom keynav handling
We were using this to move between groups and scroll
the page, but that's not necessary. All we need
to do is set `scroll-to-focus` on our GtkViewport.

This commit removes the keynav-failed callback
and all associated plumbing.
2022-01-05 22:06:37 +00:00
Bastien Nocera
003a5182b9 ci: Rebuild image with newer gsettings-desktop-schemas 2022-01-05 11:24:04 +01:00
Bastien Nocera
6234e16712 build: Fix Bluetooth panel build
API version got bumped, see:
https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/merge_requests/92
2022-01-05 11:02:45 +01:00
Bastien Nocera
d8719a627e build: Bump required gsettings-desktop-schemas version
For the colour scheme option.
2022-01-05 11:02:45 +01:00
Daniel Mustieles
e99221e5d2 Updated Spanish translation 2022-01-04 12:17:51 +01:00
Aurimas Černius
cc4d27b70f Updated Lithuanian translation 2022-01-03 22:26:40 +02:00
Sophie Herold
ef9428d983 icon: Remove circle outside of drawing area 2022-01-01 18:26:49 +00:00
Christopher Davis
3ee642e421 net-device-bluetooth: Use AdwActionRow and .boxed-list
This makes both the row and the list fit in better
with the rest of the page.
2021-12-29 23:28:44 -08:00
Yosef Or Boczko
1b45b633ae Update Hebrew translation 2021-12-29 16:34:33 +00:00
Quentin PAGÈS
ef1342def1 Update Occitan translation 2021-12-27 20:03:53 +00:00
Aleksandr Melman
714dde080f Update Russian translation 2021-12-25 13:01:03 +00:00
Asier Sarasua Garmendia
b84a53405a Update Basque translation 2021-12-23 21:49:04 +00:00
Fabio Tomat
2a97dbff29 Update Friulian translation 2021-12-23 06:54:04 +00:00
Kukuh Syafaat
f7f5ceb962 Update Indonesian translation 2021-12-23 03:26:40 +00:00
Sebastian Keller
dfc504409f search-provider: Don't escape result description as markup
Only the shell can know how the description string will be used and if
or when it should be escaped. Previously the shell did not escape the
description before displaying it with markup to highlight search hits,
but now it does. For gnome-control-center this however means without
this change the string will be escaped twice causing markup to show up
in the description text.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2033
2021-12-22 23:55:15 +01:00