|
From: Detlef W. <det...@gm...> - 2016-11-08 18:56:15
|
Hi,
to the C function gtk_tree_view_column_new_with_area is no ruby
equivalent. I think, it is most useful to use an options hash for
initialize, like this:
def initialize(options={})
area = options[:area]
renderer = options[:renderer]
title = options[:title]
attributes = options[:attributes] || {}
if area
initialize_new_with_area(area)
else
initialize_raw
end
set_title(title) if title
pack_start(renderer, true) if renderer
attributes.each_entry do |key, value|
add_attribute(cell, key, value)
end
end
But this would not be backward compatible. Any suggestions or opinions?
Cheers, detlef
|