Commit graph

6026 commits

Author SHA1 Message Date
Robert Ancell
a99cafbdb4 network: Simplify EapMethodSimple constructor
We don't need an enum and a lookup table, just send the string directly.
2020-01-31 14:13:15 +00:00
Robert Ancell
37f5c37261 network: Simplify autheap_allowed logic
Instead of checking later if this should be enabled, only enable it for methods
that can do it.
2020-01-31 14:13:15 +00:00
Robert Ancell
d168eee5cd network: Remove WirelessSecurity constructor parameters that were never changed 2020-01-31 14:13:15 +00:00
Robert Ancell
4bc58cac44 network: Remove EAP constructor parameters that were never changed 2020-01-31 14:13:15 +00:00
Robert Ancell
7d9d4d4289 network: Convert WirelessSecurity objects into GtkTemplates 2020-01-31 14:13:15 +00:00
Robert Ancell
d4ec8a570b network: Convert WirelessSecurity into an interface 2020-01-31 14:13:15 +00:00
Robert Ancell
b964283fb0 network: Refactor how username/passwords are retained when switching EAP methods
This was previously done by storing the value inside the WirelessSecurity class.
This stopped the subclasses from becoming Gtk widgets.

The "always_ask" code was removed as it didn't seem to actually retain when
switching. This might need to be fixed at a later time.
2020-01-31 14:13:15 +00:00
Robert Ancell
7f4eaf5eec network: Remove unused parameter 2020-01-31 14:13:15 +00:00
Robert Ancell
cec32ae47e network: Fix type in EAPMethod interface 2020-01-31 14:13:15 +00:00
Marek Kasik
c54db039f8 printers: Avoid read of freed memory
This fixes an issue when on_get_job_attributes_cb()
was called after Printers panel has been finished.
It adds a GCancellable to pp_job_get_attributes_async()
calls.
2020-01-31 14:06:32 +00:00
Felipe Borges
8a1c6f696e user-accounts: Rename "Last Login" entry to "Account Activity"
According to the mockups at
https://gitlab.gnome.org/Teams/Design/settings-mockups/raw/master/users/users.png

Other than renaming the label, we prepend "Last login" to the
date-time string.

Fixes #771
2020-01-30 08:04:09 +00:00
Felipe Borges
6db4d9e933 user-account: Add border around user image button
According to the mockups at
https://gitlab.gnome.org/Teams/Design/settings-mockups/raw/master/users/users.png

Fixes #771
2020-01-30 08:04:09 +00:00
Felipe Borges
05313d35e2 user-accounts: UI style improvements
According to the mockups at
https://gitlab.gnome.org/Teams/Design/settings-mockups/raw/master/users/users.png

Fixes #771
2020-01-30 08:04:09 +00:00
Felipe Borges
43b41cb1fa user-accounts: Make the full_name_entry and editable widget
According to the mockups at
https://gitlab.gnome.org/Teams/Design/settings-mockups/blob/master/users/users.png

Fixes #771
2020-01-30 08:04:09 +00:00
Philip Withnall
6284162a1d user-accounts: Fix use of an uninitialised variable in the carousel
`dest_x` is not set if `gtk_widget_translate_coordinates()` fails, which
it can do before the widget is realised.

This fixes a valgrind warning, but doesn’t change any user-visible
behaviour as far as I can tell.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-01-29 17:43:24 +00:00
Robert Ancell
4fe973022a printers: Simplify function 2020-01-28 14:46:53 +00:00
Robert Ancell
c0cd99d2a8 printers: Convert jobs dialog to use GtkTemplate 2020-01-28 14:46:53 +00:00
Robert Ancell
d03da03ee9 printers: Set transient window externally to dialog code 2020-01-28 14:46:53 +00:00
David Bauer
da0c45f2ab ce-connection-row: add SAE support 2020-01-27 23:11:30 +00:00
David Bauer
97f6c8f53c ce-page-details: add SAE support 2020-01-27 23:11:30 +00:00
David Bauer
2e79c53194 ce-page-security: add SAE support 2020-01-27 23:11:30 +00:00
Mohammed Sadiq
68c4023f06 power: Hide power button when chassis is handset
Just like tablets, handset power key is often handled differently
2020-01-27 21:20:29 +00:00
Allan Day
90e0774a19 notifications: Change switch label to Do Not Disturb
!97 added a do not disturb switch to GNOME Shell. This works by
changing the org.gnome.desktop.notifications.show-banners setting.
The switch that controls this setting in the control center should
therefore use the same Do Not Disturb label as the switch in the
shell.
2020-01-27 17:58:17 +00:00
Ondrej Holy
7f010f3138 users: Show username hint immediately
Changes made by GNOME/gnome-control-center!359 caused that the username
hint ("This will be used to name your home folder and can’t be changed.")
is not shown immediately after opening the "Add User" dialog. This change
was unwanted. Let's show the hint immediately after opening the dialog as
it was before.
2020-01-22 10:55:13 +01:00
Robert Ancell
181a496a4e printers: Return a GPtrArray instead of GList
This makes the memory able to be managed with g_autoptr.
This fixes a memory leak where the job list was leaked if the operation was cancelled.
2020-01-21 23:12:14 +00:00
Robert Ancell
baed38e31c background: Fix CI build breaking on gnome-desktop API change
The change was added in feeee1c. For now we will handle the old and the new API
until this can be built.
2020-01-22 12:01:22 +13:00
Robert Ancell
70f8f74765 background: Move gnome-desktop-thumbnail.h includes
Remove one that wasn't needed, add in two in files that don't include it.
2020-01-22 11:40:42 +13:00
Robert Ancell
179eac628c background: Remove unused include 2020-01-22 11:40:39 +13:00
Javier Jardón
feeee1c744 Adapt to new gnome-desktop API changes 2020-01-16 13:55:40 +00:00
Ondrej Holy
7611e07e3f user-accounts: Prevent usage of uninitialized value
gtk_widget_translate_coordinates() doesn't have to always set the
dest_x argument. Let's initialize the argument before use to prevent
usage of uninitialized value, which also prevents "Conditional jump
or move depends on uninitialised value(s)" messages from valgrind.
2020-01-13 16:20:01 +00:00
Philip Withnall
8052466726 user-accounts: Fix a leak on destruction of CcCarousel
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-01-13 11:50:40 +00:00
Mike Gorse
901ef8b0ff Thunderbolt: make BoltError enum a typedef
Fixes error when compiled with -fno-common
2020-01-09 21:34:12 +00:00
Philip Withnall
ef21229a5b network: Tweak wording of metered data checkbox in connection dialog
Make it clearer in two ways:
 • Explicitly mention ‘metered data’, as that’s a commonly used phrase.
 • Explicitly mention automatic software updates as being disabled on
   metered connections, to make the implications of this checkbox a
   little clearer.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: https://gitlab.gnome.org/GNOME/gnome-software/merge_requests/339
