[gnome-chess] Use libadwaita
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Use libadwaita
- Date: Mon, 29 Nov 2021 15:54:55 +0000 (UTC)
commit ffd02d46d816928feb3abe50275caa6f8a1758a1
Author: Michael Catanzaro <mcatanzaro redhat com>
Date: Mon Nov 29 09:54:09 2021 -0600
Use libadwaita
This makes Chess nice and pretty and ready for GNOME 42.
meson.build | 1 +
src/gnome-chess.vala | 2 +-
src/meson.build | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index ea9a4e0..09676a4 100644
--- a/meson.build
+++ b/meson.build
@@ -33,6 +33,7 @@ gio = dependency('gio-unix-2.0', version: '>=' + min_glib_version)
glib = dependency('glib-2.0', version: '>=' + min_glib_version)
gmodule = dependency('gmodule-2.0', version: '>=' + min_glib_version)
gtk = dependency('gtk4')
+libadwaita = dependency('libadwaita-1')
librsvg = dependency('librsvg-2.0', version: '>= 2.46.0')
posix = meson.get_compiler('vala').find_library('posix')
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 2792341..3e8e68b 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -27,7 +27,7 @@ public const string HELP_ACTION_NAME = "help";
public const string ABOUT_ACTION_NAME = "about";
public const string QUIT_ACTION_NAME = "quit";
-public class ChessApplication : Gtk.Application
+public class ChessApplication : Adw.Application
{
private GLib.Settings settings;
diff --git a/src/meson.build b/src/meson.build
index 9e75867..d59af83 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -22,6 +22,7 @@ chess_deps = [
glib,
gmodule,
gtk,
+ libadwaita,
librsvg,
posix,
libchess_dep,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]