# VR::ComboCol/VR::CellRendererCombo and attaching to signals (or any other cellrenderers)

**URL:** <https://www.ruby-forum.com/t/vr-combocol-vr-cellrenderercombo-and-attaching-to-signals-or-any-other-cellrenderers/245390>\
**Category:** Ruby-Gnome 2\
**Created:** [May 25, 2013, 7:22am UTC](https://www.ruby-forum.com/t/vr-combocol-vr-cellrenderercombo-and-attaching-to-signals-or-any-other-cellrenderers/245390 "2013-05-25T07:22:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [May 25, 2013, 7:22am UTC](https://www.ruby-forum.com/t/vr-combocol-vr-cellrenderercombo-and-attaching-to-signals-or-any-other-cellrenderers/245390/1 "2013-05-25T07:22:29Z")

</div>

Hi there

I’m coding an app with visualruby and I love it, but sometimes the lack  
of documentation and knowledge/skills (on my side) gets me stuck. 🙂

What I can’t seem to get past now is to attach some code to  
VR::ComboCol/VR::CellRendererCombo signals? (Or any other signals  
produced by cells in a listview, for that matter?)

Cheers,  
k

---

<div class="post-metadata">

**Author:** ![kacper\_m](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/977dab/32.png) [@kacper\_m](https://www.ruby-forum.com/u/kacper_m)\
**Post date:** [May 25, 2013, 5:48pm UTC](https://www.ruby-forum.com/t/vr-combocol-vr-cellrenderercombo-and-attaching-to-signals-or-any-other-cellrenderers/245390/2 "2013-05-25T17:48:35Z")

</div>

Hello Kacper,

I’m glad that your enjoying the use of VisualRuby. As to working with  
Column Renderers, you will need to get the column first, which you can  
do  
by using the ViewCommon method: renderer(:id).

This will return the Actual Renderer for the column that you want to  
modify, or connect a signal to. So, you would do something like this:

tree = VR::TreeView.new(:x =\> String, :y =\> String, :z =\> String)  
tree.renderer(:y).signal\_connect(“editing-started”) do |\*args|  
… do code here …  
end

hth,

Mario

On Sat, May 25, 2013 at 1:22 AM, Kacper M. \<  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

> k  
> and get this awesome Nerd Life shirt! [http://p.sf.net/sfu/newrelic\_d2d\_may](http://p.sf.net/sfu/newrelic_d2d_may)
> 
> * * *
> 
> ruby-gnome2-devel-en mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
Mario S.  
Fleet Captain  
CO - Geo 99  
CO - USS T’hy’la  
XO - Diplomatic Corps - Second Life  
[http://www.iftcommand.com/chapters/thyla/](http://www.iftcommand.com/chapters/thyla/)

> **[HOME | The Federation](https://www.trekfederation.com)**

---

<div class="post-metadata">

**Author:** ![kacper\_m](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/977dab/32.png) [@kacper\_m](https://www.ruby-forum.com/u/kacper_m)\
**Post date:** [May 26, 2013, 1:53pm UTC](https://www.ruby-forum.com/t/vr-combocol-vr-cellrenderercombo-and-attaching-to-signals-or-any-other-cellrenderers/245390/3 "2013-05-26T13:53:56Z")

</div>

Thank you. 🙂

---

<div class="post-metadata">

**Author:** ![kacper\_m](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/977dab/32.png) [@kacper\_m](https://www.ruby-forum.com/u/kacper_m)\
**Post date:** [May 26, 2013, 7:48pm UTC](https://www.ruby-forum.com/t/vr-combocol-vr-cellrenderercombo-and-attaching-to-signals-or-any-other-cellrenderers/245390/4 "2013-05-26T19:48:32Z")

</div>

No problem, if you have any other questions, feel free to ask. I will  
respond when I can. 😉

On Sun, May 26, 2013 at 7:53 AM, Kacper M. \<  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

> browser, app, & servers with just a few lines of code. Try New Relic  
> and get this awesome Nerd Life shirt! [http://p.sf.net/sfu/newrelic\_d2d\_may](http://p.sf.net/sfu/newrelic_d2d_may)
> 
> * * *
> 
> ruby-gnome2-devel-en mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
Mario S.  
Fleet Captain  
CO - Geo 99  
CO - USS T’hy’la  
XO - Diplomatic Corps - Second Life  
[http://www.iftcommand.com/chapters/thyla/](http://www.iftcommand.com/chapters/thyla/)

> **[HOME | The Federation](https://www.trekfederation.com)**
