Commit graph

6763 commits

Author SHA1 Message Date
Felipe Borges
e03000bd73 universal-access: Add "animations" to desktop file keywords
In commit a825ded085 we added the option
to enable/disable animations in the desktop as an accessibility feature.

Adding the keyword makes it possible to find the Accessibility
settings while searching for "animations" in the shell or in
gnome-control-center.

Fixes #1620
2022-02-04 17:23:56 +00:00
Marek Kasik
20adb5632f printers: Remove redundant UI properties
Remove redundant UI properties from PPDSelectionDialog's UI file.
2022-02-04 17:50:04 +01:00
Marek Kasik
613a2d8b5b printers: Fix UI file of PPDSelectionDialog
A regression from the GTK4 port.
2022-02-04 17:15:53 +01:00
Marek Kasik
52fdf0435e printers: Expand PpPrinterEntry when window resizes
A regression from the GTK4 port.
2022-02-04 17:15:53 +01:00
Marek Kasik
e7a1501d13 printers: Do not ellipsize title of details dialog
A regression from the GTK4 port.
2022-02-04 17:15:53 +01:00
Marek Kasik
634d622c7a printers: Show file chooser dialog when selecting PPD
A regression from the GTK4 port.
2022-02-04 17:15:53 +01:00
Philip Withnall
d46601d590 user-accounts: Make malcontent-control optional
Hide the button to open the parental controls UI if it’s not installed.
This will allow distributions to split the dependency, making
gnome-control-center suggest (rather than require) malcontent-ui, while
still requiring libmalcontent.

In turn, this will allow malcontent-ui to be uninstalled without
requiring gnome-control-center to be uninstalled, which will satisfy
users who feel the need to uninstall it because it’s not useful to them.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-02-03 14:18:25 +00:00
Mohammed Sadiq
5855b661fe wifi: Fix to use the updated details to create hotspot
Let the callback to "response" signal run after the default
so that we use the updated details to create hotspot.
Otherwise, the changes made won't be used.

This is required as the default handler updates the connection
details in cc-wifi-hotspot-dialog.
2022-02-01 17:29:54 +00:00
Felipe Borges
1cca8708c7 thunderbolt: Use AdwPreferencesGroup for devices list
Related: #1587
2022-02-01 16:16:39 +00:00
Felipe Borges
12b940d411 thunderbolt: Wrap "Direct access" UI into a AdwActionRow
This allows for simplifying the logic of the states of this row
too.
2022-02-01 16:16:39 +00:00
Felipe Borges
f3122f10b1 thunderbolt: Port CcBoltDeviceEntry to AdwActionRow 2022-02-01 16:16:39 +00:00
Christopher Davis
3250b3fab5 applications: Use AdwPreferences{Page,Group} for Built-in Permissions dialog, make it resizable 2022-02-01 14:56:14 +00:00
Christopher Davis
f2d7f5de40 applications: Make handler dialog resizable 2022-02-01 14:56:14 +00:00
Christopher Davis
65b939ad38 applications: make storage dialog resizable and use AdwPreferences{Page,Group}
The dialog needs to be resizeable in order to work on mobile.
For that reason, it also needs scrolling. Because it needs
scrolling, we can't have the flat headerbar without custom
behavior.

For now, use a regular headerbar and AdwPreferences{Group,Page}
2022-02-01 14:56:14 +00:00
Georges Basile Stavracas Neto
ea7012d9a9 online-accounts: Hide accounts group by default
We show it whenever an account is added, and it needs to
start hidden to not break style.

Related: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1587
2022-02-01 11:42:13 -03:00
Carlos Garnacho
a9127145d3 wacom: Move tablet/stylus sections to AdwPreferencesGroup
There is now the header-suffix property that makes it possible to add
tablet/stylus icons besides the title/description, so we can simply
use this widget.
2022-02-01 14:18:53 +00:00
Carlos Garnacho
653d66b7a7 wacom: Add description subtitles to tablet devices 2022-02-01 14:18:53 +00:00
Carlos Garnacho
04bb70a5b3 wacom: Add description subtitles to styli 2022-02-01 14:18:53 +00:00
Carlos Garnacho
9bd0b94527 wacom: Use right function to find whether stylus has eraser tip
We are looking for paired styli that act as standalone erasers, this is
not what we are looking for here.
2022-02-01 14:18:53 +00:00
Carlos Garnacho
2bbc1fd2bb wacom: Update tablet images
These had some additional padding that is undesirable in the new
UI. Drop that so things are nicely aligned.
2022-02-01 14:18:53 +00:00
Carlos Garnacho
0379531980 wacom: Restore stylus icons
These images needed updating, this is done separately in this commit.
With this, stylus sections also get a nice icon.
2022-02-01 14:18:53 +00:00
Carlos Garnacho
7806b88460 wacom: Refresh UI
Use libadwaita widgets, and follow recent mockups for this panel.
2022-02-01 14:18:53 +00:00
Christopher Davis
200e524aab color: Don't update toolbar buttons when the toolbar is in destruction
GtkListBox's dispose function removes all rows, and
`gtk_list_box_remove ()` sends `row-selected`. In turn,
as we listen to row-selected, we end up calling
functions on our toolbar while it may be in the
process of disposing. This causes a crash.

