billreminder r663 - in trunk/src/gui: . widgets
- From: ogmaciel svn gnome org
- To: svn-commits-list gnome org
- Subject: billreminder r663 - in trunk/src/gui: . widgets
- Date: Tue, 30 Sep 2008 01:30:55 +0000 (UTC)
Author: ogmaciel
Date: Tue Sep 30 01:30:55 2008
New Revision: 663
URL: http://svn.gnome.org/viewvc/billreminder?rev=663&view=rev
Log:
Fixed zoom in/out keyboard shortcuts.
Modified:
trunk/src/gui/maindialog.py
trunk/src/gui/widgets/timeline.py
Modified: trunk/src/gui/maindialog.py
==============================================================================
--- trunk/src/gui/maindialog.py (original)
+++ trunk/src/gui/maindialog.py Tue Sep 30 01:30:55 2008
@@ -417,7 +417,7 @@
def add_bill(self):
#selectedDate = scheduler.time_from_calendar(self.calendar.get_date())
#selectedDate = scheduler.datetime_from_timestamp(selectedDate)
- selectedDate = self.calendar.currentDate
+ selectedDate = self.timeline.value
records = dialogs.add_dialog(parent=self.window, selectedDate=selectedDate)
# Checks if the user did not cancel the action
Modified: trunk/src/gui/widgets/timeline.py
==============================================================================
--- trunk/src/gui/widgets/timeline.py (original)
+++ trunk/src/gui/widgets/timeline.py Tue Sep 30 01:30:55 2008
@@ -391,10 +391,10 @@
elif event.hardware_keycode in (100, 98):
# left/up - scroll left
self.scroll(gtk.gdk.SCROLL_LEFT)
- elif event.hardware_keycode == 86:
+ elif event.hardware_keycode in (21, 86):
# "+" - zoom in
self.display_days -= 2
- elif event.hardware_keycode == 82:
+ elif event.hardware_keycode in (20, 82):
# "-" - zoom out
self.display_days += 2
elif event.hardware_keycode == 97:
@@ -410,6 +410,7 @@
self.set_position(self.position + self.display_days)
self.move(self.allocation.width / 2)
self.queue_draw_area(0, 0, self.allocation.width, self.allocation.height)
+ print event.hardware_keycode
def do_button_release_event(self, event):
mx, my = self.get_pointer()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]