Package list lightdm-gtk-greeter-settings / 54df0e3
IndicatorsEntry - reorder fix Andrew P. 7 years ago
1 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
210210
211211 self._on_row_changed_id = self._model.connect('row-changed', self._on_model_changed)
212212 self._on_row_deleted_id = self._model.connect('row-deleted', self._on_model_changed)
213 self._on_row_inserted_id = self._model.connect('row-inserted', self._on_model_changed)
213 self._on_row_inserted_id = self._model.connect('row-inserted', self._on_model_row_inserted)
214214 self._on_rows_reordered_id = self._model.connect('rows-reordered', self._on_model_changed)
215215
216216 def _on_model_changed(self, *unused):
217217 self._emit_changed()
218
219 def _on_model_row_inserted(self, model, path, rowiter):
220 # Do not emit 'changed' for uninitialized row (dragging rows)
221 # It can cause calling get_value() for model with invalid values
222 if model[rowiter][Row.Name] is not None:
223 self._emit_changed()
218224
219225 def _get_value(self):
220226 def fix_token(s):
264270 return '; '.join(items)
265271
266272 def _get_value_19(self):
267
268273 items = []
269274 for row in self._model:
270275 if row[Row.HasState] and not row[Row.State]: