From: Ed Page Date: Thu, 16 Apr 2009 14:14:04 +0000 (-0500) Subject: Switching selecting the due date to displaying a popup calendar X-Git-Url: http://git.maemo.org/git/?p=doneit;a=commitdiff_plain;h=8529559bb7c565eb4630ff1187b3cc416a6aaefc Switching selecting the due date to displaying a popup calendar --- diff --git a/src/rtm_view.py b/src/rtm_view.py index ecfdebf..60a4680 100644 --- a/src/rtm_view.py +++ b/src/rtm_view.py @@ -287,12 +287,10 @@ class ItemListView(object): self._editDialog.disable() self.reset_task_list(self._projId) elif viewColumn is self._dueColumn: - self._editDialog.enable(self._manager) - try: - self._editDialog.request_task(self._manager, taskId) - finally: - self._editDialog.disable() - self.reset_task_list(self._projId) + due = self._manager.get_task_details(taskId)["dueDate"] + if due.is_good(): + calendar = gtk_toolbox.PopupCalendar(None, due.get()) + calendar.run() elif viewColumn is self._linkColumn: webbrowser.open(self._manager.get_task_details(taskId)["url"]) elif viewColumn is self._notesColumn: