[gnome-control-center/gbsneto/gtk4: 13/53] Switch to GTK4 & libadwaita
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gbsneto/gtk4: 13/53] Switch to GTK4 & libadwaita
- Date: Wed, 15 Dec 2021 01:34:33 +0000 (UTC)
commit 5303a977b1a6ae1c0c484a51bd32187724705756
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Oct 18 11:32:24 2021 -0300
Switch to GTK4 & libadwaita
Nothing builds now.
.gitmodules | 3 ---
meson.build | 25 ++++++++-----------------
subprojects/libadwaita.wrap | 3 +++
subprojects/libhandy | 1 -
4 files changed, 11 insertions(+), 21 deletions(-)
---
diff --git a/.gitmodules b/.gitmodules
index 60b7a8dba..5ab4a386d 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +1,3 @@
[submodule "subprojects/gvc"]
path = subprojects/gvc
url = https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
-[submodule "subprojects/libhandy"]
- path = subprojects/libhandy
- url = https://gitlab.gnome.org/GNOME/libhandy.git
diff --git a/meson.build b/meson.build
index e9b2d7345..3815be78f 100644
--- a/meson.build
+++ b/meson.build
@@ -99,24 +99,15 @@ libgvc = subproject(
)
libgvc_dep = libgvc.get_variable('libgvc_dep')
-libhandy_dep = dependency('libhandy-1', version: '>= 1.2.0', required: false)
-if not libhandy_dep.found()
- libhandy = subproject(
- 'libhandy',
- default_options: [
- 'examples=false',
- 'glade_catalog=disabled',
- 'introspection=disabled',
- 'tests=false',
- 'vapi=false',
- ]
- )
- libhandy_dep = libhandy.get_variable('libhandy_dep')
-endif
-
goa_req_version = '>= 3.25.3'
pulse_req_version = '>= 2.0'
+libadwaita_dep = dependency(
+ 'libadwaita-1',
+ fallback: ['libadwaita', 'libadwaita_dep'],
+ default_options: ['examples=false', 'introspection=disabled', 'tests=false', 'vapi=false'],
+)
+
accounts_dep = dependency('accountsservice', version: '>= 0.6.39')
colord_dep = dependency('colord', version: '>= 0.1.34')
gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0', version: '>= 2.23.0')
@@ -141,10 +132,10 @@ common_deps = [
gio_dep,
glib_dep,
gsettings_desktop_dep,
- libhandy_dep,
+ libadwaita_dep,
dependency('gio-unix-2.0'),
dependency('gthread-2.0'),
- dependency('gtk+-3.0', version: '>= 3.22.20')
+ dependency('gtk4', version: '>= 4.4'),
]
polkit_gobject_dep = dependency('polkit-gobject-1', version: '>= 0.103')
diff --git a/subprojects/libadwaita.wrap b/subprojects/libadwaita.wrap
new file mode 100644
index 000000000..a0c060937
--- /dev/null
+++ b/subprojects/libadwaita.wrap
@@ -0,0 +1,3 @@
+[wrap-git]
+url = https://gitlab.gnome.org/GNOME/libadwaita.git
+revision = main
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]