[gnote] Reuse schema_gnote_interface
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Reuse schema_gnote_interface
- Date: Sat, 12 Dec 2020 19:16:33 +0000 (UTC)
commit a8a71d89243583133c5e36d21710fcbac97c0476
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Dec 12 21:12:06 2020 +0200
Reuse schema_gnote_interface
src/utils.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/utils.cpp b/src/utils.cpp
index 3a086d7e..df58d7d2 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -175,8 +175,7 @@ namespace gnote {
{
bool use_12h = false;
if(show_time) {
- use_12h = preferences.get_schema_settings(Preferences::SCHEMA_DESKTOP_GNOME_INTERFACE)->get_string(
- Preferences::DESKTOP_GNOME_CLOCK_FORMAT) == "12h";
+ use_12h = preferences.schema_gnome_interface()->get_string(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]