summaryrefslogtreecommitdiff
path: root/x11-toolkits/granite/files/patch-lib_DateTime.vala
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-01-03 13:49:07 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-01-03 13:49:07 +0000
commit75603347c47b2b8c7a7c1589d6586d0d4c28a0d4 (patch)
treecdeacf8cfafd02e6bb03585c2b4b8b0171f85cd3 /x11-toolkits/granite/files/patch-lib_DateTime.vala
parentcommit the forgotten plist file (diff)
x11-toolkits/granite: Update to 5.2.2
- Update WWW - Add missing gsettings-desktop-schemas dependency to prevent runtime crashes of applications using the DateTime widget - Bump revision of dependent ports Changes: https://github.com/elementary/granite/releases
Notes
Notes: svn path=/head/; revision=489174
Diffstat (limited to 'x11-toolkits/granite/files/patch-lib_DateTime.vala')
-rw-r--r--x11-toolkits/granite/files/patch-lib_DateTime.vala18
1 files changed, 18 insertions, 0 deletions
diff --git a/x11-toolkits/granite/files/patch-lib_DateTime.vala b/x11-toolkits/granite/files/patch-lib_DateTime.vala
new file mode 100644
index 000000000000..36e597c1368a
--- /dev/null
+++ b/x11-toolkits/granite/files/patch-lib_DateTime.vala
@@ -0,0 +1,18 @@
+The io.elementary.desktop.wingpanel.datetime schema is not available,
+which leads to crashes when using the DateTime widget. Use the
+org.gnome.desktop.interface schema instead as documented in the API
+docs.
+
+cf. https://github.com/elementary/granite/pull/222
+
+--- lib/DateTime.vala.orig 2018-12-17 13:02:11 UTC
++++ lib/DateTime.vala
+@@ -110,7 +110,7 @@ namespace Granite.DateTime {
+ * @return true if the clock format is 12h based, false otherwise.
+ */
+ private static bool is_clock_format_12h () {
+- var h24_settings = new Settings ("io.elementary.desktop.wingpanel.datetime");
++ var h24_settings = new Settings ("org.gnome.desktop.interface");
+ var format = h24_settings.get_string ("clock-format");
+ return (format.contains ("12h"));
+ }