[haiku-commits] haiku: hrev43522 - src/apps/mail

  • From: zharik@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 17 Dec 2011 22:02:14 +0100 (CET)

hrev43522 adds 2 changesets to branch 'master'
old head: 8ff2ca22f7a66cbc29c2d128e352f801cb2fd620
new head: c73d1cf713b75f4c1f5f11fba460989d0368a6bd

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

35636bd: Fix selection of attachment on right click.
  
  * Fixed during of GCI 2011.
  * Fixes #7982
  
  Signed-off-by: Siarzhuk Zharski <zharik@xxxxxx>

c73d1cf: Fixed enable/disable "Find" button
  
  * Fixed during GCI 2011
  * Fixed #7983.
  
  Signed-off-by: Siarzhuk Zharski <zharik@xxxxxx>

                             [ Aleksas Pantechovskis <alexp.frl@xxxxxxxxx> ]

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

2 files changed, 5 insertions(+), 3 deletions(-)
src/apps/mail/Enclosures.cpp |    7 ++++---
src/apps/mail/FindWindow.cpp |    1 +

############################################################################

Commit:      35636bd21f38a59cc5b490a5728c4e5389be78ec
URL:         http://cgit.haiku-os.org/haiku/commit/?id=35636bd
Author:      Aleksas Pantechovskis <alexp.frl@xxxxxxxxx>
Date:        Sat Dec 17 20:55:29 2011 UTC
Committer:   Siarzhuk Zharski <zharik@xxxxxx>
Commit-Date: Sat Dec 17 21:00:30 2011 UTC

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

Fix selection of attachment on right click.

* Fixed during of GCI 2011.
* Fixes #7982

Signed-off-by: Siarzhuk Zharski <zharik@xxxxxx>

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

diff --git a/src/apps/mail/Enclosures.cpp b/src/apps/mail/Enclosures.cpp
index ffc3fe6..f55dbe1 100644
--- a/src/apps/mail/Enclosures.cpp
+++ b/src/apps/mail/Enclosures.cpp
@@ -426,7 +426,9 @@ TListView::MouseDown(BPoint point)
        int32 buttons;
        Looper()->CurrentMessage()->FindInt32("buttons", &buttons);
 
-       if ((buttons & B_SECONDARY_MOUSE_BUTTON) != 0) {
+       BListView::MouseDown(point);
+
+       if ((buttons & B_SECONDARY_MOUSE_BUTTON) != 0 && IndexOf(point) >= 0) {
                BPopUpMenu menu("enclosure", false, false);
                menu.SetFont(be_plain_font);
                menu.AddItem(new BMenuItem(B_TRANSLATE("Open attachment"),
@@ -448,8 +450,7 @@ TListView::MouseDown(BPoint point)
                                Window()->PostMessage(item->Command(),fParent);
                        }
                }
-       } else
-               BListView::MouseDown(point);
+       }
 }
 
 

############################################################################

Revision:    hrev43522
Commit:      c73d1cf713b75f4c1f5f11fba460989d0368a6bd
URL:         http://cgit.haiku-os.org/haiku/commit/?id=c73d1cf
Author:      Aleksas Pantechovskis <alexp.frl@xxxxxxxxx>
Date:        Sat Dec 17 20:58:02 2011 UTC
Committer:   Siarzhuk Zharski <zharik@xxxxxx>
Commit-Date: Sat Dec 17 21:00:32 2011 UTC

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

Fixed enable/disable "Find" button

* Fixed during GCI 2011
* Fixed #7983.

Signed-off-by: Siarzhuk Zharski <zharik@xxxxxx>

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

diff --git a/src/apps/mail/FindWindow.cpp b/src/apps/mail/FindWindow.cpp
index ad5eac1..78d33d3 100644
--- a/src/apps/mail/FindWindow.cpp
+++ b/src/apps/mail/FindWindow.cpp
@@ -109,6 +109,7 @@ FindPanel::FindPanel(BRect rect)
                sPreviousFind.String(), new BMessage(M_FIND_STRING_CHANGED),
                B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP);
 
+       fTextControl->SetModificationMessage(new 
BMessage(M_FIND_STRING_CHANGED));
        fTextControl->SetText(sPreviousFind.String());
        fTextControl->MakeFocus();
        AddChild(fTextControl);


Other related posts:

  • » [haiku-commits] haiku: hrev43522 - src/apps/mail - zharik