From 38406e070c771ff92fd0a345bde82ccd02b23b44 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Thu, 12 May 2016 11:31:29 +0100 Subject: [PATCH] Use the org.gnome.desktop.calendar schema instead of our own This setting is now shared by Shell and Calendar. https://bugzilla.gnome.org/show_bug.cgi?id=766318 --- configure.ac | 2 +- data/org.gnome.shell.gschema.xml.in.in | 12 ------------ js/ui/calendar.js | 2 +- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/configure.ac b/configure.ac index 699ff0812..a2d826673 100644 --- a/configure.ac +++ b/configure.ac @@ -119,7 +119,7 @@ PKG_CHECK_MODULES(SHELL_PERF_HELPER, gtk+-3.0 gio-2.0) PKG_CHECK_MODULES(SHELL_HOTPLUG_SNIFFER, gio-2.0 gdk-pixbuf-2.0) PKG_CHECK_MODULES(TRAY, mutter-clutter-1.0 gtk+-3.0) PKG_CHECK_MODULES(GVC, libpulse >= $PULSE_MIN_VERS libpulse-mainloop-glib gobject-2.0) -PKG_CHECK_MODULES(DESKTOP_SCHEMAS, gsettings-desktop-schemas >= 3.19.2) +PKG_CHECK_MODULES(DESKTOP_SCHEMAS, gsettings-desktop-schemas >= 3.21.2) AC_ARG_ENABLE(browser-plugin, [AS_HELP_STRING([--enable-browser-plugin], diff --git a/data/org.gnome.shell.gschema.xml.in.in b/data/org.gnome.shell.gschema.xml.in.in index c42a9f732..736adba05 100644 --- a/data/org.gnome.shell.gschema.xml.in.in +++ b/data/org.gnome.shell.gschema.xml.in.in @@ -82,22 +82,10 @@ adapter is ever seen not to have devices associated to it. - - - - false - <_summary>Show the week date in the calendar - <_description> - If true, display the ISO week date in the calendar. - - - - diff --git a/js/ui/calendar.js b/js/ui/calendar.js index e327c1dc0..6e6c5f9b1 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -345,7 +345,7 @@ const Calendar = new Lang.Class({ _init: function() { this._weekStart = Shell.util_get_week_start(); - this._settings = new Gio.Settings({ schema_id: 'org.gnome.shell.calendar' }); + this._settings = new Gio.Settings({ schema_id: 'org.gnome.desktop.calendar' }); this._settings.connect('changed::' + SHOW_WEEKDATE_KEY, Lang.bind(this, this._onSettingsChange)); this._useWeekdate = this._settings.get_boolean(SHOW_WEEKDATE_KEY);