[gnome-music/wip/merge: 259/343] view: Define iter_to_clean in songs view
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 259/343] view: Define iter_to_clean in songs view
- Date: Thu, 25 Jul 2013 11:34:24 +0000 (UTC)
commit 139f683517fcf03d8aee84c5cc3c8bf30bf3f0ba
Author: Arnel A. Borja <arnelborja src gnome org>
Date: Thu Jul 18 19:01:52 2013 +0800
view: Define iter_to_clean in songs view
Also, rename from camelCase to lower_case.
gnomemusic/view.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 0e11e15..dfcfa13 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -269,6 +269,7 @@ class Songs(ViewContainer):
self.countQuery = Query.SONGS_COUNT
self._items = {}
self.isStarred = None
+ self.iter_to_clean = None
self.view.set_view_type(Gd.MainViewType.LIST)
self.view.get_generic_view().get_style_context()\
.add_class("songs-list")
@@ -290,11 +291,11 @@ class Songs(ViewContainer):
def update_model(self, player, playlist, currentIter):
if playlist != self._model:
return False
- if self.iterToClean:
- self._model.set_value(self.iterToClean, 10, False)
+ if self.iter_to_clean is not None:
+ self._model.set_value(self.iter_to_clean, 10, False)
self._model.set_value(currentIter, 10, True)
- self.iterToClean = currentIter.copy()
+ self.iter_to_clean = currentIter.copy()
return False
def _add_item(self, source, param, item):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]