Commit graph

7329 commits

Author SHA1 Message Date
Mohammed Sadiq
6a84e1eb83 keyboard: shortcut-dialog: Use AdwLeaflet for headerbar
So that users can swipe on headerbar to go back

Fixes #2202
2023-03-01 16:12:19 +00:00
Mohammed Sadiq
db82543a62 keyboard: shortcut-dialog: Focus search entry when the window is presented 2023-03-01 16:12:19 +00:00
Markus Göllnitz
0754e1ef13 mouse: add title to header bar
The header bar of the mouse panel can display a title, when
the stack only contains the mouse and the touchscreen subpanel.

This header bar, however, does not inherit the title widget from
the common CcPanel, as it contains the view switcher.

It is needed to add the correct title as a property to the switcher
to let it display this title, if no switcher is.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
2023-03-01 14:34:09 +00:00
Markus Göllnitz
8b4fbef678 mouse panel: add navigate back button
The mouse panel currently does not show a button to navigate back,
but should do so if the window is folded.

fixes #2363

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
2023-03-01 13:58:19 +00:00
Felipe Borges
4e10ccb9ea mouse: Toggle visibility of Touchpad page based on device detection
Fixes #2355
2023-02-28 14:17:37 +00:00
Felipe Borges
5b4c9e16a8 mouse: Don't set arbitrary dimensions for mouse test window
As long as the picture's scrolled window can be larger than 440,
everything else should fit within the window's default size.

Fixes #2356
2023-02-28 14:16:49 +00:00
Bastien Nocera
2417cd5e6e wifi: Handle open networks in QR code
Fix empty dialogue when the current Wi-Fi network is an open network.

Closes: #2372
2023-02-27 20:00:15 +00:00
Hendrik Müller
0a5f0d16e3 wifi: Allow QR code dialog to be closed by pressing ESC
Being able to close the QR code dialog by pressing the ESC
key would be a handy feature.

By switching from GtkWindow to GtkDialog, the QR code
dialog is closed when pressing ESC.

Closes #2357
2023-02-25 13:00:15 +00:00
Lukáš Tyrychtr
1bfa4be664 info-overview: Actually don't show the firmware version row when in a VM
The previous logic was hiding the row when we were not under virtualization.
Fixes #2351
2023-02-21 10:04:27 +00:00
Nelson Benítez León
0cb4706b88 user-accounts: restore default cursor in CcCropArea dialog
The CcCropArea dialog fails to update cursor to 'default'
one when leaving the CcCropArea into the GtkHeaderBar.

Fix that by setting 'default' cursor in the "leave" event
of CcCropArea.

Closes #2359
2023-02-20 10:56:38 +00:00
Nelson Benítez León
d57e152f57 user-accounts: close CcAvatarChooser before showing GtkFileChooser
so that the first click on the FileChooser is not used to just
close the CcAvatarChooser dialog.

Close issue #2315
2023-02-20 09:04:19 +00:00
Nelson Benítez León
3fcf9aa7f1 user-accounts: disallow commas in real name
Because real name is stored in the GECOS field of
/etc/passwd, which is delimited by commas that
cannot be escaped, the user's full name must not
contain a comma. More info at:
https://gitlab.freedesktop.org/accountsservice/accountsservice/issues/83

Closes #888
2023-02-20 08:55:10 +00:00
Nelson Benítez León
947bb48985 users-account: fix CcCropArea dialog transient parent
the transient parent for the dialog was wrongly set to
its own window, causing following g_critical message:
Gtk-CRITICAL **: gtk_window_set_transient_for: assertion 'parent == NULL || GTK_IS_WINDOW (parent)' failed
2023-02-18 22:20:35 -04:00
Ray Strode
8a98497fb0 user-accounts: Don't access user before it's loaded
libaccountsservice documents that it is undefined to access an
ActUser object's properties before the 'is-loaded' property is
set to try.

Control-center unfortunately sometimes accesses objects that
aren't fully loaded, leading to log spew and memory corruption.

This commit fixes the problem by setting up a signal handler
to listen for the is-loaded notification when necessary.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2348
Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2349
2023-02-17 09:45:18 +00:00
Jakub Steiner
2e9e87ad40 mouse: Update mouse video assets
- slight adjustments to layout and sizing of individual elements
- based on discussions with Allan & Tobias
2023-02-17 02:09:50 +00:00
Felipe Borges
75e92da6d2 common: Use GtkPicture for CcSplitRow and CcIllustrationRow videos
So we can preserve the aspect-ratio.

