Skip to content

Commit

Permalink
silence warning gtk version (#542)
Browse files Browse the repository at this point in the history
Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  • Loading branch information
JohnRDOrazio authored Sep 3, 2024
1 parent 3fb1ab5 commit df1e6d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gramps_webapi/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
# depending on whether needed dependencies are available.
try:
import gi
gi.require_version('Gtk', '3.0')

REPORT_FILTERS = ["gv", "dot", "gvpdf"]
REPORT_DEFAULTS = {
Expand Down

0 comments on commit df1e6d2

Please sign in to comment.