[hamster-applet] update start time of the end time's input field. fixes bug 623077
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] update start time of the end time's input field. fixes bug 623077
- Date: Tue, 29 Jun 2010 14:34:12 +0000 (UTC)
commit 79577af9788db1edd21a42239feb3aaea9f89670
Author: Toms Bauģis <toms baugis gmail com>
Date: Tue Jun 29 15:33:59 2010 +0100
update start time of the end time's input field. fixes bug 623077
src/hamster/edit_activity.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/hamster/edit_activity.py b/src/hamster/edit_activity.py
index 6985798..6d0df91 100644
--- a/src/hamster/edit_activity.py
+++ b/src/hamster/edit_activity.py
@@ -126,6 +126,8 @@ class CustomFactController:
def update_time(self, widget, start_time, end_time):
self.start_time.set_time(start_time)
+ self.on_start_time_entered(None)
+
self.start_date.set_date(start_time)
self.get_widget("in_progress").set_active(end_time is None)
@@ -183,7 +185,6 @@ class CustomFactController:
def on_save_button_clicked(self, button):
activity_name, temporary = self.new_name.get_value()
- print activity_name, temporary
parsed = stuff.parse_activity_input(activity_name)
if not parsed.activity_name:
@@ -245,9 +246,11 @@ class CustomFactController:
def on_start_time_entered(self, widget):
start_time = self.start_time.get_time()
+
if not start_time:
return
+
self.end_time.set_start_time(start_time)
self.validate_fields()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]