Forum: Ruby-Gnome 2 Bug in Gtk::Treeview#row_expanded

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0d130f179f85401f248e6ebc2ef8292f?d=identicon&s=25 Eric C. (eric_c)
on 2016-05-06 22:18
Hi:

I don't know where to report these bugs.  Please let me know.

I found this bug when using Gtk::Treeview#row_expanded.  The method
doesn't return a valid iter.




  def self__row_expanded(view, iter, path)
   #iter = model.get_iter(path)
    VR::msg( iter[2] )
  end

This causes this error:

/home/eric/.rvm/gems/ruby-2.3.0/gems/gtk3-3.0.8/lib/gtk3/tree-iter.rb:28:in
`get_value': undefined method `get_value' for nil:NilClass
   from
/home/eric/vrp/vr3/visualruby_examples/filetreeview/bin/FileTreeView.rb:18:in
`self__row_expanded'
   from /home/eric/vrp/vrlib3/lib/GladeGUI.rb:163:in `call'
   from /home/eric/vrp/vrlib3/lib/GladeGUI.rb:163:in `block (2 levels)
in parse_signals'
   from
/home/eric/.rvm/gems/ruby-2.3.0/gems/gobject-introspection-3.0.8/lib/gobject-introspection/loader.rb:551:in
`invoke'
   from
/home/eric/.rvm/gems/ruby-2.3.0/gems/gobject-introspection-3.0.8/lib/gobject-introspection/loader.rb:551:in
`block in define_method'
   from
/home/eric/vrp/vr3/visualruby_examples/filetreeview/bin/FileTreeView.rb:51:in
`refresh'


If I uncomment the line where I reassign the iter variable using the
model#get_iter method, it works perfectly.

I'd like to work more closely with the people who work on Ruby/Gtk.
Please let me know who you are.

Thanks for all your great work!

Eric
This topic is locked and can not be replied to.