[haiku-commits] Re: haiku: hrev45330 - src/preferences/time

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 03 Mar 2013 16:23:06 +0100

On 03/02/2013 10:46 PM, mattmadia@xxxxxxxxx wrote:
f0e995c: Create TimeZoneListView class and move GetToolTipAt into it, fixes 
#7726
+       if (fToolTip != NULL)
+               fToolTip->ReleaseReference();
+       fToolTip = new (std::nothrow) BTextToolTip(toolTip.String());
+       if (fToolTip == NULL)
+               return false;

BTW there is a SetToolTip(const char*) version that could be used instead of doing it the complicated way.

Bye,
   Axel.


Other related posts: