[polari] app: Inherit from Adw.Application
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] app: Inherit from Adw.Application
- Date: Sat, 19 Mar 2022 15:19:35 +0000 (UTC)
commit ff9aa39f997b4947524f22dabd3ddac7113e58bb
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Dec 31 14:19:21 2021 +0100
app: Inherit from Adw.Application
This takes care of initializing libadwaita, loading its stylesheet
and support the system's dark-style preference.
Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/250>
src/application.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/application.js b/src/application.js
index 86c2a99f..867cd77d 100644
--- a/src/application.js
+++ b/src/application.js
@@ -1,3 +1,4 @@
+import Adw from 'gi://Adw';
import Gdk from 'gi://Gdk?version=4.0';
import Gio from 'gi://Gio';
import GLib from 'gi://GLib';
@@ -38,7 +39,7 @@ const MAX_RETRIES = 3;
const IRC_SCHEMA_REGEX = /^(irc?:\/\/)([\da-z.-]+):?(\d+)?\/(?:%23)?([\w.+-]+)/i;
export default GObject.registerClass(
-class Application extends Gtk.Application {
+class Application extends Adw.Application {
static [GObject.signals] = {
'prepare-shutdown': {},
'room-focus-changed': {},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]