ginebra2/ActionButtonSnippet.cpp
changeset 16 3c88a81ff781
parent 3 0954f5dd2cd0
--- 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<ActionButton*>(m_widget)->setActive(enabled);
   }
 
+  void ActionButtonSnippet::setTriggerOnUp( bool triggeronup )
+  {
+    static_cast<ActionButton*>(m_widget)->setTriggerOnUp(triggeronup);
+  }
+
   void ActionButtonSnippet::setActiveOnPress( bool active )
   {
     static_cast<ActionButton*>(m_widget)->setActiveOnPress(active);