~jonathan-barnoud/gtg/spellcheck

« back to all changes in this revision

Viewing changes to GTG/taskbrowser/browser.py

  • Committer: Lionel Dricot
  • Date: 2009-03-14 10:37:55 UTC
  • mfrom: (192.1.2 dev)
  • Revision ID: ploum@ploum.net-20090314103755-dqyj0wudegy252bm
Ctrl+N and Ctrl+Shift+N (fixes bug #341549 ).
Patch by Antons Rebguns. Thanks Antons, you rock :-)

Show diffs side-by-side

added added

removed removed

Lines of Context:
640
640
            
641
641
        #Set the title of the window :
642
642
        if nbr_of_tasks == 0 :
643
 
            parenthesis = "(no active task)"
 
643
            parenthesis = "(no active tasks)"
644
644
        elif nbr_of_tasks == 1 :
645
645
            parenthesis = "(1 active task)"
646
646
        else :
791
791
                self.dismissbutton.set_label(GnomeConfig.MARK_UNDISMISS)
792
792
                self.donebutton.set_label(GnomeConfig.MARK_DONE)
793
793
                self.dismissbutton.set_icon_name("gtg-task-undismiss")
794
 
                #TODO: fix here
795
794
                self.editbutton.connect('clicked', self.on_edit_done_task)
796
795
                self.edit_mi.connect('activate', self.on_edit_done_task)
797
 
                
798
796
            else :
799
797
                self.donebutton.set_label(GnomeConfig.MARK_UNDONE)
800
798
                self.dismissbutton.set_label(GnomeConfig.MARK_DISMISS)
801
799
                self.donebutton.set_icon_name("gtg-task-undone")
802
 
                
803
800
                self.editbutton.connect('clicked', self.on_edit_active_task)
804
801
                self.edit_mi.connect('activate', self.on_edit_active_task)
805
802