PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Horizontal grid lines lost (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Horizontal grid lines lost
#902
sutterp (User)
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
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.
#1128
chezmmd (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
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.
#1129
sutterp (User)
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
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.
#1150
chezmmd (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
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.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2008. kksou.com. All Rights Reserved