This commit introduces an early return if the toolbar is
being destroyed.
2022-02-01 14:06:18 +00:00
Mohammed Sadiq
4b2d32e53f datetime: Fix crash when loading the panel
When the month row value is changed, the signal callback uses
the year value from the year spin button.  So set year value
before month is set so that the year is set to a valid value
thus avoiding a crash with invalid year.
2022-02-01 13:59:33 +00:00
Mohammed Sadiq
ebab3214ca wifi: Avoid padding in hotspot QR code
The padding is now handled by CSS, so we no longer have to set padding
in expense of QR pixel quality
2022-02-01 18:25:23 +05:30
Christopher Davis
8347e01453 background: Use AdwPreferences{Page,Group}
Now that AdwPreferencesGroup has support for
header suffixes, we can cut out a lot of widgetry
by using it and AdwPreferencesPage directly.
2022-01-31 12:15:43 -08:00
Jakub Steiner
13376ecb8b Add individual app icons 2022-01-31 14:08:22 +00:00
Norbert Pfeiler
c340798b5c info-overview: Remove trailing space after CPU name
It was apparent when selecting the text, as the text is right aligned.

»AMD® Ryzen threadripper 1950x 16-core processor × 32 «
↓
»AMD® Ryzen threadripper 1950x 16-core processor × 32«
2022-01-29 12:39:12 +01:00
Ivan Molodetskikh
03299794a6 keyboard: Update screenshot key bindings
They moved from g-s-d to gnome-shell.
2022-01-27 23:00:05 +00:00
Bastien Nocera
25518a6bca info: Use udev to get the hardware RAM size
libgtop gets the RAM size as is visible to the OS, so the physical RAM
size minus all the reserved areas listed at the top of your usual Linux
dmesg output.

Use systemd 248's MEMORY_ARRAY_* properties attached to the pseudo-DMI
device to get the size of the RAM sticks/chips as the user expects.

Closes: #1540
2022-01-27 10:08:37 +01:00
Bastien Nocera
a079eba2a7 info: Split code that fetches RAM amount 2022-01-27 10:07:41 +01:00
Mohammed Sadiq
9dfaca3725 common: time-entry: Fix changing time clicking the buttons
The change-value signal was not handled when emitted.  Add a handler
to handle the signal and update time as needed.
2022-01-27 03:32:58 +00:00
Christopher Davis
25b71f6101 search: Adjust row and search group text
Changes the copy of the panel to match the latest mockups.

See d08607e03b/search/search.png
2022-01-26 19:26:49 -08:00
Christopher Davis
b1a17ad10e search: Use GMenuModel and GActions for row menu
GtkModelButton is an implementation detail of GTK.
It should not be used by applications. Instead, we
should use menu models to create menus, which are
consistently styled by libadwaita.
2022-01-26 19:26:49 -08:00
Christopher Davis
41c9d956ae search: Subclass AdwActionRow for CcSearchPanelRow
Also set the `icon-size` to large
2022-01-26 19:26:45 -08:00
Christopher Davis
95c5d443ae search: Move header controls to action rows
Inspired by the bluetooth mockups. According to the
designers, we should move away from switches in header
bars.
2022-01-26 19:02:56 -08:00
Christopher Davis
e5a2281dbe search: Use AdwPreferences{Page,Group} 2022-01-26 19:02:56 -08:00
Bastien Nocera
fa01d3f10a power: Add scenario for a 2nd non-charging laptop battery 2022-01-27 02:52:20 +00:00
Bastien Nocera
6c6d9f4f38 power: Fix launching upower from scenario tester
Not everyone would have upower built under jhbuild, so use the system
one if we can't find it.
2022-01-27 02:52:20 +00:00
Georges Basile Stavracas Neto
043d4fab74 datetime: Switch day row to AdwActionRow
Another small cleanup.
2022-01-26 23:47:36 -03:00
Georges Basile Stavracas Neto
b7876233e9 datetime: Switch year row to AdwActionRow
Another nice, small cleanup
2022-01-26 23:46:10 -03:00
Georges Basile Stavracas Neto
65c53a4c57 datetime: Switch Month row to AdwComboRow
It fits it much better, and allows for a great cleanup.
2022-01-26 23:43:43 -03:00
Jonas Ådahl
21862c3e48 display: Only display configuration options if apply is allowed
org.gnome.Mutter.DisplayConfig contains a new property that tells
whether apply will be allowed to be called or not. Whether it is true or
not depends on policy stored in any of its monitors.xml configuration
files.

In order to make it clearer that configuration is not possible, except
for night light, make sure to hide the unconfigurable parts, leaving
only night light.
2022-01-25 16:43:26 +00:00
Pablo Correa Gómez
7c91fc1400 datetime: get month_label from GtkFlowBox widget
Using g_date_time_format to get the name of the month
translates the name according to LC_TIME. This is inconsistent
with all other labels displayed, which get translated according
to LC_MESSAGES. By taking the label from the corresponding
entry in the GtkFlowBox, we avoid the incosistency

Fixes #1507
2022-01-25 11:42:41 +00:00
Christopher Davis
fdf5841b8e lock: Remove redundant haligns
AdwActionRow handles horizontal alignment for us.
2022-01-24 21:33:47 +00:00
Christopher Davis
847f1ea584 lock: Use AdwComboRow for blank screen delay 2022-01-24 21:33:47 +00:00
Christopher Davis
0c5d3fb50d lock: Use AdwComboRow for screen lock delay 2022-01-24 21:33:47 +00:00
Christopher Davis
848224ea57 lock: Use AdwPreferences{Page,Group} 2022-01-24 21:33:47 +00:00
Sam Hewitt
b0bc4f4a76 network: Minimize small symbolic icons 2022-01-24 20:07:52 +00:00
Christopher Davis
05187608f5 info-overview: Fix Software Updates row
See https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1587
2022-01-22 13:16:37 -08:00