[haiku-commits] Re: haiku: hrev48817 - src/apps/deskbar

  • From: Stefano Ceccherini <stefano.ceccherini@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 20 Feb 2015 06:59:47 +0100

Il 20/feb/2015 02:46 <jscipione@xxxxxxxxx> ha scritto:
>
>   Add private BMenu::_SetMenuLayout() method. Set TExpandoMenuBar
>   as a friend class in BMenu to call this method. A little hacky,
>   but, this keeps SetMenuLayout() from being exposed as part of
>   the public API.
>

Noce work!
To avoid this friend declaration, you could have a look at MenuPrivate.h.
Basically, you could add a MenuPrivate::SetMenuPrivate() which would call
the respective BMenu method. Since MenuPrivate is already friend of BMenu
you don't have to add TMenuBar, too.

>

Other related posts: