Commit graph

20768 commits

Author SHA1 Message Date
Georges Basile Stavracas Neto
b81a180c4f thunderbolt: Port to GTK4
The C code of this panel is just so. damn. good. Porting it was
a breeze.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
3b6b678db9 diagnostics: Port to GTK4
A trivial one.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
f043ca3680 sharing: Port to GTK4
Again, it was easier to just switch some of the code to use
AdwActionRow, and that's what I've done in this commit.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
25edfb4a4b mouse: Port to GTK4
This one is an interesting case. It was easier to simply switch
to AdwPreferencesPage than actually port all the GtkFrames in
there.

In addition to that, the mouse test page now uses a GtkPicture
instead of a GtkImage, and the GtkDrawingArea API changes are
reflected in the code.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
2d762680d2 usage: Port to GTK4 2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
696ed350bb applications: Port to GTK4 2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
6cfd6e0652 multitasking: Port to GTK4 2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
a0d49cb3a8 power: Port to GTK4
Extra care was needed for the combo boxes, and the way we currently
use GtkStringList is kind of hacky, but overall things seem to be
working fine.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
800cab08bf microphone: Port to GTK4 2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
b965f7cf50 lock: Port to GTK4
This one was even more trivial than the previous one!
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
449c55be3a location: Port to GTK4
An almost trivial port too.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
26630338ba search: Port to GTK4
This one was the first panel ported that used Drag n' Drop, and
we can see how much of an improvement GTK4 is compared to GTK3
when handling DnD.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
c43eeea954 removable-media: Port to GTK4
A pretty boring, regular port again. No new challenges here.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
b9064cf2f6 default-apps: Port to GTK4
An easy one, mostly removing code from the UI file.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
9995a3bb79 universal-access: Port to GTK4
This was quite a huge port, but fortunately it mostly involved
removing tons of deprecated widgets (without replacement; just
drop them) and adjusting packing properties.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
a719008403 sound: Port to GTK4 2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
eff96c4cb1 camera: Port to GTK4 2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
75f6566a91 notifications: Port to GTK4
This one was relatively easy, since most of the brokenness came
from using deprecated properties that can just be dropped, and
packaging that can also just be dropped.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
3c8a0aa0b1 info-overview: Port to GTK4
- Remove visible=True properties from the UI file
 - Use GtkPicture for the OS logo
 - Drop gtk_dialog_run()
 - Port gnome-control-center-print-renderer to GTK4
   by using GdkSurface to create the GL context
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
30dcd1f973 window: Port to GTK4
- Inherit AdwApplicationWindow
 - GtkHeaderBar → AdwHeaderBar
 - Simplify the widget tree structure [1]
 - Drop custom key handler, use bindings instead

[1] It used to have a big messy chain of leaflets, headers,
and whatnot. Now it's simplified as:

 AdwLeaflet
 + ---------------- + --------------------------------- +
 |   AdwHeaderBar   |           AdwHeaderBar            |
 + ---------------- + --------------------------------- +
 |   GtkSearchBar   |                                   |
 + ---------------- +                                   |
 |                  |                                   |
 |                  |                                   |
 |                  |                                   |
 |                  |             GtkStack              |
 |   CcPanelList    |                                   |
 |                  |                                   |
 |                  |                                   |
 |                  |                                   |
 |                  |                                   |
 + ---------------- + --------------------------------- +
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
0818bf469c panel: Port to GTK4
Inherit AdwBin.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
521ea3a635 panel-list: Port to GTK4
- Inherit AdwBin since GtkStack is a final class now
 - Replace GtkContainer APIs by their widget-specific ones
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
15a67221a0 application: Add CSS provider on startup
GTK isn't fully initialized on init, so move that to startup.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
e42a819723 application: Subclass AdwApplication
It'll handle setting up various things for us.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
59bdf81028 common: Port to GTK4
This is only the bare minimum to make everything under panels/common
build. Since these widgets are used by the main window, port them
first.

