Show
Ignore:
Timestamp:
04/29/08 12:21:58 (4 months ago)
Author:
Ronny Pfannschmidt <Ronny.Pfannschmidt@…>
Message:

removed unused features from actions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pida/core/actions.py

    r1140 r1146  
    132132        act = atype(name=name, label=label, tooltip=tooltip, stock_id=stock_id) 
    133133        self._actions.add_action(act) 
    134         if callback is None: 
    135             callback = getattr(self, 'act_%s' % name, None) 
    136134        if callback is not None: 
    137135            act.connect('activate', callback) 
    138          
    139         if accel == 'NOACCEL': 
    140             warnings.warn('the accel `NOACCEL` is deprecated, use None', 
    141                     DeprecationWarning, 2) 
    142  
    143         if accel != 'NOACCEL' and accel is not None: 
     136 
     137        if accel is not None: 
    144138            self._create_key_option(act, name, label, tooltip, accel) 
    145139