allow SIGRTMIN

This commit is contained in:
piotr
2022-12-09 01:54:36 +01:00
parent 6b555f303f
commit 62d7271210
3 changed files with 4 additions and 4 deletions

View File

@@ -2233,7 +2233,7 @@ class EditorWrapper(object):
"icon-size": 16,
"interval": 1,
"angle": 0.0,
"sigrt": signal.SIGRTMIN+1,
"sigrt": signal.SIGRTMIN,
"use-sigrt": False
}
for key in defaults:
@@ -2293,7 +2293,7 @@ class EditorWrapper(object):
self.executor_sigrt = builder.get_object("sigrt")
self.executor_sigrt.set_numeric(True)
adj = Gtk.Adjustment(value=0, lower=signal.SIGRTMIN+1, upper=signal.SIGRTMAX+1, step_increment=1, page_increment=1, page_size=1)
adj = Gtk.Adjustment(value=0, lower=signal.SIGRTMIN, upper=signal.SIGRTMAX+1, step_increment=1, page_increment=1, page_size=1)
self.executor_sigrt.configure(adj, 1, 0)
self.executor_sigrt.set_value(settings["sigrt"])

View File

@@ -359,7 +359,7 @@ def main():
except Exception as exc:
eprint("{} subscription error: {}".format(sig, exc))
for sig in range(signal.SIGRTMIN+1, signal.SIGRTMAX+1):
for sig in range(signal.SIGRTMIN, signal.SIGRTMAX+1):
try:
signal.signal(sig, rt_sig_handler)
except Exception as exc:

View File

@@ -41,7 +41,7 @@ class Executor(Gtk.EventBox):
check_key(settings, "on-scroll-up", "")
check_key(settings, "on-scroll-down", "")
check_key(settings, "angle", 0.0)
check_key(settings, "sigrt", signal.SIGRTMIN + 1)
check_key(settings, "sigrt", signal.SIGRTMIN)
check_key(settings, "use-sigrt", False)
self.label.set_angle(settings["angle"])