hamster-applet r600 - trunk/hamster



Author: tbaugis
Date: Fri Oct 24 15:33:19 2008
New Revision: 600
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=600&view=rev

Log:
fixed warning about floats / ints when setting start date. 
might fix bug 555364

Modified:
   trunk/hamster/add_custom_fact.py

Modified: trunk/hamster/add_custom_fact.py
==============================================================================
--- trunk/hamster/add_custom_fact.py	(original)
+++ trunk/hamster/add_custom_fact.py	Fri Oct 24 15:33:19 2008
@@ -68,14 +68,14 @@
         
         self.get_widget('end_time_combo').set_model(self.hours)        
         if fact_date:
-            self.get_widget('start_date').set_time(time.mktime(fact_date.timetuple()))
+            self.get_widget('start_date').set_time(int(time.mktime(fact_date.timetuple())))
         
         # handle the case when we get fact_id - that means edit!
         self.fact_id = fact_id
         if fact_id:
             fact = storage.get_fact(fact_id)
             print fact
-            self.get_widget('start_date').set_time(time.mktime(fact["start_time"].timetuple()))
+            self.get_widget('start_date').set_time(int(time.mktime(fact["start_time"].timetuple())))
             self.get_widget('start_time').set_text("%02d:%02d" % (fact["start_time"].hour, fact["start_time"].minute))
 
             self.get_widget('activity_name').set_text(fact["name"])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]