We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ff24a3 + bbad81d commit 64af87eCopy full SHA for 64af87e
MainWindow.h
@@ -10,6 +10,9 @@
10
11
#include <Application.h>
12
#include <Bitmap.h>
13
+#include <Entry.h>
14
+#include <Path.h>
15
+#include <Roster.h>
16
#include <Screen.h>
17
#include <Window.h>
18
#include <MenuBar.h>
@@ -29,7 +32,13 @@ class BackView : public BView
29
32
BackView(BRect r, const char* t, uint32 fl, uint32 fl2)
30
33
: BView(r, t, fl, fl2) {
31
34
fBackgroundColor = BScreen().DesktopColor();
- bitmap = BTranslationUtils::GetBitmap("/boot/home/hexvexed/background.png");
35
+ app_info info;
36
+ be_roster->GetActiveAppInfo(&info);
37
+ BEntry entry(&info.ref);
38
+ BPath path;
39
+ entry.GetPath(&path);
40
+ path.Append("backgrounds/background.png");
41
+ bitmap = BTranslationUtils::GetBitmap(path.Path());
42
}
43
44
0 commit comments