[hamster-applet] renamed HamsterCalendar to DateInput to encourage 3rd party adoption :)



commit 5d0ffd5f9ccac07717a249cf91f51f97fe427bb9
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sat Apr 25 18:58:37 2009 +0100

    renamed HamsterCalendar to DateInput to encourage 3rd party adoption :)
---
 hamster/edit_activity.py |    4 ++--
 hamster/widgets.py       |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hamster/edit_activity.py b/hamster/edit_activity.py
index d3da888..60084ab 100644
--- a/hamster/edit_activity.py
+++ b/hamster/edit_activity.py
@@ -355,10 +355,10 @@ class CustomFactController:
         end_date = end_date or start_date + dt.timedelta(minutes = 30)
 
 
-        self.start_date = widgets.HamsterCalendar()
+        self.start_date = widgets.DateInput()
         self.start_date.connect("date-entered", self.validate_fields)
         self.get_widget("start_date_placeholder").add(self.start_date)
-        self.end_date = widgets.HamsterCalendar()
+        self.end_date = widgets.DateInput()
         self.get_widget("end_date_placeholder").add(self.end_date)
         self.end_date.connect("date-entered", self.validate_fields)
 
diff --git a/hamster/widgets.py b/hamster/widgets.py
index a1b1b86..0f4df3c 100644
--- a/hamster/widgets.py
+++ b/hamster/widgets.py
@@ -23,7 +23,7 @@ import datetime as dt
 import calendar
 import gobject
 
-class HamsterCalendar(gtk.Entry):
+class DateInput(gtk.Entry):
     """ a text entry widget with calendar popup"""
     __gsignals__ = {
         'date-entered': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),



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