Skip to content

Commit

Permalink
Merge pull request #1748 from rmartin16/gtk-webkit-dep
Browse files Browse the repository at this point in the history
Bump GTK3 WebKit2 Debian package dependency from 4.0 to 4.1
  • Loading branch information
freakboy3742 committed Apr 24, 2024
2 parents cb71e43 + 32fa2bf commit 5a38a63
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions changes/1748.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
New projects for Toga on GTK3 now recommend using ``gir1.2-webkit2-4.1`` instead of ``gir1.2-webkit2-4.0`` for ``WebView`` support.
2 changes: 1 addition & 1 deletion docs/reference/platforms/linux/system.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ but non ``-dev`` packages at runtime.
they can optionally include version pins. Briefcase will automatically include
the dependencies needed for Python. For example::

system_runtime_requires = ["libgtk-3-0 (>=3.14)", "libwebkit2gtk-4.0-37"]
system_runtime_requires = ["libgtk-3-0 (>=3.14)", "libwebkit2gtk-4.1-0"]

will specify that your app needs Python 3, a version of ``libgtk >= 3.14``, and any
version of ``libwebkit2gtk``.
Expand Down
3 changes: 2 additions & 1 deletion src/briefcase/bootstraps/toga.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def pyproject_table_linux_system_debian(self):
# Dependencies that GTK looks for at runtime
"libcanberra-gtk3-module",
# Needed to provide WebKit2 at runtime
# "gir1.2-webkit2-4.0",
# Note: Debian 11 and Ubuntu 20.04 require gir1.2-webkit2-4.0 instead
# "gir1.2-webkit2-4.1",
]
"""

Expand Down
6 changes: 4 additions & 2 deletions tests/commands/new/test_build_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def main():
# Dependencies that GTK looks for at runtime
"libcanberra-gtk3-module",
# Needed to provide WebKit2 at runtime
# "gir1.2-webkit2-4.0",
# Note: Debian 11 and Ubuntu 20.04 require gir1.2-webkit2-4.0 instead
# "gir1.2-webkit2-4.1",
]
""",
pyproject_table_linux_system_rhel="""\
Expand Down Expand Up @@ -1075,7 +1076,8 @@ def main():
# Dependencies that GTK looks for at runtime
"libcanberra-gtk3-module",
# Needed to provide WebKit2 at runtime
# "gir1.2-webkit2-4.0",
# Note: Debian 11 and Ubuntu 20.04 require gir1.2-webkit2-4.0 instead
# "gir1.2-webkit2-4.1",
]
""",
pyproject_table_linux_system_rhel="""\
Expand Down

0 comments on commit 5a38a63

Please sign in to comment.