2020-01-08 15:46:22 +00:00
Robert Ancell
cc4478d4f8 sound: Add missing subwoofer icons
These were accidentally dropped in the migration from the old panel to the new one.

Fixes #825
2020-01-07 20:49:12 +00:00
Mohammed Sadiq
eb4fe4fc42 region: Implement new design for ‘Formats’ dialog
https://gitlab.gnome.org/GNOME/gnome-control-center/issues/635
2020-01-07 14:53:23 +13:00
Robert Ancell
96b1052bcd network: Remove markup from translatable strings 2020-01-06 16:57:43 +00:00
Robert Ancell
df71952112 keyboard: Remove markup from translatable strings 2020-01-06 16:57:43 +00:00
Robert Ancell
d2e96ff90f online-accounts: Remove markup from translatable strings 2020-01-06 16:57:43 +00:00
Robert Ancell
01fea23df1 sharing: Remove markup from translatable strings 2020-01-06 16:57:43 +00:00
Georges Basile Stavracas Neto
86a8ecb705 panel-list: Temporarily move the Network panel to below Wi-Fi
This is until we merge the Network, Wi-Fi, and Mobile Broadband
panels.
2020-01-06 15:15:30 +00:00
Georges Basile Stavracas Neto
aa98bf47da panel-list: Move Thunderbolt to the Privacy section 2020-01-06 15:15:30 +00:00
Georges Basile Stavracas Neto
5f640b9903 panel-list: Reorganize Devices section
Move the Power and Sound panel to there.
2020-01-06 15:15:30 +00:00
Georges Basile Stavracas Neto
64756d6b08 region, universal-access: Move to the Details section
They need to have their desktop files updated too.
2020-01-06 15:15:30 +00:00
Felipe Borges
3576133654 user-accounts: Use CcPermissionInfobar to lock/unlock the panel
This moves the GtkLockButton out of the headerbar and starts to
consume the CcPermissionInfobar API to lock/unlock the panel.

See #771
2020-01-06 14:43:11 +00:00
Felipe Borges
5d2a884ac7 common: Introduce "CcPermissionInfobar" widget
The "CcPermissionInfobar" widget is a more descriptive way to
communicate that some Settings panel needs authentication in order
to perform certain actions.

This widget doesn't handle the permissions (as in GPermission)
itself. It needs to be binded to an existing instance of GPermission,
and it will react to the permission's state (show when the current
user is not authorized, and hide when the user is authorized).

This is part of a big set of changes that aim to set a consistent
authentication method accross Settings panels.

See #685, #556, and #771
2020-01-06 14:43:11 +00:00
Felipe Borges
4180e75aad sound: Set audio icon based on volume
The same way that GNOME Shell does it, we set:
 * audio-volume-muted-symbolic when mute button is toggled*
 * audio-volume-low-symbolic when 0 < volume < 30%
 * audio-volume-medium-symbolic when 30% < volume < 70%
 * audio-volume-high-symbolic when 70% < volume <= 100%

When "muted" we can't actually rely on volume (it can be close
to zero but not absolute zero). Instead of requiring volume == 0,
we track the state based on whether the mute button is active.

Fixes #521
2019-12-18 12:00:02 +01:00
Robert Ancell
4c6208dc66 network: Fix memory leaks using g_find_program_in_path
Added in d61d13d
2019-12-18 00:31:54 +00:00
Carlos Garnacho
edd7f97422 wacom: Avoid poking disposed object
A little above in the function, we update the page UI, maybe destroying
the bits that allow decoupling display-attached tablets from their display.
Later on, we unconditionally update its GtkSwitch.

This can't bode well on tablets where the widget was already destroyed.
2019-12-18 00:24:22 +00:00
Robert Ancell
096eefe7b9 applications: Show snap interface controls 2019-12-18 12:29:19 +13:00
Robert Ancell
aa471faa4a applications: Show snap app sizes 2019-12-18 12:29:19 +13:00