# Treeview gridlines

**URL:** <https://www.ruby-forum.com/t/treeview-gridlines/77241>\
**Category:** Ruby-Gnome 2\
**Created:** [November 25, 2006, 11:04am UTC](https://www.ruby-forum.com/t/treeview-gridlines/77241 "2006-11-25T11:04:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 25, 2006, 11:04am UTC](https://www.ruby-forum.com/t/treeview-gridlines/77241/1 "2006-11-25T11:04:42Z")

</div>

Hi,

i just noticed the existence of method (not in the docs yet), and tried  
to set  
Gtk::TreeView.set\_enable\_grid\_lines(Gtk::TreeView::GridLines::VERTICAL)

but it results in:  
Gdk-CRITICAL \*\*:gdk\_draw\_line: assertion `gc != NULL’ failed

looks like a Gdk::GC should be initialized?

docs would be fine, i would know, if i’m doing something wrong 😃

thanks

---

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 25, 2006, 11:20am UTC](https://www.ruby-forum.com/t/treeview-gridlines/77241/2 "2006-11-25T11:20:44Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] Treeview gridlines” on Sat, 25 Nov 2006  
12:04:09 +0200,  
Dobai-Pataky Bálint [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i just noticed the existence of method (not in the docs yet), and tried  
> to set  
> Gtk::TreeView.set\_enable\_grid\_lines(Gtk::TreeView::GridLines::VERTICAL)
> 
> but it results in:  
> Gdk-CRITICAL \*\*:gdk\_draw\_line: assertion `gc != NULL’ failed
> 
> looks like a Gdk::GC should be initialized?

Could you use set\_enable\_grid\_lines after the widget is  
realized?

# It seems that this is a problem of GTK+.

## Thanks,

kou

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys - and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)

---

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 25, 2006, 12:04pm UTC](https://www.ruby-forum.com/t/treeview-gridlines/77241/3 "2006-11-25T12:04:50Z")

</div>

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys - and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)

---

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 25, 2006, 12:52pm UTC](https://www.ruby-forum.com/t/treeview-gridlines/77241/4 "2006-11-25T12:52:55Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] Treeview gridlines” on Sat, 25 Nov 2006  
13:03:16 +0200,  
Dobai-Pataky\_Bálint [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> realized?
> 
> ```
> 
> it’s the same, i even called TreeView.realize before.  
> i attach the my test script - this script already appeared in this list  
> selection handling related.

I found the bug as #357578:  
[Bug 357578 – No grid lines are drawn](http://bugzilla.gnome.org/show_bug.cgi?id=357578)

This is not backported to 2.10.6.

## Thanks,

kou

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys - and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)

---

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 25, 2006, 4:13pm UTC](https://www.ruby-forum.com/t/treeview-gridlines/77241/5 "2006-11-25T16:13:15Z")

</div>

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys - and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)
