gnome-specimen r35 - trunk-from-bzr
- From: wbolster svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-specimen r35 - trunk-from-bzr
- Date: Tue, 17 Jun 2008 18:41:48 +0000 (UTC)
Author: wbolster
Date: Tue Jun 17 18:41:48 2008
New Revision: 35
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=35&view=rev
Log:
* specimenwindow.py:
- Tiny code cleanup
Modified:
trunk-from-bzr/ (props changed)
trunk-from-bzr/specimenwindow.py
Modified: trunk-from-bzr/specimenwindow.py
==============================================================================
--- trunk-from-bzr/specimenwindow.py (original)
+++ trunk-from-bzr/specimenwindow.py Tue Jun 17 18:41:48 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]