Commit 2ff59b21 authored by Og B. Maciel's avatar Og B. Maciel

Minor patch to the timeline widget by @LuizArmesto and NEWS entries.

svn path=/trunk/; revision=687
parent a2365316
2009-01-01 Og Maciel <ogmaciel@gnome.org>
* src/gui/widgets/timeline.py: CTRL mask fix by Luiz Armesto.
* NEWS: Entries for the new datepicker and timeline widgets.
2008-12-20 Og Maciel <ogmaciel@gnome.org>
* src/gui/adddialog.py: Notify user when the end date is prior to start date.
......
BillReminder 0.3.x
==================
Frontend:
* A new calendar widget has been added to replace the caledar from the
add/edit dialog. In order to display the calendar, it is necessary to
expand the widget by clicking on the displayed date.
* Repeating bills are now handled by selecting a frequency (the current
allowed values are: once, weekly, and monthly) and setting the end date.
Multiple records will then be added using the start and end date to figure
out their correct due date.
* A new timeline widget has been added to replace the calendar from the main
window. You can now use it to change the way you view your bills by
selecting an specific date with a single click as well as drag the
timeline to view past and/or future bills. The following keyboard
shortcuts are available:
With focus:
right arrow go to next day
left arrow go to previous day
Ctrl + right go to same day next month
Ctrl + left go to same day previous month
+ (plus) zoom in
- (minus) zoom out
HOME go to today's date
PAGEUP scroll to next screen*
PAGEDOWN scroll to previous screen
* go to current day plus the number of days displayed in widget.
Backend:
* Fixed an issue where datadir was hard coded to '/usr/share'. (Bug #553890).
* Make sure that gconf is run (if available) and register schema. Partially
......
......@@ -376,7 +376,7 @@ class Timeline(gtk.DrawingArea):
def do_key_press_event(self, event):
if gtk.gdk.keyval_name(event.keyval) == 'Right':
if event.state == gtk.gdk.CONTROL_MASK:
if event.state & gtk.gdk.CONTROL_MASK:
# Control+right - go to next month
month = (self.value.month % 12) + 1
year = self.value.year + (self.value.month) / 12
......@@ -384,7 +384,7 @@ class Timeline(gtk.DrawingArea):
else:
self.scroll(gtk.gdk.SCROLL_RIGHT)
if gtk.gdk.keyval_name(event.keyval) == 'Left':
if event.state == gtk.gdk.CONTROL_MASK:
if event.state & gtk.gdk.CONTROL_MASK:
# Control+left - go to prev month
year = self.value.year - int(not self.value.month - 1)
month = self.value.month - 1 + (self.value.year - year) * 12
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment