~nimit-svnit/gtg/translationed

« back to all changes in this revision

Viewing changes to GTG/plugins/hamster/hamster.py

  • Committer: Parin Porecha
  • Date: 2013-10-27 00:28:23 UTC
  • Revision ID: parinporecha@gmail.com-20131027002823-75z9po6a3e8of90b
Updated credits. Removed code changing other editors' icons from hamster plugin, will be improved and added in future

Show diffs side-by-side

added added

removed removed

Lines of Context:
377
377
        button.set_icon_widget(self.get_icon_widget(self.IMG_STOP_PATH))
378
378
        button.set_tooltip_text(self.TOOLTIP_TEXT_STOP_ACTIVITY)
379
379
 
380
 
        # Many task editors can be opened at a time, but only one editor can
381
 
        # have stop activity button
382
 
        # (Because only one task can be tracked at a time)
383
 
        # So, we keep a track of any other task editor which also has stop
384
 
        # button, and change it to start
385
 
        if self.other_stop_button is not self.button and \
386
 
           self.other_stop_button is not button:
387
 
            self.change_button_to_start_activity(self.other_stop_button)
388
 
        self.other_stop_button = button
389
 
 
390
380
    #### Preference Handling
391
381
    def is_configurable(self):
392
382
        """A configurable plugin should have this method and return True"""