Re: [Planner Dev] Bug 128983 – Gantt bar height doesn't match treeview row height
- From: Francisco Moraes <fmoraes nc rr com>
- To: Planner Project Manager - Development List <planner-dev lists imendio com>
- Subject: Re: [Planner Dev] Bug 128983 – Gantt bar height doesn't match treeview row height
- Date: Wed, 08 Mar 2006 20:58:56 -0500
Eureka! Nice work!
I agree it would be great to find the underlying cause and make sure the
treeview height stays consistent.
I've looked at the gtktreeview.c source and this is what I found:
- starting with GTK 2.7.0, the background area got 2*focus-line-width
widget style added to the vertical size (focus-line-width defaults to 1)
- starting with GTK 2.7.3, it got changed from 2*focus-line-width to
vertical-separator (set to 2 and read-only as far as I understand it
from GTK)
I didn't find a clean way to figure out the size until I think the
treeview has been exposed. At least it doesn't seem to work consistently
in the method that matches the row heights because I get a null path
that is needed in the call to get the background area height. So, a hack
to this would be to add vertical-separator to the row height if GTK >=
2.7.0. This wouldn't be perfect if widget styles can be changed somehow.
Any comments? Any know if widget styles can be changed from their default?
Francisco
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]