gnome-specimen r17 - branches/import-from-bzr
- From: wbolster svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-specimen r17 - branches/import-from-bzr
- Date: Tue, 17 Jun 2008 18:52:07 +0000 (UTC)
Author: wbolster
Date: Tue Jun 17 18:52:07 2008
New Revision: 17
URL: http://svn.gnome.org/viewvc/gnome-specimen?rev=17&view=rev
Log:
* specimenwindow.py:
- Keep a reference to the column displaying the previews
and queue a resize when the font size changes. This
fixes the problem that the cell height does not increase
when the font size increases, thus causing the preview
label to be clipped. It scales nicely now.
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:07 2008
@@ -128,11 +128,11 @@
self.previews_treeview.set_model(self.previews_store)
# we have only one column
- preview_column = gtk.TreeViewColumn()
- self.previews_treeview.append_column(preview_column)
+ self.previews_preview_column = gtk.TreeViewColumn()
+ self.previews_treeview.append_column(self.previews_preview_column)
cell_renderer = gtk.CellRendererText()
- preview_column.pack_start(cell_renderer, True)
- preview_column.set_cell_data_func(cell_renderer, self.cell_data_cb)
+ self.previews_preview_column.pack_start(cell_renderer, True)
+ 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
@@ -221,6 +221,7 @@
# TODO: update the previews
print 'update_previews'
+ self.previews_preview_column.queue_resize()
self.previews_treeview.queue_draw()
#self.update_preview_label()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]