← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1167232] Re: [toolbar] Toolbar using buttons behaves different for the back button

 

** Changed in: ubuntu-ui-toolkit (Ubuntu Raring)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1167232

Title:
  [toolbar] Toolbar using buttons behaves different for the back button

Status in Ubuntu UI Toolkit:
  Fix Released
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Fix Released
Status in “ubuntu-ui-toolkit” source package in Raring:
  Fix Released

Bug description:
  When using buttons, the back button can use the usual Actions
  "onTriggered". But for other buttons (like the add button here) the
  "onTriggered" is not called, and one has to use the Buttons
  "onClicked".

      property ToolbarActions toolActions: ToolbarActions {
          Action {
              itemHint: Button {
                  text: i18n.tr("Add to Album")
                  color: Gallery.HIGHLIGHT_BUTTON_COLOR
                  width: units.gu(16)
                  onClicked: {
                      mediaSelector.addClicked();
                      mediaSelector.hide();
                  }
              }
          }

          back: Action {
              itemHint: Button {
                  text: i18n.tr("Cancel")
                  width: units.gu(10)
              }
              onTriggered: {
                  mediaSelector.hide();
              }
          }
      }

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1167232/+subscriptions