[arch-commits] Commit in gnome-calendar/trunk (2 files)
Jan de Groot
jgc at archlinux.org
Thu May 26 20:38:07 UTC 2016
Date: Thursday, May 26, 2016 @ 22:38:06
Author: jgc
Revision: 268615
upgpkg: gnome-calendar 3.20.2-2
Depend on new gsettings-desktop-schemas instead of using gnome-shell preferences that might not be available
Added:
gnome-calendar/trunk/year-view-use-gsettings-desktop-schemas.patch
Modified:
gnome-calendar/trunk/PKGBUILD
-----------------------------------------------+
PKGBUILD | 18 ++++--
year-view-use-gsettings-desktop-schemas.patch | 72 ++++++++++++++++++++++++
2 files changed, 85 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-05-26 20:32:07 UTC (rev 268614)
+++ PKGBUILD 2016-05-26 20:38:06 UTC (rev 268615)
@@ -3,19 +3,27 @@
pkgname=gnome-calendar
pkgver=3.20.2
-pkgrel=1
+pkgrel=2
pkgdesc="Simple and beautiful calendar application designed to perfectly fit the GNOME desktop"
url="https://wiki.gnome.org/Apps/Calendar"
arch=(i686 x86_64)
license=(GPL)
-depends=(evolution-data-server)
-makedepends=(intltool python)
+depends=(evolution-data-server 'gsettings-desktop-schemas>=3.21.2')
+makedepends=(intltool python gnome-common)
groups=(gnome-extra)
-source=(http://download.gnome.org/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz)
-sha256sums=('f132cff56310b83cf086628e949685b04cdaf872e989d67dbb8a3e4e9943deee')
+source=(http://download.gnome.org/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz
+ year-view-use-gsettings-desktop-schemas.patch)
+sha256sums=('f132cff56310b83cf086628e949685b04cdaf872e989d67dbb8a3e4e9943deee'
+ '668a698fc5e6902f3796b70a418c6c88ef49ab1e1c11bb9e2f4f16d344ee8f77')
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i ../year-view-use-gsettings-desktop-schemas.patch
+}
+
build() {
cd $pkgname-$pkgver
+ autoreconf -fi
./configure --prefix=/usr
make
}
Added: year-view-use-gsettings-desktop-schemas.patch
===================================================================
--- year-view-use-gsettings-desktop-schemas.patch (rev 0)
+++ year-view-use-gsettings-desktop-schemas.patch 2016-05-26 20:38:06 UTC (rev 268615)
@@ -0,0 +1,72 @@
+From da06a48fde20f84d920953a7d4f80f67ed51fe50 Mon Sep 17 00:00:00 2001
+From: Iain Lane <iain at orangesquash.org.uk>
+Date: Thu, 12 May 2016 11:26:35 +0100
+Subject: [PATCH] year-view: Use the new schema from gsettings-desktop-schemas
+
+So that we don't have to depend on GNOME shell.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=764001
+---
+ configure.ac | 4 +++-
+ src/gcal-year-view.c | 10 +++++-----
+ 2 files changed, 8 insertions(+), 6 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 815260e..693d38e 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -100,6 +100,7 @@ EDATASERVER_REQUIRED=3.17.1
+ EDATASERVERUI_REQUIRED=3.17.1
+ LIBICAL_REQUIRED=1.0
+ GOA_MIN_VERSION=3.2.0
++GSETTINGS_DESKTOP_SCHEMAS_REQUIRED=3.21.2
+
+ PKG_CHECK_MODULES(CALENDAR,
+ gmodule-export-2.0
+@@ -110,7 +111,8 @@ PKG_CHECK_MODULES(CALENDAR,
+ libecal-1.2 >= $ECAL_REQUIRED
+ libedataserver-1.2 >= $EDATASERVER_REQUIRED
+ libedataserverui-1.2 >= $EDATASERVERUI_REQUIRED
+- libical >= $LIBICAL_REQUIRED)
++ libical >= $LIBICAL_REQUIRED
++ gsettings-desktop-schemas >= $GSETTINGS_DESKTOP_SCHEMAS_REQUIRED)
+
+ AC_CHECK_LIB(ical, icaltime_days_in_year, [],
+ AC_MSG_ERROR([Error: icaltime_days_in_year() not found in libical!. Upgrade your libical library.]))
+diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
+index 60b061c..3864c83 100644
+--- a/src/gcal-year-view.c
++++ b/src/gcal-year-view.c
+@@ -88,7 +88,7 @@ struct _GcalYearView
+ gboolean use_24h_format;
+
+ /* show week numbers from GNOME Shell settings */
+- GSettings *shell_settings;
++ GSettings *calendar_settings;
+ gboolean show_week_numbers;
+
+ /* text direction factors */
+@@ -1099,7 +1099,7 @@ gcal_year_view_finalize (GObject *object)
+
+ g_clear_pointer (&year_view->date, g_free);
+
+- g_clear_object (&year_view->shell_settings);
++ g_clear_object (&year_view->calendar_settings);
+
+ G_OBJECT_CLASS (gcal_year_view_parent_class)->finalize (object);
+ }
+@@ -1502,9 +1502,9 @@ gcal_year_view_init (GcalYearView *self)
+ self->end_selected_date->zone = e_cal_util_get_system_timezone ();
+
+ /* bind GNOME Shell' show week numbers property to GNOME Calendar's one */
+- self->shell_settings = g_settings_new ("org.gnome.shell.calendar");
+- g_settings_bind (self->shell_settings, "show-weekdate", self, "show-week-numbers", G_SETTINGS_BIND_DEFAULT);
+- g_signal_connect_swapped (self->shell_settings, "changed::show-weekdate", G_CALLBACK (gtk_widget_queue_draw), self);
++ self->calendar_settings = g_settings_new ("org.gnome.desktop.calendar");
++ g_settings_bind (self->calendar_settings, "show-weekdate", self, "show-week-numbers", G_SETTINGS_BIND_DEFAULT);
++ g_signal_connect_swapped (self->calendar_settings, "changed::show-weekdate", G_CALLBACK (gtk_widget_queue_draw), self);
+
+ gtk_list_box_set_header_func (GTK_LIST_BOX (self->events_sidebar), update_sidebar_headers, self, NULL);
+ gtk_list_box_set_sort_func (GTK_LIST_BOX (self->events_sidebar), sidebar_sort_func, NULL, NULL);
+--
+2.7.4
\ No newline at end of file
More information about the arch-commits
mailing list