[gnome-bluetooth] build: Switch to GTK4



commit 243eff13a79ba02495d123e9ca22ed35584dc3eb
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Oct 26 22:30:38 2021 -0300

    build: Switch to GTK4
    
    Switch the build system to GTK4. This breaks the build quite intensely.

 .gitlab-ci.yml         | 2 +-
 lib/meson.build        | 2 +-
 meson.build            | 2 +-
 tests/integration-test | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9f7d6813..862fccd1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,7 +4,7 @@ variables:
   DEPENDENCIES:
     gtk-doc
     gobject-introspection-devel
-    gtk3-devel
+    gtk4-devel
     systemd-devel
     gsound-devel
     libnotify-devel
diff --git a/lib/meson.build b/lib/meson.build
index 35c7c01a..a30c0e9b 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -114,7 +114,7 @@ if enable_gir
   gir_incs = [
     'GModule-2.0',
     'GObject-2.0',
-    'Gtk-3.0',
+    'Gtk-4.0',
   ]
 
   gnome.generate_gir(
diff --git a/meson.build b/meson.build
index 536acc29..9044648d 100644
--- a/meson.build
+++ b/meson.build
@@ -99,7 +99,7 @@ add_project_arguments(common_flags + compiler_flags, language: 'c')
 
 gio_dep = dependency('gio-2.0', version: '>= 2.44')
 gio_unix_dep = dependency('gio-unix-2.0')
-gtk_dep = dependency('gtk+-3.0', version: '>= 3.12.0')
+gtk_dep = dependency('gtk4', version: '>= 4.4')
 gsound_dep = dependency('gsound')
 libnotify_dep = dependency('libnotify', version: '>= 0.7.0')
 libudev_dep = dependency('libudev')
diff --git a/tests/integration-test b/tests/integration-test
index ff32fe96..f73621c2 100755
--- a/tests/integration-test
+++ b/tests/integration-test
@@ -28,7 +28,7 @@ try:
     from gi.repository import GLib
     from gi.repository import Gio
 
-    gi.require_version('Gtk', '3.0')
+    gi.require_version('Gtk', '4.0')
     from gi.repository import Gtk
 except ImportError as e:
     sys.stderr.write('Skipping tests, PyGobject not available for Python 3, or missing GI typelibs: %s\n' % 
str(e))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]