After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 700578 - Missing vertical grid lines when some columns hidden.
Missing vertical grid lines when some columns hidden.
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2013-05-18 14:29 UTC by Bob
Modified: 2013-05-18 23:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bob 2013-05-18 14:29:45 UTC
Hi,

If you enable grid lines for a tree view, all seems to be working until you decide to hide any columns. If you hide any columns, the vertical grid lines start to disappear from the right side by the number of hidden columns. This occurs in Gtk+-2.24.18 and also in Gtk+-3.6.4

The problem function is gtk_tree_view_draw_grid_lines which are almost identical between versions.

To fix the problem for Gtk+-2.24.18 I changed the line on 4291 from this, 

  for (list = tree_view->priv->columns; list; list = list->next, i++)

to this,

  for (list = tree_view->priv->columns; list; list = list->next)

and added on line 4301 this

      i++;

Similar changes can probably be made for Gtk3.