[haiku-commits] haiku: hrev45529 - src/apps/stylededit

  • From: jscipione@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 20 Apr 2013 03:25:38 +0200 (CEST)

hrev45529 adds 1 changeset to branch 'master'
old head: 9e5508fab4d41233873460d65021166f5c228fed
new head: 4122ce2aff2d004bd1570d9aa680849cbaf10766
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=4122ce2+%5E9e5508f

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

4122ce2: Move the save panel to the middle of the window as well

                                     [ John Scipione <jscipione@xxxxxxxxx> ]

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

Revision:    hrev45529
Commit:      4122ce2aff2d004bd1570d9aa680849cbaf10766
URL:         http://cgit.haiku-os.org/haiku/commit/?id=4122ce2
Author:      John Scipione <jscipione@xxxxxxxxx>
Date:        Sat Apr 20 01:25:18 2013 UTC

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

1 file changed, 5 insertions(+)
src/apps/stylededit/StyledEditWindow.cpp | 5 +++++

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

diff --git a/src/apps/stylededit/StyledEditWindow.cpp 
b/src/apps/stylededit/StyledEditWindow.cpp
index 9d45aa5..cf0e856 100644
--- a/src/apps/stylededit/StyledEditWindow.cpp
+++ b/src/apps/stylededit/StyledEditWindow.cpp
@@ -850,6 +850,11 @@ StyledEditWindow::SaveAs(BMessage* message)
        if (message != NULL)
                fSavePanel->SetMessage(message);
 
+       // Move the save panel to the middle of the window
+       fSavePanel->Window()->MoveTo(Frame().LeftTop().x + Frame().Width() / 2
+                       - fSavePanel->Window()->Frame().Width() / 2,
+               Frame().LeftTop().y + Frame().Height() / 4);
+
        fSavePanel->Show();
        return B_OK;
 }


Other related posts:

  • » [haiku-commits] haiku: hrev45529 - src/apps/stylededit - jscipione