From 321eb030c56ae64d91bf67af0fa8254bc911b5cf Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 24 Jan 2013 00:39:07 +0000 Subject: [PATCH] [Rigo] GenericTreeView: fixup row height calculation during TV initialization --- rigo/rigo/ui/gtk3/widgets/generictreeview.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rigo/rigo/ui/gtk3/widgets/generictreeview.py b/rigo/rigo/ui/gtk3/widgets/generictreeview.py index 06f74a769..bbb3ef590 100644 --- a/rigo/rigo/ui/gtk3/widgets/generictreeview.py +++ b/rigo/rigo/ui/gtk3/widgets/generictreeview.py @@ -49,6 +49,7 @@ class GenericTreeView(Gtk.TreeView): self.connect("cursor-changed", self._on_cursor_changed, tr) # our own "activate" handler self.connect("row-activated", self._on_row_activated, tr) + self._calc_row_heights(tr) @property def model(self): @@ -117,7 +118,8 @@ class GenericTreeView(Gtk.TreeView): normal_height = max(32 + 4*ypad, em(2.5) + 4*ypad) tr.normal_height = normal_height - tr.selected_height = tr.normal_height + btn_h + StockEms.MEDIUM + medium = StockEms.MEDIUM + tr.selected_height = tr.normal_height + btn_h + medium def _on_style_updated(self, widget, tr): self._calc_row_heights(tr)