G
gabriele renzi
Hi gurus and nubys,
I was playing a little with ruby-Gtk2 , and I have to admit that this
a wonderful library, thanks to everybody that provided it.
Still, I can't understand something in the way bindings are done.
It seem that for many widgets there are 3 accessors for internal
variables,i.e. for Window's title we have
Window#title # reader, returns title
Window#title=(title) # writer, returns title
Window#set_title # writer, returns self
It's just my impression or this is the normal way ?
I mean the writer like 'attribute=' returns his argument while the
writer with "set_attribute" returns self .
Can I assume this is the behaviour of the whole Gtk stuff?
thanks in advance for any answer.
I was playing a little with ruby-Gtk2 , and I have to admit that this
a wonderful library, thanks to everybody that provided it.
Still, I can't understand something in the way bindings are done.
It seem that for many widgets there are 3 accessors for internal
variables,i.e. for Window's title we have
Window#title # reader, returns title
Window#title=(title) # writer, returns title
Window#set_title # writer, returns self
It's just my impression or this is the normal way ?
I mean the writer like 'attribute=' returns his argument while the
writer with "set_attribute" returns self .
Can I assume this is the behaviour of the whole Gtk stuff?
thanks in advance for any answer.