43 lines
1.5 KiB
Diff
43 lines
1.5 KiB
Diff
Source: https://src.fedoraproject.org/rpms/apostrophe/blob/03c4bd0695446e51dc466201d94719610c2d89f0/f/webkit2gtk4.1.patch
|
|
See: https://gitlab.gnome.org/World/apostrophe/-/issues/440
|
|
|
|
diff --git a/apostrophe/inline_preview.py b/apostrophe/inline_preview.py
|
|
index 6e2fcc8..7a3c84f 100644
|
|
--- a/apostrophe/inline_preview.py
|
|
+++ b/apostrophe/inline_preview.py
|
|
@@ -22,7 +22,7 @@ from urllib.parse import unquote
|
|
import gi
|
|
|
|
gi.require_version("Gtk", "3.0")
|
|
-gi.require_version("WebKit2", "4.0")
|
|
+gi.require_version("WebKit2", "4.1")
|
|
from gi.repository import Gtk, Gdk, GdkPixbuf, GLib
|
|
from gi.repository import WebKit2
|
|
from apostrophe import latex_to_PNG, markup_regex
|
|
diff --git a/apostrophe/preview_handler.py b/apostrophe/preview_handler.py
|
|
index f2edd61..dce6ef2 100644
|
|
--- a/apostrophe/preview_handler.py
|
|
+++ b/apostrophe/preview_handler.py
|
|
@@ -22,7 +22,7 @@ import gi
|
|
from apostrophe.preview_renderer import PreviewRenderer
|
|
from apostrophe.settings import Settings
|
|
|
|
-gi.require_version('WebKit2', '4.0')
|
|
+gi.require_version('WebKit2', '4.1')
|
|
from gi.repository import WebKit2, GLib, Gtk, GObject
|
|
|
|
from apostrophe.preview_converter import PreviewConverter
|
|
diff --git a/apostrophe/preview_web_view.py b/apostrophe/preview_web_view.py
|
|
index bfd932c..a3599c8 100644
|
|
--- a/apostrophe/preview_web_view.py
|
|
+++ b/apostrophe/preview_web_view.py
|
|
@@ -17,7 +17,7 @@ import webbrowser
|
|
|
|
import gi
|
|
|
|
-gi.require_version('WebKit2', '4.0')
|
|
+gi.require_version('WebKit2', '4.1')
|
|
from gi.repository import WebKit2, GLib, GObject
|
|
|
|
|