[Haiku-commits] r21364 - in haiku/trunk: headers/os/interface src/kits/interface
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,
> wouldn't need a message at all. But even if you use it synchronously,
> 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
> just a label (JButton, QPushButton), actually even without any
I believe you've just added that very constructor to BButton, too,
More information about the Haiku-commits