~thalexander/unity/update-fsf-address

« back to all changes in this revision

Viewing changes to dash/previews/MusicPaymentPreview.cpp

  • Committer: Eleni Maria Stea
  • Date: 2013-11-08 15:04:14 UTC
  • mfrom: (3591 trunk)
  • mto: This revision was merged to the branch mainline in revision 3597.
  • Revision ID: elenimaria.stea@canonical.com-20131108150414-1adkyb1bbe3zxppg
merged to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
  {
99
99
    // HACK: We need to think a better way to do this
100
100
    auto const& password = password_entry_->text_entry()->GetText();
101
 
    glib::Variant variant_pw(g_variant_new_string(password.c_str()));
102
101
    glib::HintsMap hints {
103
 
      std::make_pair(MusicPaymentPreview::DATA_PASSWORD_KEY, variant_pw)
 
102
      {MusicPaymentPreview::DATA_PASSWORD_KEY, glib::Variant(password)}
104
103
    };
105
104
    preview_model_->PerformAction(id, hints);
106
105