# File gtk3/test/test_gtk_icon_view.rb, line 22 def setup only_gtk_version(3, 6, 0) model = Gtk::ListStore.new(String, Gdk::Pixbuf) iter = model.append model.set_values(iter, ["label", nil]) @path = iter.path @icon_view = Gtk::IconView.new(model) end
# File gtk3/test/test_gtk_icon_view.rb, line 31 def test_found assert_kind_of(Gdk::Rectangle, @icon_view.get_cell_rect(@path)) end
# File gtk3/test/test_gtk_icon_view.rb, line 35 def test_not_found not_found_path = Gtk::TreePath.new(@path.indices.first + 1) assert_nil(@icon_view.get_cell_rect(not_found_path)) end