Fixes #2345
2023-02-17 02:09:50 +00:00
Felipe Borges
573428d006 mouse: Update mouse video assets
as of https://gitlab.gnome.org/Teams/Design/settings-mockups/-/commit/ad52c2617
2023-02-17 02:09:50 +00:00
Lukáš Tyrychtr
62708fc44f Add the label with the current alert sound as a description for the row, so a screen reader reads it 2023-02-17 02:08:47 +00:00
Felipe Borges
6b4e8ca316 common: Pause CcSplitRow/CcIllustrated videos when pointer leaves
Fixes #2346
2023-02-17 00:48:51 +00:00
Zdenek Dohnal
fb07b65cee printers: Use CUPS dest API for printing test page instead CUPS IPP API
The current usage of CUPS IPP API does not work for temporary queues, because the g-c-c sends the request without creating a local printer first, so the request is sent to non-existing printer.
If you use the destination from cupsGetNamedDest() for printing, CUPS library does the local printer creation internally and printing test page will work even for temporary queues.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2148481
2023-02-16 15:12:27 +00:00
Georges Basile Stavracas Neto
b2363b6847 network: Improve QR code appearance
Replace the 'frame' style class with 'card'.
2023-02-14 19:52:47 -03:00
Hendrik Müller
add2f0d2f7 wifi: Add QR code to share Wi-Fi networks
Many devices are able to scan a specifically formatted QR code to
connect to a wifi network.
To make sharing of wifi connections easier, it would be helpful to
display such a QR code in the wifi settings.

A button is added to the wifi connection row. This row is shown in
the general wifi settings panel, as well as in the "Known Wi-Fi Network"
dialog. Clicking the button opens an additional dialog, which shows the
QR code.
2023-02-14 19:11:07 -03:00
Alexander Mikhaylenko
e911f7defd mouse: Fix swapped scroll direction videos
It was showing the opposite direction for each of them.
2023-02-14 23:11:01 +04:00
Alessandro Bono
908cb548bf microphone: Make the switches toggleable when disabled
Allow to toggle the applications switches when the main permission
is disabled.
2023-02-14 18:15:33 +00:00
Alessandro Bono
eb4390c548 location: Make the switches toggleable when disabled
Allow to toggle the applications switches when the main permission
is disabled.
2023-02-14 18:15:33 +00:00
Alessandro Bono
fa821608b5 camera: Make the switches toggleable when disabled
Allow to toggle the applications switches when the main permission
is disabled.
2023-02-14 18:15:33 +00:00
Felipe Borges
ff6e104033 mouse: Redesign Mouse Test dialog
Per mockups
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/raw/0fa58be/mouse-and-touchpad/test-window.png
2023-02-14 18:10:46 +00:00
Felipe Borges
9e0e6253e4 mouse: Move Mouse Test into its own window
Per discussion at
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2250#note_1631136

Fixes #2250
2023-02-14 18:10:46 +00:00
Felipe Borges
b5ce0f08b9 mouse: Redesign Mouse panel
See
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/raw/master/mouse-and-touchpad/mouse-and-touchpad.png
2023-02-14 13:31:23 -03:00
Felipe Borges
42cfa6dcb5 common: Introduce CcSplitRow 2023-02-14 13:31:23 -03:00
Felipe Borges
c4e569610d common, multitasking: Introduce CcIllustratedRow
The CcIllustratedRow is a generalization of CcMultitaskingRow to
be used later in the Mouse settings.
2023-02-14 13:31:23 -03:00
Felipe Borges
7ba1afc647 mouse: Add mouse "acceleration profile" row
Fixes #94
2023-02-14 12:13:30 +01:00
Nelson Benítez León
e865b14e3b keyboard: allow going back from CCInputChooser via single click
When adding new input sources, the first dialog shows a list of
languages, when single clicking one item you go to a subdialog
that has a 'go back' item, that item only works if double-clicking
it, but that is unintuitive because if you entered the dialog by
single click you also expect the 'go back' button to work by
single click too.

The subdialog is a GtkListBox configured to be double click,
because it has an 'Accept' header bar button and we don't
really want to activate the subdialog items by single click,
but the 'go back' row is special and as explained before it is
expected to work by single click too.

So this commit adds the required single click handler for the
'go back' rows created in CCInputChooser.

Fixes #1954
2023-02-14 03:24:20 +00:00
Nelson Benítez León
d1e64d0f13 user-accounts: Initialize CcAvatarChooser a bit earlier
Fixes following warning when activating Users panel:
user-accounts-cc-panel-WARNING **: Error retrieving app filter for user (null): User 4294967295 does not exist

Initialize CcAvatarChooser a bit earlier so it does
not get used by show_user() before creation.

Fixes #2219
2023-02-11 23:10:30 -04:00
sunflowerskater
9b24810b80 wi-fi: Use AdwStatusPage for the "NetworkManager needs to be running" status page
The Wi-Fi panel displays an old fashioned status page when NM isn't running. Also, it shows a generic error message instead of explaining why the error occurred.

