summaryrefslogtreecommitdiff
path: root/dash/previews
diff options
authorManuel de la Pena <manuel@canonical.com>2013-04-16 13:53:34 +0200
committerManuel de la Pena <manuel@canonical.com>2013-04-16 13:53:34 +0200
commit29d0f8feb6d603e9351172c53ac665be056178f0 (patch)
tree402226bf2cb1d1eeeb76f8fd868fbaa239bb7252 /dash/previews
parentca00ec3d58f534da655c2def7aba334d138916b0 (diff)
parent9da7abe5c95035cc23c4be60dd9cba3d62c75064 (diff)
Merged with plan-b.
(bzr r3263.2.8)
Diffstat (limited to 'dash/previews')
-rw-r--r--dash/previews/MusicPreview.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/dash/previews/MusicPreview.cpp b/dash/previews/MusicPreview.cpp
index 6abb0a248..cac139152 100644
--- a/dash/previews/MusicPreview.cpp
+++ b/dash/previews/MusicPreview.cpp
@@ -96,7 +96,8 @@ bool MusicPreview::HasUbuntuOneCredentials()
{
dash::Preview::InfoHintPtrList hints = preview_model_->GetInfoHints();
GVariant *preview_data = NULL;
- for (dash::Preview::InfoHintPtr info_hint : hints)
+
+ for (dash::Preview::InfoHintPtr const& info_hint : hints)
{
if (info_hint->id == "music_preview")
{
@@ -225,8 +226,8 @@ void MusicPreview::SetupViews()
nux::VLayout* icon_layout = new nux::VLayout();
icon_layout->SetLeftAndRightPadding(10);
- warning_texture_ = new IconTexture(style.GetWarningIcon(), style.GetPaymentLockWidth(),
- style.GetPaymentLockHeight());
+ warning_texture_ = new IconTexture(style.GetWarningIcon(), style.GetPaymentWarningWidth(),
+ style.GetPaymentWarningHeight());
icon_layout->AddView(warning_texture_.GetPointer(), 0, nux::MINOR_POSITION_START,
nux::MINOR_SIZE_FULL, 100.0f, nux::NUX_LAYOUT_BEGIN);
actions_layout->AddLayout(icon_layout, 0, nux::MINOR_POSITION_CENTER);
@@ -234,17 +235,15 @@ void MusicPreview::SetupViews()
warning_msg_ = new StaticCairoText(
no_credentials_message_, true,
NUX_TRACKER_LOCATION);
- warning_msg_->SetFont(style.payment_intro_font().c_str());
- warning_msg_->SetLineSpacing(10);
- warning_msg_->SetLines(-style.GetDescriptionLineCount());
+ warning_msg_->SetFont(style.u1_warning_font().c_str());
+ warning_msg_->SetLines(-2);
warning_msg_->SetMinimumHeight(50);
warning_msg_->SetMaximumWidth(300);
actions_layout->AddView(warning_msg_.GetPointer(), 0, nux::MINOR_POSITION_CENTER);
}
-
-
+
/////////////////////
if (hints_layout) hint_actions_layout->AddView(hints_layout, 1);