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

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. :slight_smile:

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

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. <
[email protected]> wrote:

k
and get this awesome Nerd Life shirt! Best Open Source Mac Front-Ends 2023


ruby-gnome2-devel-en mailing list
[email protected]
ruby-gnome2-devel-en List Signup and Options


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

Thank you. :slight_smile:

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

On Sun, May 26, 2013 at 7:53 AM, Kacper M. <
[email protected]> wrote:

browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! Best Open Source Mac Front-Ends 2023


ruby-gnome2-devel-en mailing list
[email protected]
ruby-gnome2-devel-en List Signup and Options


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