[haiku-commits] Re: haiku: hrev51524 - in src/apps: deskbar powerstatus

  • From: Jérôme Duval <jerome.duval@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 7 Nov 2017 16:31:03 +0100

2017-11-06 6:20 GMT+01:00  <jscipione@xxxxxxxxx>:

+
+                       // inform Deskbar that it needs to realign its 
replicants
+                       BWindow* window = Window();
+                       if (window != NULL) {
+                               BView* view = window->FindView("Status");
+                               if (view != NULL) {
+                                       BMessenger target((BHandler*)view);
+                                       BMessage realignReplicants('Algn');
+                                       
target.SendMessage(&realignReplicants);
+                               }
+                       }
+               }

It would have been nice to reuse the constants instead of hardcoding the value.

Bye
Jérôme

Other related posts: