~moovida-developers/moovida/account_change_password

« back to all changes in this revision

Viewing changes to elisa-plugins/elisa/plugins/pigment/widgets/widget.py

merged with resource_provider branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
           property: value;
207
207
         }
208
208
        """
209
 
        style = copy.deepcopy(self._styles[state])
 
209
        # style is intentionally a regular Python dictionary and not a Style
 
210
        # object. Both are guaranteed to have the same interface but writing
 
211
        # values to a Style instance costs more because of the notification
 
212
        # system.
 
213
        style = {}
 
214
        style.update(self._styles[state])
210
215
        self._merge_style_from_widget_name(style, state)
 
216
        style = Style(style)
211
217
        return style
212
218
 
213
219
    def set_name(self, name):