From 13d87dbed5fc418e044bf80859efb453b62eb118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20K=C3=B6pcke?= Date: Fri, 16 Feb 2024 09:03:20 +0100 Subject: [PATCH] Python Previewer: Initialize Shumate (#884) See: - https://github.com/workbenchdev/demos/pull/94 - https://github.com/workbenchdev/Workbench/pull/879 - https://github.com/workbenchdev/Workbench/issues/738 --- src/langs/python/python-previewer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/langs/python/python-previewer.py b/src/langs/python/python-previewer.py index 71f283802..95098d7bf 100644 --- a/src/langs/python/python-previewer.py +++ b/src/langs/python/python-previewer.py @@ -22,6 +22,7 @@ gi.require_version("Graphene", "1.0") gi.require_version("Gsk", "4.0") gi.require_version("GtkSource", "5") +gi.require_version("Shumate", "1.0") gi.require_version("WebKit", "6.0") gi.require_version("Workbench", "0") @@ -34,6 +35,7 @@ Graphene, Gio, GtkSource, + Shumate, WebKit, Workbench, ) @@ -44,6 +46,7 @@ Adw.init() GtkSource.init() GObject.type_ensure(WebKit.WebView) +GObject.type_ensure(Shumate.SimpleMap) resource = Gio.Resource.load( f'/app/share/{os.environ["FLATPAK_ID"]}/re.sonny.Workbench.libworkbench.gresource'