The BSeparatorItem is now always diabled, and thus, cannot be selected anymore.
This fixes bug #277. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17026 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,18 +10,21 @@
|
||||
|
||||
/*! Display separator item for BMenu class */
|
||||
|
||||
#include <MenuItem.h>
|
||||
|
||||
#include <SeparatorItem.h>
|
||||
|
||||
|
||||
BSeparatorItem::BSeparatorItem()
|
||||
: BMenuItem("", NULL, 0, 0)
|
||||
: BMenuItem("", NULL)
|
||||
{
|
||||
BMenuItem::SetEnabled(false);
|
||||
}
|
||||
|
||||
|
||||
BSeparatorItem::BSeparatorItem(BMessage* archive)
|
||||
: BMenuItem(archive)
|
||||
{
|
||||
BMenuItem::SetEnabled(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +53,7 @@ BSeparatorItem::Instantiate(BMessage* archive)
|
||||
void
|
||||
BSeparatorItem::SetEnabled(bool state)
|
||||
{
|
||||
// Don't do anything
|
||||
// Don't do anything - we don't want to get enabled ever
|
||||
}
|
||||
|
||||
|
||||
@@ -122,6 +125,9 @@ BSeparatorItem::Draw()
|
||||
}
|
||||
|
||||
|
||||
// #pragma mark - private
|
||||
|
||||
|
||||
void BSeparatorItem::_ReservedSeparatorItem1() {}
|
||||
void BSeparatorItem::_ReservedSeparatorItem2() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user