Handle calendar-server errors, from upstream.

This commit is contained in:
ajacoutot 2012-11-15 08:32:36 +00:00
parent 655424c0b1
commit b708e9bc14
2 changed files with 22 additions and 1 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.23 2012/11/13 18:19:13 jasper Exp $
# $OpenBSD: Makefile,v 1.24 2012/11/15 08:32:36 ajacoutot Exp $
COMMENT= next generation GNOME shell
GNOME_PROJECT= gnome-shell
GNOME_VERSION= 3.6.2
REVISION= 0
HOMEPAGE= http://live.gnome.org/GnomeShell

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-js_ui_calendar_js,v 1.1 2012/11/15 08:32:36 ajacoutot Exp $
From a4e29e1244b097fc2bebc371e00d7af30537c376 Mon Sep 17 00:00:00 2001
From: Florian Müllner <fmuellner@gnome.org>
Date: Tue, 23 Oct 2012 12:32:27 +0000
Subject: calendar: Handle calendar-server errors
--- js/ui/calendar.js.orig Mon Nov 12 21:18:59 2012
+++ js/ui/calendar.js Thu Nov 15 09:16:05 2012
@@ -270,8 +270,9 @@ const DBusEventSource = new Lang.Class({
this._loadEvents(false);
},
- _onEventsReceived: function([appointments]) {
+ _onEventsReceived: function(results, error) {
let newEvents = [];
+ let appointments = results ? results[0] : null;
if (appointments != null) {
for (let n = 0; n < appointments.length; n++) {
let a = appointments[n];