Tracker: Tell pose view on Desktop to update its colors and replicant colors
... on B_RESTORE_BACKGROUND_IMAGE (which sets the Desktop color or wallpaper). Remove kRestoreBackgroundImage, preferring the B_ version we got from Backgrounds (and represents the same constant). Tracker already imported this constant long ago. Fixes #20028. Change-Id: I6c59f4ddd1b2a7ec0d5e90fe6a8a9671dc66d50e Reviewed-on: https://review.haiku-os.org/c/haiku/+/10729 Reviewed-by: waddlesplash <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
132ee49626
commit
6e64d5681f
@@ -59,8 +59,6 @@ extern const char* kBackgroundImageInfoMode;
|
|||||||
extern const char* kBackgroundImageInfoWorkspaces;
|
extern const char* kBackgroundImageInfoWorkspaces;
|
||||||
extern const char* kBackgroundImageInfoPath;
|
extern const char* kBackgroundImageInfoPath;
|
||||||
|
|
||||||
const uint32 kRestoreBackgroundImage = 'Tbgr';
|
|
||||||
|
|
||||||
class BackgroundImage {
|
class BackgroundImage {
|
||||||
// This class knows everything about which bitmap to use for a given
|
// This class knows everything about which bitmap to use for a given
|
||||||
// view and how.
|
// view and how.
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ All rights reserved.
|
|||||||
#include "Attributes.h"
|
#include "Attributes.h"
|
||||||
#include "AutoDeleter.h"
|
#include "AutoDeleter.h"
|
||||||
#include "AutoLock.h"
|
#include "AutoLock.h"
|
||||||
|
#include "Background.h"
|
||||||
#include "BackgroundImage.h"
|
#include "BackgroundImage.h"
|
||||||
#include "Commands.h"
|
#include "Commands.h"
|
||||||
#include "CountView.h"
|
#include "CountView.h"
|
||||||
@@ -1503,7 +1504,7 @@ BContainerWindow::MessageReceived(BMessage* message)
|
|||||||
be_app->PostMessage(B_QUIT_REQUESTED);
|
be_app->PostMessage(B_QUIT_REQUESTED);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kRestoreBackgroundImage:
|
case B_RESTORE_BACKGROUND_IMAGE:
|
||||||
UpdateBackgroundImage();
|
UpdateBackgroundImage();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ All rights reserved.
|
|||||||
|
|
||||||
#include "Attributes.h"
|
#include "Attributes.h"
|
||||||
#include "AutoLock.h"
|
#include "AutoLock.h"
|
||||||
|
#include "Background.h"
|
||||||
#include "BackgroundImage.h"
|
#include "BackgroundImage.h"
|
||||||
#include "Commands.h"
|
#include "Commands.h"
|
||||||
#include "FSUtils.h"
|
#include "FSUtils.h"
|
||||||
@@ -594,6 +595,11 @@ BDeskWindow::MessageReceived(BMessage* message)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case B_RESTORE_BACKGROUND_IMAGE:
|
||||||
|
UpdateBackgroundImage();
|
||||||
|
PoseView()->MessageReceived(message);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
_inherited::MessageReceived(message);
|
_inherited::MessageReceived(message);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -2240,11 +2240,6 @@ BPoseView::MessageReceived(BMessage* message)
|
|||||||
AddPosesCompleted();
|
AddPosesCompleted();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kRestoreBackgroundImage:
|
|
||||||
if (ContainerWindow() != NULL)
|
|
||||||
ContainerWindow()->MessageReceived(message);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case B_META_MIME_CHANGED:
|
case B_META_MIME_CHANGED:
|
||||||
NoticeMetaMimeChanged(message);
|
NoticeMetaMimeChanged(message);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ All rights reserved.
|
|||||||
|
|
||||||
#include "Attributes.h"
|
#include "Attributes.h"
|
||||||
#include "AutoLock.h"
|
#include "AutoLock.h"
|
||||||
|
#include "Background.h"
|
||||||
#include "BackgroundImage.h"
|
#include "BackgroundImage.h"
|
||||||
#include "Bitmaps.h"
|
#include "Bitmaps.h"
|
||||||
#include "Commands.h"
|
#include "Commands.h"
|
||||||
@@ -536,7 +537,7 @@ TTracker::MessageReceived(BMessage* message)
|
|||||||
MountServer().SendMessage(message);
|
MountServer().SendMessage(message);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kRestoreBackgroundImage:
|
case B_RESTORE_BACKGROUND_IMAGE:
|
||||||
{
|
{
|
||||||
BDeskWindow* desktop = GetDeskWindow();
|
BDeskWindow* desktop = GetDeskWindow();
|
||||||
AutoLock<BWindow> lock(desktop);
|
AutoLock<BWindow> lock(desktop);
|
||||||
|
|||||||
Reference in New Issue
Block a user