[haiku-development] Re: Shared BMessage value between preflets

  • From: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 8 Feb 2017 07:19:22 +0100

On Tue, Feb 07, 2017 at 06:25:06PM -0500, Brian Hill wrote:

On Tue, Feb 7, 2017, at 04:50 PM, Axel Dörfler wrote:
No, that header belongs to the BScreen API which has nothing to do with 
the preferences application.
Right, I am updating the Screen preflet, not BScreen. 

Either put the file alongside the Screen sources, or put it in a new 
location like "headers/private/apps/Screen.h" or rather 
"headers/private/preferences/Screen.h".

Right now I have a Shared.h in /src/preferences/screens and #include
"../screen/Shared.h" in /src/preferences/backgrounds/BackgroundsView.cpp

Right now there is no headers/private/preferences directory but that
does seem like a proper place if that is better than what I have now. 

Yes, create the directory and move the header there. We can always add
more things to that directory later on :)

-- 
Adrien.

Other related posts: