[haiku-webkit-commits] r556 - webkit/trunk/WebKit/haiku/WebPositive/tabview

  • From: noreply@xxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Tue, 28 Dec 2010 00:05:48 +0100 (CET)

Author: leavengood
Date: Tue Dec 28 00:05:48 2010
New Revision: 556
URL: http://webpositive.haiku-os.org/changeset/556

Log:
Let the controller handle setting the default tool tip for the tab bar so it
knows the state changed. A good example of where using a controller-based
design can't be done halfway. It took me way too long to debug this (that
mostly being my fault.)

Fixes #6382.

Modified:
   webkit/trunk/WebKit/haiku/WebPositive/tabview/TabContainerView.cpp

Modified: webkit/trunk/WebKit/haiku/WebPositive/tabview/TabContainerView.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/WebPositive/tabview/TabContainerView.cpp  Mon Dec 
27 23:12:55 2010        (r555)
+++ webkit/trunk/WebKit/haiku/WebPositive/tabview/TabContainerView.cpp  Tue Dec 
28 00:05:48 2010        (r556)
@@ -464,11 +464,8 @@
                fLastMouseEventTab = tab;
                if (fLastMouseEventTab)
                        fLastMouseEventTab->MouseMoved(where, B_ENTERED_VIEW, 
dragMessage);
-               else {
-                       SetToolTip(static_cast<BToolTip*>(NULL));
-                       HideToolTip();
-                       SetToolTip("Double-click or middle-click to open new 
tab.");
-               }
+               else
+                       fController->SetToolTip("Double-click or middle-click 
to open new tab.");
        }
 }
 

Other related posts: