[haiku-commits] haiku: hrev45767 - src/apps/webpositive/tabview

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 16 Jun 2013 14:14:59 +0200 (CEST)

hrev45767 adds 1 changeset to branch 'master'
old head: 2fd5f1736a6dfe230cae0c0f784fcad4b5f74473
new head: 9d33da6ca412e6861e7c651c32907f3173400dc4
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=9d33da6+%5E2fd5f17

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

9d33da6: WebPositive: Fixed untranslated empty tab region tool-tip.

                                      [ Stephan Aßmus <superstippi@xxxxxx> ]

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

Revision:    hrev45767
Commit:      9d33da6ca412e6861e7c651c32907f3173400dc4
URL:         http://cgit.haiku-os.org/haiku/commit/?id=9d33da6
Author:      Stephan Aßmus <superstippi@xxxxxx>
Date:        Sun Jun 16 12:14:23 2013 UTC

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

1 file changed, 9 insertions(+), 2 deletions(-)
src/apps/webpositive/tabview/TabContainerView.cpp | 11 +++++++++--

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

diff --git a/src/apps/webpositive/tabview/TabContainerView.cpp 
b/src/apps/webpositive/tabview/TabContainerView.cpp
index 8f9c899..9a47cec 100644
--- a/src/apps/webpositive/tabview/TabContainerView.cpp
+++ b/src/apps/webpositive/tabview/TabContainerView.cpp
@@ -35,6 +35,7 @@
 #include <Bitmap.h>
 #include <Button.h>
 #include <CardLayout.h>
+#include <Catalog.h>
 #include <ControlLook.h>
 #include <GroupView.h>
 #include <MenuBar.h>
@@ -44,6 +45,10 @@
 #include "TabView.h"
 
 
+#undef B_TRANSLATION_CONTEXT
+#define B_TRANSLATION_CONTEXT "Tab Manager"
+
+
 static const float kLeftTabInset = 4;
 
 
@@ -468,8 +473,10 @@ TabContainerView::_MouseMoved(BPoint where, uint32 
_transit,
                fLastMouseEventTab = tab;
                if (fLastMouseEventTab)
                        fLastMouseEventTab->MouseMoved(where, B_ENTERED_VIEW, 
dragMessage);
-               else
-                       fController->SetToolTip("Double-click or middle-click 
to open new tab.");
+               else {
+                       fController->SetToolTip(
+                               B_TRANSLATE("Double-click or middle-click to 
open new tab."));
+               }
        }
 }
 


Other related posts:

  • » [haiku-commits] haiku: hrev45767 - src/apps/webpositive/tabview - superstippi