[triggers] Port to Gtk4

This commit is contained in:
Philipp Hörist
2025-01-26 18:48:25 +01:00
parent fd5d9fd33c
commit 1692ecda41
5 changed files with 401 additions and 672 deletions

View File

@@ -15,10 +15,10 @@
from __future__ import annotations
from typing import Any
from typing import Callable
from typing import TYPE_CHECKING
import logging
from collections.abc import Callable
from dataclasses import dataclass
if TYPE_CHECKING:
@@ -31,7 +31,7 @@ log = logging.getLogger("gajim.p.triggers")
def log_result(func: Callable[..., Any]) -> Callable[..., bool]:
def wrapper(self: Any, event: ProcessableEventsT, rule: RuleT):
res = func(self, event, rule)
log.info(f"{event.name} -> {func.__name__} -> {res}")
log.info("%s -> %s -> %s", event.name, func.__name__, res)
return res
return wrapper