x11-toolkits/granite: Update to 5.2.4

Drop the DateTime patch; Granite now does the right thing for the
'clock-format' setting and uses GNOME's org.gnome.desktop.interface
schema instead of its own.

Changes:	https://github.com/elementary/granite/releases/tag/5.2.4
This commit is contained in:
Tobias Kortkamp 2019-07-08 11:52:24 +00:00
parent 8687848456
commit d9961d7595
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=506210
4 changed files with 6 additions and 23 deletions

View file

@ -3,7 +3,7 @@
#
PORTNAME= granite
DISTVERSION= 5.2.3
DISTVERSION= 5.2.4
CATEGORIES= x11-toolkits
MAINTAINER= tobik@FreeBSD.org

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1550190778
SHA256 (elementary-granite-5.2.3_GH0.tar.gz) = 6ff86a90896690d25016e80e5192f87f6e9045e35ccc1db4747b92086d9b492f
SIZE (elementary-granite-5.2.3_GH0.tar.gz) = 418821
TIMESTAMP = 1562513151
SHA256 (elementary-granite-5.2.4_GH0.tar.gz) = 45349b24f3f5e9216354894f5598104e08d72992d81a41dadc373602853419fb
SIZE (elementary-granite-5.2.4_GH0.tar.gz) = 390145

View file

@ -1,18 +0,0 @@
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"));
}

View file

@ -4,7 +4,7 @@ include/granite/widgets-utils.h
lib/girepository-1.0/Granite-1.0.typelib
lib/libgranite.so
lib/libgranite.so.5
lib/libgranite.so.5.2.3
lib/libgranite.so.5.2.4
libdata/pkgconfig/granite.pc
share/applications/granite-demo.desktop
share/gir-1.0/Granite-1.0.gir
@ -180,6 +180,7 @@ share/locale/st/LC_MESSAGES/granite.mo
share/locale/su/LC_MESSAGES/granite.mo
share/locale/sv/LC_MESSAGES/granite.mo
share/locale/sw/LC_MESSAGES/granite.mo
share/locale/szl/LC_MESSAGES/granite.mo
share/locale/ta/LC_MESSAGES/granite.mo
share/locale/te/LC_MESSAGES/granite.mo
share/locale/tg/LC_MESSAGES/granite.mo