gnome-specimen r36 - branches/import-from-bzr
- From: wbolster svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-specimen r36 - branches/import-from-bzr
- Date: Tue, 17 Jun 2008 18:52:27 +0000 (UTC)
Author: wbolster
Date: Tue Jun 17 18:52:26 2008
New Revision: 36
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=36&view=rev
Log:
* specimenwindow.py:
- Freeze/thaw the fonts treeview while loading the fonts.
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:26 2008
@@ -129,6 +129,9 @@
howmany_at_once = 25
try:
+ # speed up insertion
+ self.fonts_treeview.freeze_child_notify()
+
# add a bunch of fonts and faces to the treemodel
for i in range(howmany_at_once):
family = self.families.pop(-1)
@@ -138,6 +141,9 @@
self.fonts_treestore.append(piter,
[face.get_face_name(), family, face])
+ # thaw the treeview
+ self.fonts_treeview.thaw_child_notify()
+
# scroll to the top, since the treeview may have scrolled after all
# the insertions
self.fonts_treeview_window.set_vadjustment(gtk.Adjustment(0))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]