summaryrefslogtreecommitdiff
path: root/src/editing_tools/EditingTools.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/editing_tools/EditingTools.vala')
-rw-r--r--src/editing_tools/EditingTools.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/editing_tools/EditingTools.vala b/src/editing_tools/EditingTools.vala
index e0cf727..c3c79f6 100644
--- a/src/editing_tools/EditingTools.vala
+++ b/src/editing_tools/EditingTools.vala
@@ -52,6 +52,7 @@ public abstract class EditingToolWindow : Gtk.Window {
// Needed to prevent the (spurious) 'This event was synthesised outside of GDK'
// warnings after a keypress.
+ // TODO: Check if really still necessary
Log.set_handler("Gdk", LogLevelFlags.LEVEL_WARNING, suppress_warnings);
}
@@ -90,6 +91,10 @@ public abstract class EditingToolWindow : Gtk.Window {
base.realize();
}
+
+ private void suppress_warnings(string? log_domain, LogLevelFlags log_levels, string message) {
+ // do nothing.
+ }
}
// The PhotoCanvas is an interface object between an EditingTool and its host. It provides objects