gnome-specimen r35 - branches/import-from-bzr



Author: wbolster
Date: Tue Jun 17 18:52:25 2008
New Revision: 35
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=35&view=rev

Log:
* specimenwindow.py:
  - Tiny code cleanup


Modified:
   branches/import-from-bzr/   (props changed)
   branches/import-from-bzr/specimenwindow.py

Modified: branches/import-from-bzr/specimenwindow.py
==============================================================================
--- branches/import-from-bzr/specimenwindow.py	(original)
+++ branches/import-from-bzr/specimenwindow.py	Tue Jun 17 18:52:25 2008
@@ -217,7 +217,6 @@
         self.previews_preview_column.set_cell_data_func(cell_renderer, self.cell_data_cb)
         self.window.show_all()
 
-        # TODO: do sensible stuff with the selection
         # setup the treeselection
         self.previews_treeview_selection = self.previews_treeview.get_selection()
         self.previews_treeview_selection.set_select_function(self._set_preview_row_selection)
@@ -299,16 +298,17 @@
     def schedule_update_previews(self):
         'Schedules an update of the previews'
 
+        # Update the previews after a delay
         if not self.update_timeout:
             self.update_timeout = gobject.timeout_add(500, self.update_previews)
 
     def update_previews(self):
         'Updates the previews'
 
+        # Clear the timeout
         self.update_timeout = 0
 
-        # TODO: update the previews
-        print 'update_previews'
+        # Redraw/resize the previews
         self.previews_preview_column.queue_resize()
         self.previews_treeview.queue_draw()
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]