diff options
Diffstat (limited to 'src/main.py')
-rw-r--r-- | src/main.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.py b/src/main.py index ea387eb..91fed06 100644 --- a/src/main.py +++ b/src/main.py @@ -24,8 +24,9 @@ import traceback gi.require_version('Gtk', '4.0') gi.require_version('Adw', '1') +gi.require_version("Spelling", "1") -from gi.repository import Gtk, Gio, Adw +from gi.repository import Gtk, Gio, Adw, Spelling, GtkSource from .window import WeegtkWindow from weegtk import network @@ -56,6 +57,11 @@ class WeegtkApplication(Adw.Application): # https://gitlab.gnome.org/GNOME/gtk/-/issues/5917 self.pages = [] + # Add custom adwaita source theme so editing widget matches background + manager = GtkSource.StyleSchemeManager().get_default() + manager.append_search_path(f"{os.environ["WEEGTK_INSTALL_DIR"]}/weegtk") + manager.force_rescan() + conf = config.read() if config.str_to_bool(conf["relay"]["autoconnect"]): self.connect_to_weechat() |