[shotwell] Small clean-up
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Small clean-up
- Date: Sat, 3 Dec 2016 22:30:59 +0000 (UTC)
commit b3a37f6bbbd5fd147b73a8f29eb776085c0ee42c
Author: Jens Georg <mail jensge org>
Date: Sat Dec 3 23:23:37 2016 +0100
Small clean-up
Signed-off-by: Jens Georg <mail jensge org>
src/editing_tools/EditingTools.vala | 5 +++++
src/util/misc.vala | 15 ---------------
2 files changed, 5 insertions(+), 15 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
diff --git a/src/util/misc.vala b/src/util/misc.vala
index cc6a278..cbc6dfa 100644
--- a/src/util/misc.vala
+++ b/src/util/misc.vala
@@ -360,18 +360,3 @@ public class OpTimer {
}
}
-// Dummy function for suppressing 'could not stat file' errors
-// generated when saving into a previously non-existent file -
-// please see https://bugzilla.gnome.org/show_bug.cgi?id=662814
-// and to work around a spurious warning given by GDK when a
-// key press event is passed from a child class' event handler
-// to a parent's; (gnome bug pending, but see https://bugzilla.redhat.com/show_bug.cgi?id=665568).
-public void suppress_warnings(string? log_domain, LogLevelFlags log_levels, string message) {
- // do nothing.
-}
-
-public bool is_twentyfour_hr_time_system() {
- // if no AM/PM designation is found, the location is set to use a 24 hr time system
- return is_string_empty(Time.local(0).format("%p"));
-}
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]