Skip to content

Commit

Permalink
t_main, main, dbus: Bump GTK and GDK down to 3.0 because of Taiko2k#1316
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Nov 25, 2024
1 parent 9940495 commit 73d485a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/tauon/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ def transfer_args_and_exit() -> None:
if d == "GNOME": #and os.environ.get("XDG_SESSION_TYPE") and os.environ.get("XDG_SESSION_TYPE") == "wayland":
try:
import gi.repository
gi.require_version("Gtk", "4.0")
# TODO(Martin): Bump to 4.0 - https://github.com/Taiko2k/Tauon/issues/1316
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk

gtk_settings = Gtk.Settings().get_default()
Expand Down
3 changes: 2 additions & 1 deletion src/tauon/t_modules/t_dbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@

import gi

gi.require_version("Gdk", "4.0")
# TODO(Martin): Bump to 4.0 - https://github.com/Taiko2k/Tauon/issues/1316
gi.require_version("Gdk", "3.0")
from gi.repository import Gdk, GLib

from tauon.t_modules.t_extra import filename_to_metadata, star_count2
Expand Down
3 changes: 2 additions & 1 deletion src/tauon/t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@
mac_maximize = (254, 176, 36, 255)
mac_minimize = (42, 189, 49, 255)
try:
gi.require_version("Gtk", "4.0")
# TODO(Martin): Bump to 4.0 - https://github.com/Taiko2k/Tauon/issues/1316
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk

gtk_settings = Gtk.Settings().get_default()
Expand Down

0 comments on commit 73d485a

Please sign in to comment.