Commit graph

22603 commits

Author SHA1 Message Date
Yosef Or Boczko
1290ae1170 Update Hebrew translation 2023-07-04 13:59:00 +00:00
Marcos Miller
b5ce4fafcd keyboard: replace 'gtk_widget_hide' and 'gtk_widget_show' 2023-07-03 10:33:39 +00:00
Marcos Miller
f35779a0b0 Keyboard: elements jump in UI
When editing shortcut key combination and this new combination already
exists in another shortcut, a message (new_shortcut_conflict_label) is
shown, but when clicking on the reset button (reset_custom_button) the
elements Name, Command and Shortcut skip.

It turned out that these jumps were due to the current values of the
width_chars and max_width_chars properties of the new_shortcut_conflict_label
element. So by setting these properties to zero the jumps don't occur.
2023-07-03 10:33:39 +00:00
Marcos Miller
e7de7e3941 Keyboard: Align button to create shortcut
The 'Set Shortcut...' button is inside a GtkStack having only one
column, not allowing to expand it.

I removed GtkStack keeping its 'Set Shortcut' child taking up two
columns.

[Issue #2107](https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2107)
2023-07-03 10:33:39 +00:00
Lukáš Tyrychtr
701f7c6cf6 users-panel, cc-awatar-chooser: Don't request a symlink target for a file info when
it is not a symlink.

That previously caused a debug message, but will cause a g_critical.
Fixes #2547
2023-07-03 10:25:41 +00:00
Felipe Borges
a25697c2bc po: Add shell/cc-panel.ui file to POTFILES.in
Commit 266c55715a added a translatable
string to shell/cc-panel.ui file but the file wasn't marked for
translations.
2023-07-03 02:21:54 +00:00
Mohammed Sadiq
d4dee45d76 user-accounts: Fix some memory leaks 2023-07-03 01:56:24 +00:00
Mohammed Sadiq
53092efece a11y: Fix a memory leak 2023-07-03 01:56:24 +00:00
Mohammed Sadiq
c22f03e2a6 search: Fix a memory leak 2023-07-03 01:56:24 +00:00
Mohammed Sadiq
1e4ef1fdb0 power: Fix a memory leak 2023-07-03 01:56:24 +00:00
Mohammed Sadiq
39f21e4229 network: Fix some memory leaks 2023-07-03 01:56:24 +00:00
Bruce Cowan
814a0990d7 Update British English translation
(cherry picked from commit 7f4603797b)
2023-07-02 20:12:51 +00:00
Sergej A
f5ae19ccc5 Update Russian translation 2023-06-30 12:37:00 +00:00
Felipe Borges
fd1ac377ae network: Use AdwSwitchRow for wifi device enable row
In commit 2a33247f52 the
cc_list_row_get_active() method got removed despite still being
used in the network settings. This was breaking our build.
2023-06-30 11:52:42 +02:00
Lukáš Tyrychtr
b706f1261b network-connection-editor: Fix a keyboard trapped on the Cancel button when adding a VPN connection
It required two changes:
* Setting the stack page only after all pages are initialized
* And removing the VPN choices list from its bin only after that
2023-06-30 09:37:21 +00:00
Marco Melorio
2a33247f52 common: Remove switch feature to CcListRow
AdwSwitchRow should be used now instead.
2023-06-30 09:06:56 +00:00
Marco Melorio
b75bb10bb6 misc: Replace usage of CcListRow + switch with AdwSwitchRow
That feature will be removed in the next commit.
2023-06-30 09:06:56 +00:00
Marco Melorio
f9cd79e871 wwan: Replace usage of CcListRow + switch with AdwSwitchRow 2023-06-30 09:06:56 +00:00
Marco Melorio
d62378058f ua: Port to AdwSwitchRow
This was easy since it was already using CcListRow which is already a
switch wrapper.
2023-06-30 09:06:56 +00:00
Marco Melorio
25ad05ebe6 apps: Remove CcToggleRow and use AdwSwitchRow instead 2023-06-30 09:06:56 +00:00
Robert Ancell
5d7e4b79e6 Post-release version bump 2023-06-30 11:38:22 +12:00
Robert Ancell
cb689878c0 45.alpha 2023-06-30 11:30:30 +12:00
Yosef Or Boczko
5b8e2c7b4d Update Hebrew translation 2023-06-29 11:53:26 +00:00
Yosef Or Boczko
7932446778 Update Hebrew translation 2023-06-28 07:45:01 +00:00
Lukáš Tyrychtr
7cee2a8ec1 panel-list: Set labelled by/described by relations for the panel list explicitly
After GTK changed how it computes nmes, we need an explicit relations to keep
the panel list accessible. And, as a bonus, we now expose the descriptions as well.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1834>
2023-06-28 02:02:00 +00:00
Eric Daigle
c639561982 cc-firmware-security-dialog: don't translate technical report
As described in #2524, the technical report copied from the device security panel
is currently translated, potentially confusing supporters and developers who
expect bug reports to be in English.

This commit makes the strings used to compile the technical report non-translatable,
causing the report to be compiled in English regardless of the user's locale settings.

Closes #2524

Part-of: <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1831>
2023-06-28 00:44:00 +00:00
velsinki
b942a4a6b4 users: Draw avatar crop corners to inside of crop
The crop corners were drawn with the center of the corner lines at the
edges of the crop. This resulted in the corners being visually cut if
the crop is dragged to the edge of the image. Instead, we can draw the
corner lines such that they are inside the edge of the crop, i.e.
shifted by half their linewidth.

We now use relative moves to draw the lines, which simplifies the
movements.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1824>
2023-06-28 00:05:36 +00:00
velsinki
5e87979815 users: Improve rounding of avatar crop edges
If crop.x changes due to a drag, crop.x + crop.width remains fixed, as
thet is the opposite edge. However, in the mapping of paintable to
widget coordinates, crop->x + crop->width can vary due to rounding
errors. This fixes that, so that crop->x + crop->width does not vary,
with the same fix in the y direction.

However, the edges of the circle can still remain jittery due to integer
rounding, which is not fixed by using 'width / 2.0' instead of 'width /
2', since the width and height might differ by a pixel. Instead, draw an
ellipse, which removes edge jitter completely.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1824>
2023-06-28 00:05:36 +00:00
Dirk Su
b7c0c42317 Check best_mode exist before adding flag
When there is no compatible clone mode, the best_mode will be NULL
. It will cause gnome-control-center crash when access to the
variable.
2023-06-27 23:34:23 +00:00
Automeris naranja
34e8c96cb5 apps: Use header capitalization in the "No apps" AdwStatusPage
This change adds header capitalization to the "No apps" AdwStatusPage
title and to the "Install some..." button.

https://developer.gnome.org/hig/guidelines/writing-style.html
2023-06-27 16:32:44 -03:00
Automeris naranja
083b70758d apps: Add mnemonics to several buttons
This change adds mnemonics to the following buttons:

- Install some...
- App Details
- Open
- Clear Cache
2023-06-27 16:28:10 -03:00
Automeris naranja
cc76a6289c bluetooth: Add mnemonic to the "Turn Off Airplane Mode" button 2023-06-27 16:25:08 -03:00
Automeris naranja
c136cf5d65 firmware-security-dialog: Add mnemonic to the "Copy Technical Report" button 2023-06-27 16:24:30 -03:00
Automeris naranja
4151c06012 keyboard-shortcut-dialog: Add mnemonic to the "Add Shortcut" button 2023-06-27 16:23:42 -03:00
Automeris naranja
d621855dc8 users: Add mnemonics to the "Remove User" and "Add User" buttons 2023-06-27 16:22:56 -03:00
Automeris naranja
9469c3c674 printers: Add mnemonics to the "Add Printer" buttons 2023-06-27 16:21:37 -03:00
Jiri Grönroos
4b478b86f9 Update Finnish translation
(cherry picked from commit 8e70796979)
2023-06-25 10:54:10 +00:00
velsinki
44e1a1228f users: Improve avatar crop mechanics
The resizing and movement mechanics for the avatar crop can be finicky,
because:

1. The crop resets to the last valid crop when you drag out of range, so
   that a somewhat quick drag does not go to the edge.
2. A corner drag only works in one direction, as the use of
   eval_radial_line is not correct.
3. A side drag acts the same as a corner drag.
4. A slow drag won't move the crop, especially if the widget is larger.

All these issues are fixed with this partial rewrite of the resize and
movement logic:

1. A drag out of range will result in a size that is guaranteed to touch
   the edge, making a crop to the edge much easier.
2. Instead of fixing eval_radial_line, we just "bind" one side to the
   pointer position, making both directions act the same for a corner
   drag.
3. A side drag now scales around the center for the orthogonal side.
4. Rounding errors in calculating the previous delta are prevented.
2023-06-20 23:13:15 +00:00
Barnabás Pőcze
146aae180d cc-wifi-connection-list: Use correct setter in property getter
CcWifiConnectionList::forgettable is of type `gboolean` so use
`g_value_set_boolean()` in the getter instead of `g_value_set_object()`.
2023-06-13 04:35:38 +00:00
Eric Daigle
598e71fdd2 cc-power-panel: hide automatic suspend row in vm
As described in #2521, the automatic suspend row is currently shown
when Settings is running in a VM, in which case it has no effect.

This commit checks whether Settings is running in a VM and disables
showing the automatic suspend row in this case, as is done for the
Suspend/Hibernate rows. This prevents the user from being shown a
useless row in the power panel.

Closes #2521
2023-06-13 04:17:35 +00:00
Fareed
b813d378ec wi-fi: Update airplane mode row
airplane mode row wasn't updated
to be compatible with new Wi-Fi panel ui.

set airplane mode to be in preference group.
2023-06-12 19:41:20 -04:00
Fareed
1b70d766d6 wi-fi: Move controls out of headerbar
Enable switch and dropdown taken out of header bar.
Follow order of Network mockups for row order. Wifi hotspot
remains here until full network panel redesign completed.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2413
2023-06-12 19:40:04 -04:00
Dušan Kazik
21504ced91 Update Slovak translation
(cherry picked from commit ee3462686a)
2023-06-08 15:43:44 +00:00
Pablo Correa Gómez
08bf9f77c2 removable-media: Use a child for GtkCheckButton label to wrap it
It allows the panel to fit in narrow displays. The child property
for GtkCheckButton will only be available since 4.8

[1] https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4489
2023-06-08 01:11:11 +00:00
Marcos Miller
14bd84dc19 user-accounts: use GtkFileDialog for select avatar image.
The GtkFileChooser interface is deprecated in gtk 4.10.

A new GtkFileDialog api is used.

user-accounts: code improvement
2023-06-07 23:43:17 +00:00
Fareed
eccc4d304e wi-fi: Add delete icon in saved connections list
Each connection now has a delete icon to forget a saved connection.
List can still be generated to include the checkbox to forget multiple.
Follows mockups for wi-fi panel. Add translation comments.
2023-06-07 22:58:37 +00:00
Christopher Davis
5180092f4a build: Fix libadwaita subproject options
When implementing the workaround to allow us to use libadwaita
as a subproject, we forgot to move the default options to our
subproject declaration. This caused libadwaita's tests to be
built and subsequently fail our test stage.

This commit puts the options in the right place.
2023-06-07 18:21:55 -04:00
Christopher Davis
bb88cddb5c ci: Add appstream and rebuild CI image
libadwaita 1.4 depends on appstream, and builds have
been failing because the subproject fails to build.

This commit adds appstream as a dependency so that
the libadwaita subproject can build without issues.
We also bump FDO_DISTRIBUTION_TAG to rebuild the image.
2023-06-07 17:43:24 -04:00
Robert Ancell
c092bec8bc search-provider: Connect signal handlers in swapped form 2023-06-07 09:14:28 +12:00
Robert Ancell
d90d3ffdfa wacom: Connect signal handlers in swapped form 2023-06-07 09:14:28 +12:00