diff engine/core/gui/guimanager.cpp @ 3:6387bbc0c2d5

Changed guichan references in event manager to widgets. This is to keep eventmanager code more independent of guichan.
author jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 02 Jul 2008 10:57:23 +0000
parents e84dccee1bb7
children 90005975cdbb
line wrap: on
line diff
--- a/engine/core/gui/guimanager.cpp	Tue Jul 01 17:43:35 2008 +0000
+++ b/engine/core/gui/guimanager.cpp	Wed Jul 02 10:57:23 2008 +0000
@@ -201,20 +201,20 @@
 	void GUIManager::evaluateKeyEventConsumption(KeyEvent& evt) {
 		gcn::Widget* w = m_focushandler->getFocused();
 		if (w) {
-			evt.consumedByGuichan();
+			evt.consumedByWidgets();
 		}
 	}
 
 	void GUIManager::evaluateMouseEventConsumption(MouseEvent& evt) {
 		gcn::Widget* w = m_gcn_topcontainer->getWidgetAt(evt.getX(), evt.getY());
 		if (w && w->isVisible()) {
-			evt.consumedByGuichan();
+			evt.consumedByWidgets();
 		}
 	}
 
 	void GUIManager::mousePressed(MouseEvent& evt) {
  		evaluateMouseEventConsumption(evt);
-		if (!evt.isConsumedByGuichan()) {
+		if (!evt.isConsumedByWidgets()) {
 			m_focushandler->focusNone();
 		}
 	}