gnome-specimen r164 - in branches/import-from-bzr: . specimen
- From: wbolster svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-specimen r164 - in branches/import-from-bzr: . specimen
- Date: Tue, 17 Jun 2008 18:54:52 +0000 (UTC)
Author: wbolster
Date: Tue Jun 17 18:54:52 2008
New Revision: 164
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=164&view=rev
Log:
* specimen/specimenwindow.py:
- Use Pythonesque row counting in num_previews()
Modified:
branches/import-from-bzr/ (props changed)
branches/import-from-bzr/specimen/specimenwindow.py
Modified: branches/import-from-bzr/specimen/specimenwindow.py
==============================================================================
--- branches/import-from-bzr/specimen/specimenwindow.py (original)
+++ branches/import-from-bzr/specimen/specimenwindow.py Tue Jun 17 18:54:52 2008
@@ -403,8 +403,7 @@
def num_previews(self):
'Returns the number of previews'
- number_of_rows = self.previews_store.iter_n_children(None)
- return number_of_rows / 2
+ return len(self.previews_store) / 2
def select_last_preview(self):
'Selects the last row in the preview pane'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]