Forum: Ruby-Gnome 2 VR::ComboCol/VR::CellRendererCombo and attaching to signals (or any other cellrenderers)

E040c3341f4ccc3aa85ae171fec6e296?d=identicon&s=25 Kacper M. (kacper_m)
on 2013-05-25 07:22
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
3396e4a3df8a840faec520af8555a400?d=identicon&s=25 Mario Steele (Guest)
on 2013-05-25 17:48
(Received via mailing list)
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. <
ruby-forum-incoming@andreas-s.net> wrote:

> k
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> _______________________________________________
> ruby-gnome2-devel-en mailing list
> ruby-gnome2-devel-en@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ruby-...
>



--
Mario Steele
Fleet Captain
CO - Geo 99
CO - USS T'hy'la
XO - Diplomatic Corps - Second Life
http://www.iftcommand.com/chapters/thyla/
http://www.trekfederation.com
E040c3341f4ccc3aa85ae171fec6e296?d=identicon&s=25 Kacper M. (kacper_m)
on 2013-05-26 13:53
Thank you. :)
3396e4a3df8a840faec520af8555a400?d=identicon&s=25 Mario Steele (Guest)
on 2013-05-26 19:48
(Received via mailing list)
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. <
ruby-forum-incoming@andreas-s.net> 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
> _______________________________________________
> ruby-gnome2-devel-en mailing list
> ruby-gnome2-devel-en@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ruby-...
>



--
Mario Steele
Fleet Captain
CO - Geo 99
CO - USS T'hy'la
XO - Diplomatic Corps - Second Life
http://www.iftcommand.com/chapters/thyla/
http://www.trekfederation.com
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.