On Mon, 2002-09-23 at 21:16, Matthias Warkus wrote: > +++ Mon, Sep 23, 2002 at 11:27:36AM -0400 +++ > Jody Goldberg e-mails me. Film at 11. Reply right now, after the break. > > On Mon, Sep 23, 2002 at 05:21:25AM -0400, Alexander Larsson wrote: > > > You're both clearly too low-level here. We need to solve *real* users needs: > > > > > > gnome_generate_money (void) > > > > This is a common request. Most of the traders I've worked with > > regularly requested a simplified interfaces that were characterized > > by a single button > > > > /---------------\ > > | Make Me Money | > > \---------------/ > > If this case is that common, we should consider deriving a > GnomeMoneyMaker widget -- essentially a GtkButton that has "clicked" > hooked up to gnome_generate_money() by default. class Gtk:Money:Maker from Gtk:Button { public GtkWidget * new (void) { return (GtkWidget *)GET_NEW; } override (Gtk:Button) void clicked (Gtk:Button *self (check null type)) { gnome_generate_money (); PARENT_HANDLER (self); } } Oh man, I love gob ;) -- /Bastien Nocera http://hadess.net
Attachment:
signature.asc
Description: This is a digitally signed message part