Skip to content

Commit

Permalink
Merge branch 'master' of ssh://git.haiku-os.org/haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
jackburton79 committed Jan 3, 2013
2 parents 7e75e56 + d6b2fba commit 7845676
Show file tree
Hide file tree
Showing 62 changed files with 257 additions and 241 deletions.
4 changes: 3 additions & 1 deletion build/jam/HaikuImage
Expand Up @@ -751,10 +751,12 @@ CopyDirectoryToHaikuImage develop sample-code
: [ FDirName $(HAIKU_TOP) src libs pdflib bind pdflib ]
: pdflib ;

# Copy Mesa3D GL headers into image
# Copy OpenGL kit headers into image
if $(TARGET_ARCH) = x86 {
CopyDirectoryToHaikuImage develop headers os opengl
: [ FDirName $(HAIKU_MESA_HEADERS) GL ] ;
CopyDirectoryToHaikuImage develop headers os opengl
: [ FDirName $(HAIKU_GLU_HEADERS) GL ] ;
}

#pragma mark - Optional Packages
Expand Down
8 changes: 4 additions & 4 deletions build/jam/OptionalPackages
Expand Up @@ -297,8 +297,8 @@ if [ IsOptionalHaikuImagePackageAdded BePDF ] {
: $(baseURL)/bepdf-1.1.1b4-x86-gcc4-2012-08-11.zip ;
} else {
InstallOptionalHaikuImagePackage
bepdf-1.1.1b4-r1a4-x86-gcc2-2012-08-30.zip
: $(baseURL)/bepdf-1.1.1b4-r1a4-x86-gcc2-2012-08-30.zip ;
bepdf-1.1.1b4-r1a4-x86-gcc2-2013-01-02.zip
: $(baseURL)/bepdf-1.1.1b4-r1a4-x86-gcc2-2013-01-02.zip ;
}
AddSymlinkToHaikuImage home config settings deskbar Applications
: /boot/apps/BePDF/BePDF ;
Expand Down Expand Up @@ -2282,8 +2282,8 @@ if [ IsOptionalHaikuImagePackageAdded WonderBrush ] {
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && ! $(isHybridBuild) {
Echo "No optional package WonderBrush available for gcc4" ;
} else {
InstallOptionalHaikuImagePackage WonderBrush-2.1.2.zip
: $(baseURL)/WonderBrush-2.1.2-x86-gcc2-2008-11-08.zip
InstallOptionalHaikuImagePackage WonderBrush-2.1.2-a.zip
: $(baseURL)/WonderBrush-2.1.2-x86-gcc2-2013-01-02.zip
: apps ;
AddSymlinkToHaikuImage home config settings deskbar Applications
: /boot/apps/WonderBrush/WonderBrush ;
Expand Down
4 changes: 4 additions & 0 deletions src/apps/debugger/debug_info/DwarfImageDebugInfo.cpp
Expand Up @@ -673,10 +673,14 @@ DwarfImageDebugInfo::CreateFrame(Image* image,
instructionPointer, functionInstance->Address() - fRelocationDelta,
subprogramEntry->Variables(), subprogramEntry->Blocks());

// TODO: re-enable once PIC and false positive issues
// are properly dealt with
#if 0
if (returnFunctionAddress != 0) {
_CreateReturnValue(returnFunctionAddress, image, frame,
*stackFrameDebugInfo);
}
#endif
}

_frame = frameReference.Detach();
Expand Down
12 changes: 9 additions & 3 deletions src/apps/installer/InstallerApp.cpp
Expand Up @@ -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';

Expand Down Expand Up @@ -183,7 +186,7 @@ InstallerApp::ReadyToRun()
infoText << B_TRANSLATE(
"NOTE: While the naming strategy for hard disks is still as described "
"under 2.1) the naming scheme for partitions has changed.\n\n");
infoText << B_TRANSLATE(
infoText << B_TRANSLATE(
"GRUB's naming scheme is still: (hdN,n)\n\n");
infoText << B_TRANSLATE(
"All hard disks start with \"hd\".\n");
Expand Down Expand Up @@ -250,8 +253,11 @@ InstallerApp::ReadyToRun()

BRect eulaFrame = BRect(0, 0, 600, 450);
fEULAWindow = new BWindow(eulaFrame, B_TRANSLATE("README"),
B_MODAL_WINDOW, B_NOT_ZOOMABLE | B_NOT_MINIMIZABLE
| B_AUTO_UPDATE_SIZE_LIMITS);
B_MODAL_WINDOW_LOOK, B_NORMAL_WINDOW_FEEL, B_NOT_ZOOMABLE
| 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)
Expand Down
3 changes: 3 additions & 0 deletions src/apps/installer/InstallerWindow.cpp
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/apps/readonlybootprompt/BootPromptWindow.cpp
Expand Up @@ -137,7 +137,8 @@ compare_void_list_items(const void* _a, const void* _b)
BootPromptWindow::BootPromptWindow()
:
BWindow(BRect(0, 0, 530, 400), "",
B_TITLED_WINDOW, B_NOT_ZOOMABLE | B_NOT_MINIMIZABLE | B_NOT_CLOSABLE),
B_TITLED_WINDOW, B_NOT_ZOOMABLE | B_NOT_MINIMIZABLE | B_NOT_CLOSABLE,
B_ALL_WORKSPACES),
fDefaultKeymapItem(NULL)
{
SetSizeLimits(450, 16384, 350, 16384);
Expand Down
6 changes: 3 additions & 3 deletions src/kits/interface/Window.cpp
Expand Up @@ -2139,13 +2139,13 @@ BWindow::DecoratorFrame() const
// else use fall-back values from above
}

