[Haiku-commits] r27509 - haiku/trunk/src/kits/interface

stippi at mail.berlios.de stippi at mail.berlios.de
Sun Sep 14 22:28:38 CEST 2008


Author: stippi
Date: 2008-09-14 22:28:35 +0200 (Sun, 14 Sep 2008)
New Revision: 27509
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=27509&view=rev

Modified:
   haiku/trunk/src/kits/interface/MenuField.cpp
Log:
Use the dedicated BView constructor for using layout management.


Modified: haiku/trunk/src/kits/interface/MenuField.cpp
===================================================================
--- haiku/trunk/src/kits/interface/MenuField.cpp	2008-09-14 19:01:54 UTC (rev 27508)
+++ haiku/trunk/src/kits/interface/MenuField.cpp	2008-09-14 20:28:35 UTC (rev 27509)
@@ -143,8 +143,7 @@
 
 BMenuField::BMenuField(const char* name, const char* label, BMenu* menu,
 					   BMessage* message, uint32 flags)
-	: BView(BRect(0, 0, -1, -1), name, B_FOLLOW_NONE,
-			flags | B_FRAME_EVENTS | B_SUPPORTS_LAYOUT)
+	: BView(name, flags | B_FRAME_EVENTS)
 {
 	InitObject(label);
 
@@ -156,8 +155,7 @@
 
 BMenuField::BMenuField(const char* label,
 					   BMenu* menu, BMessage* message)
-	: BView(BRect(0, 0, -1, -1), NULL, B_FOLLOW_NONE,
-			B_WILL_DRAW | B_NAVIGABLE | B_FRAME_EVENTS | B_SUPPORTS_LAYOUT)
+	: BView(NULL, B_WILL_DRAW | B_NAVIGABLE | B_FRAME_EVENTS)
 {
 	InitObject(label);
 




More information about the Haiku-commits mailing list