This commit updates this status page to an AdwStatusPage, Also, it makes clear that the error happens because of NM not running.
2023-02-10 13:43:43 +00:00
sunflowerskater
d08fe40bb6 applications-panel: Prevent "Link Files & Assoc." dialog to be shrunken to an unexpected size
Currently, this dialog doesn't have a minimum width and height.
It's possible to shrink it to an unexpected small size.

This commit adds a minimum width and height for this dialog.
2023-02-10 12:20:38 +00:00
sunflowerskater
40f3a2ae98 applications-panel: Set minimum width and height for the "Required Access" dialog
This dialog appears with a really small size, making elements almost invisible.
Also, it can be shrunken to an even smaller size.

This commit sets a minimum width and height for this dialog.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1826
2023-02-10 12:20:38 +00:00
Alessandro Bono
19d83d6839 keyboard: Rewrite layout intersection algorithm
The current layout intersection algorithm compares pointers to strings.
It assumes that `gnome_xkb_info_get_layouts_for_country()` and
`gnome_xkb_info_get_layouts_for_language()` will return two GList
containing pointers to the same strings. Looking at libgnome-desktop[1]
it seems like this is the case: given the same layout, the same pointer
to the layout id will be stored in both lists. However, this is an
implementation detail and we should not rely on that.

Rewrite the intersection algorithm in order to compare the strings. While
at it, use a more efficient algorithm: add all the items of the first list
to a set, then iterate over the second list and check if the item is in
the set. If this happens, remove the item from the set and add it to the
intersection list.

Probably the layout lists are not big enough to notice the difference, but
the complexity goes from O(N*M) to O(N+M).

[1] 3c8834af09/libgnome-desktop/gnome-xkb-info.c (L281)
2023-02-10 11:32:05 +00:00
Georges Basile Stavracas Neto
441ff16c5f Revert "firmware-security: Rename "Security Events" to "Security Alerts""
This reverts commit 90d83fdfe5
2023-02-10 11:31:15 +00:00
Georges Basile Stavracas Neto
81866aeb29 Revert "firmware-security: Add a subtitle for the "Security Alerts" title"
This reverts commit dded489b81
2023-02-10 11:31:05 +00:00
Automeris naranja
dded489b81 firmware-security: Add a subtitle for the "Security Alerts" title
In the latest mockups there is a subtitle below the "Security Alerts" title:
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/device-security/device-security-44.png

Partially fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2332
2023-02-10 11:18:02 +00:00
Automeris naranja
90d83fdfe5 firmware-security: Rename "Security Events" to "Security Alerts"
"Security Events" string was replaced by "Security Alerts" in latest mockups:
https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/device-security/device-security-44.png

Partially fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2332
2023-02-10 11:18:02 +00:00
Sundeep Anand
b05990e024 keyboard: country matches should not be shown under a language name.
country_layouts are being appended to the layouts_with_locale which results in less relevant
layout groupings. for example, we if choose Hindi language which is an Indian language,
all Indian language layouts are shown within it - including Tamil, Bangla etc.

furthermore, language_layouts are also getting appended for countries where they may not
belong, for example, English (Ireland) is shown when we search India.

The layouts_with_locale table is filled as union however it yields better
search results if we change that to intersection.

Relates #2114
2023-02-09 14:12:27 +00:00
Jan Pokorný
705ff06d64 display: Add 32:9 to known aspect ratios
Resolution dropdown previously did not show an aspect ratio hint for
32:9 resolutions. This adds the 32:9 aspect ratio to recognized ones.

Fixes #2334
2023-02-09 14:08:46 +00:00
Aryan Kaushik
8a4a80b7b2 network: Disable DNS entry if the automatic option is enabled
Fixes: #2243
2023-02-07 22:51:45 +00:00
Allan Day
f3e64dd720 firmware: Tweak status strings
The descriptions for the levels of protection were very similar.
This makes them more distinct.
2023-02-07 13:39:06 +00:00
Alessandro Bono
c892b69b40 microphone: Move switch from the header bar to the panel
Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2198
2023-02-07 10:14:40 +00:00
Alessandro Bono
3c60eb9e76 microphone: Remove empty status page
We are going to move the main switch from the header bar to the panel.
There is no more need for an empty page.

Closes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2191
2023-02-07 10:14:40 +00:00
Alessandro Bono
f8b1934882 camera: Move switch from the header bar to the panel
Helps: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2198
2023-02-07 10:14:40 +00:00
Alessandro Bono
3f84e2d9b4 camera: Remove empty status page
We are going to move the main switch from the header bar to the panel.
There is no more need for an empty page.

Helps: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2191
2023-02-07 10:14:40 +00:00