if (fLook & kLeftTitledWindowLook) {
if (fLook == kLeftTitledWindowLook) {
decoratorFrame.top -= borderWidth;
decoratorFrame.left -= tabRect.Width();
decoratorFrame.left -= borderWidth + tabRect.Width();
decoratorFrame.right += borderWidth;
decoratorFrame.bottom += borderWidth;
} else {
decoratorFrame.top -= tabRect.Height();
decoratorFrame.top -= borderWidth + tabRect.Height();
decoratorFrame.left -= borderWidth;
decoratorFrame.right += borderWidth;
decoratorFrame.bottom += borderWidth;
Expand Down
2 changes: 1 addition & 1 deletion src/kits/tracker/AUTHORS
Expand Up @@ -7,4 +7,4 @@ Jeff Bush,
Robert Chinn,
Doug Fulton,
Kenny Carruthers,
Dianne Hackborn
Dianne Hackborn
6 changes: 3 additions & 3 deletions src/kits/tracker/AttributeStream.h
Expand Up @@ -79,7 +79,7 @@ class AttributeInfo {
AttributeInfo(const AttributeInfo &);
AttributeInfo(const char*, attr_info);
AttributeInfo(const char*, uint32, off_t);

void SetTo(const AttributeInfo &);
void SetTo(const char*, attr_info);
void SetTo(const char*, uint32, off_t);
Expand Down Expand Up @@ -186,7 +186,7 @@ class AttributeStreamFileNode : public AttributeStreamNode {
private:
AttributeInfo fCurrentAttr;
BNode* fNode;

typedef AttributeStreamNode _inherited;
};

Expand Down Expand Up @@ -224,7 +224,7 @@ class AttributeStreamMemoryNode : public AttributeStreamNode {
{
delete [] fData;
}

AttributeInfo fAttr;
char* fData;
};
Expand Down
2 changes: 1 addition & 1 deletion src/kits/tracker/Bitmaps.h
Expand Up @@ -87,7 +87,7 @@ class BImageResources

private:
image_id find_image(void* memAddr) const;

mutable BLocker fLock;
BResources fResources;
};
Expand Down
8 changes: 4 additions & 4 deletions src/kits/tracker/DeskWindow.h
Expand Up @@ -67,9 +67,9 @@ class BDeskWindow : public BContainerWindow {

void UpdateDesktopBackgroundImages();
// Desktop window has special background image handling

void SaveDesktopPoseLocations();

protected:
virtual void AddWindowContextMenus(BMenu*);
virtual BPoseView* NewPoseView(Model*, BRect, uint32);
Expand All @@ -84,7 +84,7 @@ class BDeskWindow : public BContainerWindow {
BPopUpMenu* fTrashContextMenu;

BRect fOldFrame;

// in the desktop window addon shortcuts have to be added by AddShortcut
// and we don't always get the MenusBeginning call to check for new
// addons/update the shortcuts -- instead we need to node monitor the
Expand All @@ -93,7 +93,7 @@ class BDeskWindow : public BContainerWindow {
bool fShouldUpdateAddonShortcuts;
std::set<uint32> fCurrentAddonShortcuts;
// keeps track of which shortcuts are installed for Tracker addons

typedef BContainerWindow _inherited;
};

Expand Down
4 changes: 2 additions & 2 deletions src/kits/tracker/DesktopPoseView.cpp
Expand Up @@ -271,11 +271,11 @@ DesktopPoseView::AdaptToDesktopIntegrationChange(BMessage* message)
{
bool mountVolumesOnDesktop = true;
bool mountSharedVolumesOntoDesktop = true;

message->FindBool("MountVolumesOntoDesktop", &mountVolumesOnDesktop);
message->FindBool("MountSharedVolumesOntoDesktop",
&mountSharedVolumesOntoDesktop);

ShowVolumes(false, mountSharedVolumesOntoDesktop);
ShowVolumes(mountVolumesOnDesktop, mountSharedVolumesOntoDesktop);
}
2 changes: 1 addition & 1 deletion src/kits/tracker/DesktopPoseView.h
Expand Up @@ -31,7 +31,7 @@ of Be Incorporated in the United States and other countries. Other brand product
names are registered trademarks or trademarks of their respective holders.
All rights reserved.
*/

// DesktopPoseView adds support for displaying integrated desktops
// from multiple volumes to BPoseView
#ifndef _DESKTOP_POSE_VIEW_H
Expand Down
2 changes: 1 addition & 1 deletion src/kits/tracker/DialogPane.cpp
Expand Up @@ -505,7 +505,7 @@ PaneSwitch::DrawInState(PaneSwitch::State state)
switch (state) {
case kCollapsed:
BeginLineArray(6);

if (fLeftAligned) {
AddLine(BPoint(rect.left + 3, rect.top + 1),
BPoint(rect.left + 3, rect.bottom - 1), outlineColor);
Expand Down
14 changes: 7 additions & 7 deletions src/kits/tracker/DialogPane.h
Expand Up @@ -68,15 +68,15 @@ class DialogPane : public BView {
uint32 flags = B_WILL_DRAW);

virtual ~DialogPane();

BRect FrameForMode(int32);
BRect BoundsForMode(int32);

int32 Mode() const;
virtual void SetMode(int32, bool initialSetup = false);

void AddItem(BView*, int32 toMode);

void SetSwitch(BControl*);

virtual void AttachedToWindow();
Expand All @@ -87,18 +87,18 @@ class DialogPane : public BView {
// called only by the constructor

virtual void MessageReceived(BMessage* message);

private:
int32 fMode;

BRect fMode1Frame;
BRect fMode2Frame;
BRect fMode3Frame;

ViewList fMode2Items;
ViewList fMode3Items;
BControl* fLatch;

typedef BView _inherited;
};

Expand Down
2 changes: 1 addition & 1 deletion src/kits/tracker/FBCPadding.cpp
Expand Up @@ -145,6 +145,6 @@ SetPanelDirectory__10BFilePanelFP9entry_ref
{
self->SetPanelDirectory(r);
}

}
#endif
10 changes: 5 additions & 5 deletions src/kits/tracker/FSClipboard.cpp
Expand Up @@ -266,7 +266,7 @@ FSClipboardAddPoses(const node_ref* directory, PoseList* list,
refsAdded++;
} else {
clip->RemoveName(modeName);

clipNode.node = *node;
clipNode.moveMode = kDelete; // note removing node
updateMessage.AddData("tcnode", T_CLIPBOARD_NODE,
Expand All @@ -280,7 +280,7 @@ FSClipboardAddPoses(const node_ref* directory, PoseList* list,
if (clip->AddRef(refName, model->EntryRef()) == B_OK
&& clip->AddInt32(modeName, (int32)moveMode) == B_OK) {
pose->SetClipboardMode(moveMode);

clipNode.node = *node;
updateMessage.AddData("tcnode", T_CLIPBOARD_NODE,
&clipNode, sizeof(TClipboardNodeRef), true,
Expand Down Expand Up @@ -422,7 +422,7 @@ FSClipboardPaste(Model* model, uint32 linksMode)
uint32 newMoveMode = 0;
bool sameDirectory = destNodeRef->device == ref.device
&& destNodeRef->node == ref.directory;

if (!entry.Exists()) {
// The entry doesn't exist anymore, so we'll remove
// that entry from the clipboard as well
Expand Down Expand Up @@ -567,7 +567,7 @@ FSClipboardFindNodeMode(Model* model, bool autoLock, bool updateRefIfNeeded)
}
if (change)
be_clipboard->Commit();

if (autoLock)
be_clipboard->Unlock();

Expand Down Expand Up @@ -744,7 +744,7 @@ BClipboardRefsWatcher::UpdateNode(node_ref* node, entry_ref* ref)
clip->RemoveName(name);
MakeModeName(name);
clip->RemoveName(name);

RemoveNode(node);
}
be_clipboard->Commit();
Expand Down
4 changes: 2 additions & 2 deletions src/kits/tracker/FavoritesMenu.cpp
Expand Up @@ -166,7 +166,7 @@ FavoritesMenu::AddNextItem()
BMenuItem* item = BNavMenu::NewModelItem(&model,
model.IsDirectory() ? fOpenFolderMessage : fOpenFileMessage,
fTarget);

if (item == NULL)
return true;

Expand Down Expand Up @@ -314,7 +314,7 @@ FavoritesMenu::ShouldShowModel(const Model* model)

if (!fRefFilter || model->Node() == NULL)
return true;

struct stat_beos statBeOS;
convert_to_stat_beos(model->StatBuf(), &statBeOS);

Expand Down
6 changes: 3 additions & 3 deletions src/kits/tracker/FavoritesMenu.h
Expand Up @@ -58,7 +58,7 @@ class FavoritesMenu : public BSlowMenu {
BMessage* openFileMessage, const BMessenger &,
bool isSavePanel, BRefFilter* filter = NULL);
virtual ~FavoritesMenu();

void SetRefFilter(BRefFilter* filter);

private:
Expand All @@ -67,9 +67,9 @@ class FavoritesMenu : public BSlowMenu {
virtual bool AddNextItem();
virtual void DoneBuildingItemList();
virtual void ClearMenuBuildingState();

bool ShouldShowModel(const Model* model);

BMessage* fOpenFolderMessage;
BMessage* fOpenFileMessage;
BMessenger fTarget;
Expand Down
2 changes: 1 addition & 1 deletion src/kits/tracker/FindPanel.cpp
Expand Up @@ -219,7 +219,7 @@ FindWindow::FindWindow(const entry_ref* newRef, bool editIfTemplateOnly)

fFromTemplate = IsQueryTemplate(fFile);

fBackground = new FindPanel(Bounds(), fFile, this, fFromTemplate,
fBackground = new FindPanel(Bounds(), fFile, this, fFromTemplate,
fEditTemplateOnly);
AddChild(fBackground);
}
Expand Down
2 changes: 1 addition & 1 deletion src/kits/tracker/FunctionObject.h
Expand Up @@ -240,7 +240,7 @@ class ThreeParamFunctionObject : public FunctionObject {
p3(p3)
{
}

virtual void operator()() { (function)(p1.Pass(), p2.Pass(), p3.Pass()); }

private:
Expand Down
2 changes: 1 addition & 1 deletion src/kits/tracker/GroupedMenu.cpp
Expand Up @@ -24,7 +24,7 @@ TMenuItemGroup::TMenuItemGroup(const char* name)
TMenuItemGroup::~TMenuItemGroup()
{
free((char*)fName);

if (fMenu == NULL) {
BMenuItem* item;
while ((item = RemoveItem((int32)0)) != NULL)
Expand Down
2 changes: 1 addition & 1 deletion src/kits/tracker/IconCache.cpp
Expand Up @@ -526,7 +526,7 @@ IconCache::GetIconFromFileTypes(ModelNodeLazyOpener* modelOpener,
(SharedCacheEntry*)entry);
// OK to cast here, have a runtime check
source = kPreferredAppForNode;
// set source as preferred for node, so that next time we
// set source as preferred for node, so that next time we
// get a hit in the initial find that uses
// GetIconForPreferredApp
} else
Expand Down

0 comments on commit 7845676

Please sign in to comment.