Horizontal grid lines lost (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: Horizontal grid lines lost
|
sutterp (User)
Fresh Boarder
Posts: 19
|
|
Horizontal grid lines lost 1 Month, 2 Weeks ago
|
Karma: 0
|
|
When the background of a cell is altered, the horizontal grid lines get 'lost'.
I added
$view->set_grid_lines(Gtk::TREE_VIEW_GRID_LINES_BOTH);
before line 61
$scrolled_win->add($view);
in your example Sample Code 145: How to selectively highlight some cells in GtkTreeView?
Magically the horizontal grid lines are gone.
Hor to fix?
|
|
|
|
|
|
|
Last Edit: 2008/10/01 13:22 By sutterp.
|
|
|
The administrator has disabled public write access.
|
chezmmd (User)
Fresh Boarder
Posts: 2
|
|
Re:Horizontal grid lines lost 1 Week, 3 Days ago
|
Karma: 0
|
|
We've had this problems for months, and I finally had time to isolate what's happening.
Are you doing any 'set_visible's on the columns?
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
sutterp (User)
Fresh Boarder
Posts: 19
|
|
Re:Horizontal grid lines lost 1 Week, 2 Days ago
|
Karma: 0
|
|
No 'set_visible's in the code, I just added
$view->set_grid_lines(Gtk::TREE_VIEW_GRID_LINES_BOTH);
before line 61 in example code 145,
assuming that set_grid_lines applies globally to all columns and rows of a treeview. Only background colors are set.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
chezmmd (User)
Fresh Boarder
Posts: 2
|
|
Re:Horizontal grid lines lost 1 Week, 1 Day ago
|
Karma: 0
|
|
Okay, not the same problem as ours. We are losing grid lines in a corresponding count to the set visibles.
On yours, have you tried moving the set_grid_lines to after the for loop, @ line 83? I ask, because we are not having problem with color backgrounds and missing grid lines, when we don't use set visibles.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|