fix: use GLibUnix namespace

This commit is contained in:
aclist committed 2026-04-10 16:50:31 +09:00
1 parent 8a8109b7df
commit 8d30af9dee
4 files changed
+14 -9

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -o pipefail
version="6.0.2-beta.3"
version="6.0.2-beta.4"
#CONSTANTS
aid=221100
+3 -2
View File
@@ -39,7 +39,8 @@ locale.setlocale(locale.LC_ALL, "")
import gi # noqa E402
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GLib, Gdk, GObject, Pango # noqa E402
gi.require_version("GLibUnix", "2.0")
from gi.repository import Gtk, GLib, GLibUnix, Gdk, GObject, Pango # noqa E402
# https://bugzilla.gnome.org/show_bug.cgi?id=708676
warnings.filterwarnings("ignore", ".*g_value_get_int", Warning)
@@ -4651,7 +4652,7 @@ class App(Gtk.Application):
)
self.win.add_accel_group(accel)
GLib.unix_signal_add(
GLibUnix.signal_add_full(
GLib.PRIORITY_DEFAULT, signal.SIGINT, self._catch_sigint
)
Gtk.main()