[haiku-development] Re: Set a custom icon for a BAlert

  • From: Ryan Leavengood <leavengood@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 3 Aug 2012 12:59:16 -0400

On Fri, Aug 3, 2012 at 12:50 PM, pulkomandy <pulkomandy@xxxxxxxxxxxxx> wrote:
>
> One thing to watch out for:
> BAboutWindow being a BAlert, it needs to be deleted when done with it. A
> regular BWindow doesn't. That's a rather big API change.

It isn't used in too many places, and is not yet public:

[leavengood@gargoyle] - [~/develop/haiku/src] - $ ack BAboutWindow

apps/activitymonitor/ActivityMonitor.cpp
67:     BAboutWindow
aboutWindow(B_TRANSLATE_SYSTEM_NAME("ActivityMonitor"), 2008,
kAuthors);

apps/deskcalc/CalcView.cpp
720:    BAboutWindow about(B_TRANSLATE_SYSTEM_NAME("DeskCalc"), 2006, authors,

apps/processcontroller/ProcessController.cpp
437:    BAboutWindow about(B_TRANSLATE_SYSTEM_NAME("ProcessController"),
2007, authors,

kits/shared/AboutWindow.cpp
27:BAboutWindow::BAboutWindow(const char *appName, int32 firstCopyrightYear,
68:BAboutWindow::~BAboutWindow()
76:BAboutWindow::Show()

preferences/locale/LocalePreflet.cpp
69:     BAboutWindow about(B_TRANSLATE("Locale"), 2005, authors);

-- 
Regards,
Ryan

Other related posts: