[gnote] Use desktop_gnome_clock_format



commit 883c899c4e892e064731270de3b4e67308dc3c43
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Dec 13 13:11:57 2020 +0200

    Use desktop_gnome_clock_format

 src/utils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/utils.cpp b/src/utils.cpp
index df58d7d2..d1673fbb 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -175,7 +175,7 @@ namespace gnote {
     {
       bool use_12h = false;
       if(show_time) {
-        use_12h = preferences.schema_gnome_interface()->get_string(Preferences::DESKTOP_GNOME_CLOCK_FORMAT) 
== "12h";
+        use_12h = preferences.desktop_gnome_clock_format() == "12h";
       }
       return get_pretty_print_date(date, show_time, use_12h);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]