removed B_PULSE_NEEDED flag, fixed BRect size
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9364 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -24,7 +24,7 @@ class DeskButton : public BView {
|
|||||||
public:
|
public:
|
||||||
DeskButton(BRect frame, entry_ref *ref, const char *name, BList &titleList, BList &actionList,
|
DeskButton(BRect frame, entry_ref *ref, const char *name, BList &titleList, BList &actionList,
|
||||||
uint32 resizeMask = B_FOLLOW_ALL,
|
uint32 resizeMask = B_FOLLOW_ALL,
|
||||||
uint32 flags = B_WILL_DRAW | B_NAVIGABLE | B_PULSE_NEEDED);
|
uint32 flags = B_WILL_DRAW | B_NAVIGABLE);
|
||||||
|
|
||||||
DeskButton(BMessage *);
|
DeskButton(BMessage *);
|
||||||
// BMessage * based constructor needed to support archiving
|
// BMessage * based constructor needed to support archiving
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class MediaReplicant : public BView {
|
|||||||
public:
|
public:
|
||||||
MediaReplicant(BRect frame, const char *name,
|
MediaReplicant(BRect frame, const char *name,
|
||||||
uint32 resizeMask = B_FOLLOW_ALL,
|
uint32 resizeMask = B_FOLLOW_ALL,
|
||||||
uint32 flags = B_WILL_DRAW | B_NAVIGABLE | B_PULSE_NEEDED);
|
uint32 flags = B_WILL_DRAW | B_NAVIGABLE);
|
||||||
|
|
||||||
MediaReplicant(BMessage *);
|
MediaReplicant(BMessage *);
|
||||||
// BMessage * based constructor needed to support archiving
|
// BMessage * based constructor needed to support archiving
|
||||||
@@ -419,7 +419,7 @@ main(int, char **argv)
|
|||||||
entry.GetRef(&ref);
|
entry.GetRef(&ref);
|
||||||
|
|
||||||
status_t err;
|
status_t err;
|
||||||
err = BDeskbar().AddItem(new DeskButton(BRect(0, 0, 16, 16), &ref, "DeskButton",
|
err = BDeskbar().AddItem(new DeskButton(BRect(0, 0, 15, 15), &ref, "DeskButton",
|
||||||
titleList, actionList));
|
titleList, actionList));
|
||||||
|
|
||||||
if(err!=B_OK) {
|
if(err!=B_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user