[haiku-commits] haiku: hrev45123 - src/apps/installer

  • From: mattmadia@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 3 Jan 2013 14:27:24 +0100 (CET)

hrev45123 adds 1 changeset to branch 'master'
old head: 87d333ee131f27cbab8bac9ee778865efba69fb6
new head: 1565964a118a8c28bfa98ce6347ffdf22c2f1446
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=1565964+%5E87d333e

----------------------------------------------------------------------------

1565964: Show Installer on all workspaces when Tracker isn't running.
  
  This applies to the EULA window as well. Addresses #9287:comment:5

                                        [ Matt Madia <mattmadia@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45123
Commit:      1565964a118a8c28bfa98ce6347ffdf22c2f1446
URL:         http://cgit.haiku-os.org/haiku/commit/?id=1565964
Author:      Matt Madia <mattmadia@xxxxxxxxx>
Date:        Thu Jan  3 08:26:20 2013 UTC

Ticket:      https://dev.haiku-os.org/ticket/9287

----------------------------------------------------------------------------

2 files changed, 11 insertions(+), 2 deletions(-)
src/apps/installer/InstallerApp.cpp    | 8 +++++++-
src/apps/installer/InstallerWindow.cpp | 5 ++++-

----------------------------------------------------------------------------

diff --git a/src/apps/installer/InstallerApp.cpp 
b/src/apps/installer/InstallerApp.cpp
index a4e7237..8f16d34 100644
--- a/src/apps/installer/InstallerApp.cpp
+++ b/src/apps/installer/InstallerApp.cpp
@@ -10,9 +10,12 @@
 #include <Button.h>
 #include <LayoutBuilder.h>
 #include <Locale.h>
+#include <Roster.h>
 #include <ScrollView.h>
 #include <TextView.h>
 
+#include "tracker_private.h"
+
 
 static const uint32 kMsgAgree = 'agre';
 
@@ -251,7 +254,10 @@ InstallerApp::ReadyToRun()
        BRect eulaFrame = BRect(0, 0, 600, 450);
        fEULAWindow = new BWindow(eulaFrame, B_TRANSLATE("README"),
                B_MODAL_WINDOW_LOOK, B_NORMAL_WINDOW_FEEL, B_NOT_ZOOMABLE
-                       | B_NOT_MINIMIZABLE | B_AUTO_UPDATE_SIZE_LIMITS, 
B_ALL_WORKSPACES);
+                       | B_NOT_MINIMIZABLE | B_AUTO_UPDATE_SIZE_LIMITS);
+
+       if (!be_roster->IsRunning(kTrackerSignature))
+               fEULAWindow->SetWorkspaces(B_ALL_WORKSPACES);
 
        BLayoutBuilder::Group<>(fEULAWindow, B_VERTICAL, 10)
                .SetInsets(10)
diff --git a/src/apps/installer/InstallerWindow.cpp 
b/src/apps/installer/InstallerWindow.cpp
index a43fe39..251f4f5 100644
--- a/src/apps/installer/InstallerWindow.cpp
+++ b/src/apps/installer/InstallerWindow.cpp
@@ -157,7 +157,7 @@ InstallerWindow::InstallerWindow()
        :
        BWindow(BRect(-2000, -2000, -1800, -1800),
                B_TRANSLATE_SYSTEM_NAME("Installer"), B_TITLED_WINDOW,
-               B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS, B_ALL_WORKSPACES),
+               B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS),
        fEncouragedToSetupPartitions(false),
        fDriveSetupLaunched(false),
        fBootManagerLaunched(false),
@@ -165,6 +165,9 @@ InstallerWindow::InstallerWindow()
        fWorkerThread(new WorkerThread(this)),
        fCopyEngineCancelSemaphore(-1)
 {
+       if (!be_roster->IsRunning(kTrackerSignature))
+               SetWorkspaces(B_ALL_WORKSPACES);
+
        LogoView* logoView = new LogoView();
 
        fStatusView = new BTextView("statusView", be_plain_font, NULL,


Other related posts:

  • » [haiku-commits] haiku: hrev45123 - src/apps/installer - mattmadia