From 73d485a7e68d025ebf161928f5307f81a021f941 Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Mon, 25 Nov 2024 01:53:31 +0100 Subject: [PATCH] t_main, main, dbus: Bump GTK and GDK down to 3.0 because of #1316 --- src/tauon/__main__.py | 3 ++- src/tauon/t_modules/t_dbus.py | 3 ++- src/tauon/t_modules/t_main.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/tauon/__main__.py b/src/tauon/__main__.py index 85a11a540..fd6955115 100755 --- a/src/tauon/__main__.py +++ b/src/tauon/__main__.py @@ -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() diff --git a/src/tauon/t_modules/t_dbus.py b/src/tauon/t_modules/t_dbus.py index 92aef10fc..6bba52da5 100644 --- a/src/tauon/t_modules/t_dbus.py +++ b/src/tauon/t_modules/t_dbus.py @@ -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 diff --git a/src/tauon/t_modules/t_main.py b/src/tauon/t_modules/t_main.py index f01b36d5c..0aa551af3 100644 --- a/src/tauon/t_modules/t_main.py +++ b/src/tauon/t_modules/t_main.py @@ -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()