scopes::PreviewWidget buttons("buttons", "actions");
    scopes::VariantBuilder builder;
    builder.add_tuple({
       {"id", scopes::Variant(click::Preview::Actions::CLOSE_PREVIEW)}, // 
TODO: see bug LP: #1289434
       {"label", scopes::Variant(_("Cancel"))}
    });
    builder.add_tuple({
       {"id", scopes::Variant(click::Preview::Actions::CONFIRM_UNINSTALL)},
       {"label", scopes::Variant(_("Confirm"))}
    });
    buttons.add_attribute_value("actions", builder.end());
    widgets.push_back(buttons);

This is the code in the scope. We do not specify color or any real
positioning. This also isn't actually a traditional "dialog" window.
It's a preview in Unity8. Maybe the scopes API needs some sort of way to
specify which button is the "affirmative" action. Aside from flipping
the order of the two buttons in our code though, there is basically
nothing the scope itself can do in this respect.

** Also affects: unity8 (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: unity-scope-click (Ubuntu)
   Importance: High => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1434124

Title:
  Uninstallation confirmation screen inconsistent with other dialogs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ux/+bug/1434124/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to