diff -r 6aeb7a756187 -r 3c88a81ff781 ginebra2/ActionButtonSnippet.cpp --- a/ginebra2/ActionButtonSnippet.cpp Thu Sep 23 15:32:11 2010 -0400 +++ b/ginebra2/ActionButtonSnippet.cpp Fri Oct 15 17:30:59 2010 -0400 @@ -33,7 +33,7 @@ ActionButtonSnippet * ActionButtonSnippet::instance(const QString& elementId, ChromeWidget * chrome, const QWebElement & element) { ActionButtonSnippet* that = new ActionButtonSnippet(elementId, chrome, 0, element); - that->setChromeWidget( new ActionButton( that ) ); + that->setChromeWidget( new ActionButton( that, elementId ) ); return that; } @@ -98,6 +98,11 @@ static_cast(m_widget)->setActive(enabled); } + void ActionButtonSnippet::setTriggerOnUp( bool triggeronup ) + { + static_cast(m_widget)->setTriggerOnUp(triggeronup); + } + void ActionButtonSnippet::setActiveOnPress( bool active ) { static_cast(m_widget)->setActiveOnPress(active);