Changeset 1146:6b16627388a5 for pida/core/actions.py
- Timestamp:
- 04/29/08 12:21:58 (4 months ago)
- Files:
-
- 1 modified
-
pida/core/actions.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pida/core/actions.py
r1140 r1146 132 132 act = atype(name=name, label=label, tooltip=tooltip, stock_id=stock_id) 133 133 self._actions.add_action(act) 134 if callback is None:135 callback = getattr(self, 'act_%s' % name, None)136 134 if callback is not None: 137 135 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: 144 138 self._create_key_option(act, name, label, tooltip, accel) 145 139
