Which version of Tile extension is your patch based on?
).7.6, which seems to be the latest.
[about Tk::Tile::TNotebook#tab]
There are Tk::Tile::TNotebook#tabconfigure, tabconfiginfo, tabcget,
and current_tabconfiginfo (similar as item configuration strategy on
other widgets). Aren’t those enough?
Umm, I guess I missed those. If they work the same then that’s fine.
[about Tk::Tile::TNotebook#select]
How about adding new method “Tk::Tile::TNotebook#selected”?
class Tk::Tile::TNotebook
def selected
num_or_str(tk_send_without_enc(‘select’))
end
end
That’s fine too, I was just keeping the API the same as in the tile
documentation.
[about Tk::Tile::Treeview#insert]
Is the following OK?
class Tk::Tile::Treeview
def insert(parent, idx, keys={})
keys = _symbolkey2str(keys)
id = keys.delete(‘id’)
if id
num_or_str(tk_send(‘insert’, parent, idx, ‘-id’, id,
*hash_kv(keys)))
else
num_or_str(tk_send(‘insert’, parent, idx, *hash_kv(keys)))
end
end
end
Again looks fine to me. I’ll test them all out and let you know.
I’m having issues with using ‘itemconfigure’ on a tab:
irb(main):007:0> tabs.itemconfigure(0, :compound=>:text)
ArgumentError: wrong number of arguments (1 for 0)
from /usr/local/lib/ruby/1.8/tk/itemconfig.rb:232:in __item_methodcall_optkeys' from /usr/local/lib/ruby/1.8/tk/itemconfig.rb:232:initemconfigure’
from (irb):7
irb(main):008:0>
I’m guessing I’m not getting the API call right, but I can’t seem to
figure out what kinda syntax it wants. Other than that, your suggested
changes work great.
I’m having issues with using ‘itemconfigure’ on a tab:
irb(main):007:0> tabs.itemconfigure(0, :compound=>:text)
ArgumentError: wrong number of arguments (1 for 0)
from /usr/local/lib/ruby/1.8/tk/itemconfig.rb:232:in __item_methodcall_optkeys' from /usr/local/lib/ruby/1.8/tk/itemconfig.rb:232:in itemconfigure’
from (irb):7
irb(main):008:0>
Very sorry. That’s a disgraceful bug. Please try this patch.