CcTimeEntry was particularly hard to port. That's because GtkEntry
is a final class now. Overall, though, I'm happy with how it turned
out to be - much cleaner, less code, more obvious.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
5ca53a0a78 Drop Cheese dependency
Cheese is not ready for GTK4, and probably won't ever be, so just
drop the dependency. We'll reimplement webcam support using PipeWire
later.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
5303a977b1 Switch to GTK4 & libadwaita
Nothing builds now.
2021-12-14 22:34:21 -03:00
Georges Basile Stavracas Neto
f41ab920b3 Disable all panels and tests
We'll start the transition by disabling all panels and tests, so that
we can go through them one by one, which should make the review process
significantly less painful.
2021-12-14 22:34:21 -03:00
Aurimas Černius
15e351a314 Updated Lithuanian translation 2021-12-14 13:47:41 +02:00
Aleksandr Melman
23243534da Update Russian translation 2021-12-13 11:27:11 +00:00
Felipe Borges
8c1d7a726c flatpak: Use "gnome-3-34" branch for gnome-bluetooth
gnome-bluetooth got its API version bumped for the GTK4 port.
Let's pin the old stable version for now (until g-c-c ports to
GTK4).
2021-12-06 12:59:27 +01:00
Fabio Tomat
38c7d50092 Update Friulian translation 2021-12-03 11:00:25 +00:00
Stéphane Travostino
a650940bda flatpak: fix flatpak build by pulling the correct branch 2021-11-30 15:38:56 +00:00
Daniel Mustieles
c56d2f0d06 Updated Spanish translation 2021-11-26 17:42:17 +01:00
Danial Behzadi
8802857f60 Update Persian translation 2021-11-24 08:56:10 +00:00
Rafael Fontenelle
8ee6e6583d Update Brazilian Portuguese translation
(cherry picked from commit 7b2765ad8e)
2021-11-23 07:33:27 +00:00
Fabio Tomat
bba99ec100 Update Friulian translation 2021-11-22 13:44:18 +00:00
Fran Dieguez
ef0bdef4a7 Update Galician translation 2021-11-19 22:39:09 +00:00
Goran Vidović
3c270948eb Update Croatian translation 2021-11-19 16:09:55 +00:00
Bastien Nocera
a9c398e5d9 color: Remove profile upload feature
As it was already removed in colord itself:
98f83acc91 (diff-cb19db05cc548372b27ebee7d47bc00b6788ad05da6f5d7fff107c45bbfba38f)

This removes the only direct libsoup 2.x dependency in
gnome-control-center.
2021-11-18 16:39:44 +01:00
Bastien Nocera
4b1f7011c4 wacom: Add scenario tester
Running the helper will launch gnome-control-center with a mocked Wacom
Cintiq tablet through umockdev when one isn't present or easily available.

The Cintiq was selected as it will trigger showing all the different
buttons Wacom tablets can make the panel spawn.
2021-11-18 14:57:22 +00:00
Bastien Nocera
8ac36f479e wacom: Add a fake stylus when mocking a tablet 2021-11-18 14:57:22 +00:00
Bastien Nocera
a93a023229 wacom: Split off notebook switching for detected stylus
This will reduce code duplication for mocking styli.
2021-11-18 14:57:22 +00:00
Bastien Nocera
d47b9be08a wacom: Print errors for libwacom_new_from_*() calls
This helps with debugging.
2021-11-18 14:57:22 +00:00
Selyan Slimane AMIRI
69ea0be29b Add Kabyle translation 2021-11-18 08:17:04 +00:00
Daniel Mustieles
e4f2df9180 Updated Spanish translation 2021-11-16 15:39:29 +01:00
Changwoo Ryu
b60b980c9e Update Korean translation
(cherry picked from commit a1f01da3e0)
2021-11-13 18:02:18 +00:00
Hugo Carvalho
5925da263c Update Portuguese translation 2021-11-13 15:40:16 +00:00
Goran Vidović
61d74f200a Update Croatian translation 2021-11-12 11:20:41 +00:00
Goran Vidović
35c496cea5 Update Croatian translation 2021-11-12 11:19:39 +00:00