[Haiku-commits] r21364 - in haiku/trunk: headers/os/interface src/kits/interface
Axel Dörfler
axeld at pinc-software.de
Sat Jun 9 21:31:58 CEST 2007
Ingo Weinhold <bonefish at cs.tu-berlin.de> wrote:
> On 2007-06-09 at 19:12:48 [+0200], Axel Dörfler <axeld at pinc-software.de>
> > wrote:
> > bonefish at BerliOS <bonefish at mail.berlios.de> wrote:
> > > * Added default value for message in two arguments constructor.
> > Does it make much sense to have a button without a message if not
> > for
> > testing?
> If you implement a derived class and want to do things synchronously,
> you
> wouldn't need a message at all. But even if you use it synchronously,
> you
> might not want to set the message right at construction time. At any
> rate I
> see no harm in providing a default argument. This way even the header
> documents that you don't have to provide a message.
Okay, I was just interested in your reasoning behind this change :-)
> BTW, other sane GUI APIs, like Java and Qt, allow creating a button
> with
> just a label (JButton, QPushButton), actually even without any
> parameters.
I believe you've just added that very constructor to BButton, too,
didn't you?
Bye,
Axel.
More information about the Haiku-commits
mailing list