From bcc7b047b3eadced3322a9c72d5cf9526749da38 Mon Sep 17 00:00:00 2001 From: auria Date: Fri, 7 May 2010 15:59:58 +0000 Subject: [PATCH] Made ribbon side arrows non-focusable, so that warp-around code does not erroneously pick them git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5402 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/guiengine/widgets/dynamic_ribbon_widget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/guiengine/widgets/dynamic_ribbon_widget.cpp b/src/guiengine/widgets/dynamic_ribbon_widget.cpp index ed956ff60..a546cda5b 100644 --- a/src/guiengine/widgets/dynamic_ribbon_widget.cpp +++ b/src/guiengine/widgets/dynamic_ribbon_widget.cpp @@ -120,6 +120,7 @@ void DynamicRibbonWidget::add() right_arrow->setTabStop(false); m_right_widget->m_element = right_arrow; m_right_widget->m_event_handler = this; + m_right_widget->m_focusable = false; m_right_widget->m_properties[PROP_ID] = "right"; m_right_widget->id = right_arrow->getID(); m_children.push_back( m_right_widget ); @@ -134,6 +135,7 @@ void DynamicRibbonWidget::add() left_arrow->setTabStop(false); m_left_widget->m_element = left_arrow; m_left_widget->m_event_handler = this; + m_left_widget->m_focusable = false; m_left_widget->m_properties[PROP_ID] = "left"; m_left_widget->id = left_arrow->getID(); m_children.push_back( m_left_widget );