[haiku-commits] haiku: hrev50139 - src/kits/tracker

  • From: waddlesplash@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 8 Mar 2016 00:06:09 +0100 (CET)

hrev50139 adds 1 changeset to branch 'master'
old head: 80bc632afdc31ca050f12a4f400fc89de7633010
new head: 9bd7e4014f08d97256837139a5fd0f8212c588ca
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=9bd7e4014f08+%5E80bc632afdc3

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

9bd7e4014f08: Tracker: Restore original PoseView/TitleView names except in 
BFilePanel.
  
  Should've fixed #12635, but it doesn't. No idea why; perhaps
        request.AddSpecifier("Window", "/boot/home/Desktop");
  doesn't work anymore?

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

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

Revision:    hrev50139
Commit:      9bd7e4014f08d97256837139a5fd0f8212c588ca
URL:         http://cgit.haiku-os.org/haiku/commit/?id=9bd7e4014f08
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Mon Mar  7 23:04:49 2016 UTC

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

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

3 files changed, 4 insertions(+), 2 deletions(-)
src/kits/tracker/FilePanelPriv.cpp | 2 ++
src/kits/tracker/PoseView.cpp      | 2 +-
src/kits/tracker/TitleView.cpp     | 2 +-

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

diff --git a/src/kits/tracker/FilePanelPriv.cpp 
b/src/kits/tracker/FilePanelPriv.cpp
index 14bb434..7a367e3 100644
--- a/src/kits/tracker/FilePanelPriv.cpp
+++ b/src/kits/tracker/FilePanelPriv.cpp
@@ -716,6 +716,7 @@ TFilePanel::Init(const BMessage*)
                fButtonText.SetTo(B_TRANSLATE("Open"));
 
        // Add PoseView
+       PoseView()->SetName("ActualPoseView");
        fBorderedView->SetName("PoseView");
        fBorderedView->SetResizingMode(B_FOLLOW_ALL);
        fBorderedView->EnableBorderHighlight(true);
@@ -918,6 +919,7 @@ TFilePanel::RestoreState()
        // They don't need to, because resizing "PoseView" (really the 
BorderedView)
        // will resize the BTitleView as well. So just create a dummy view here
        // so that they don't get NULL when trying to find the view.
+       fPoseView->TitleView()->SetName("ActualTitleView");
        BView* dummyTitleView = new BView(BRect(), "TitleView", B_FOLLOW_NONE, 
0);
        fBackView->AddChild(dummyTitleView);
        dummyTitleView->Hide();
diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp
index 30d110e..de667e5 100644
--- a/src/kits/tracker/PoseView.cpp
+++ b/src/kits/tracker/PoseView.cpp
@@ -219,7 +219,7 @@ CopySelectionListToEntryRefList(const PoseList* original,
 
 BPoseView::BPoseView(Model* model, uint32 viewMode)
        :
-       BView("BPoseView", B_WILL_DRAW | B_PULSE_NEEDED),
+       BView("PoseView", B_WILL_DRAW | B_PULSE_NEEDED),
        fIsDrawingSelectionRect(false),
        fHScrollBar(NULL),
        fVScrollBar(NULL),
diff --git a/src/kits/tracker/TitleView.cpp b/src/kits/tracker/TitleView.cpp
index 22b027d..ad0e307 100644
--- a/src/kits/tracker/TitleView.cpp
+++ b/src/kits/tracker/TitleView.cpp
@@ -92,7 +92,7 @@ _DrawOutline(BView* view, BRect where)
 
 BTitleView::BTitleView(BPoseView* view)
        :
-       BView("BTitleView", B_WILL_DRAW),
+       BView("TitleView", B_WILL_DRAW),
        fPoseView(view),
        fTitleList(10, true),
        fHorizontalResizeCursor(B_CURSOR_ID_RESIZE_EAST_WEST),


Other related posts:

  • » [haiku-commits] haiku: hrev50139 - src/kits/tracker - waddlesplash