From: Detlef R. <det...@gm...> - 2007-11-12 16:36:11
|
Nice idea, i like it. Btw. it works for all subclasses of Gtk::Bin Cheers detlef Am Montag, den 12.11.2007, 15:27 +0100 schrieb Marc Heiler: > Hi, > > I am using Gtk::Entry and one thing I quite like in Ruby is the << > ability to just append something onto an object, ie. mostly to a String > or Array. > > I.e. on an already existing Gtk::Entry to << append text. I think using > << is not very common in ruby-gnome so far. I believe << can be used for > Gtk::Window, and maybe at some other places, but I was wondering whether > << should maybe also work for objects like Gtk::Entry, which basically > just store a text. > > PS: This is just a suggestion of course, I totally understand if we want > to stick to Gtk API and not use too many ruby-only constructs :) |