diff options
| author | Andrea Azzarone <azzaronea@gmail.com> | 2014-02-13 23:20:30 +0100 |
|---|---|---|
| committer | Andrea Azzarone <azzaronea@gmail.com> | 2014-02-13 23:20:30 +0100 |
| commit | cd9b47303bdafc6bb2de3f9b38263277bff94a4c (patch) | |
| tree | bc693f39175bb084696fa83b7f50d297931472db /lockscreen | |
| parent | 3205876ec1ae88f0bf0b09297da4f564c24a42af (diff) | |
Minor changes in UserPromptView
(bzr r3611.4.52)
Diffstat (limited to 'lockscreen')
| -rw-r--r-- | lockscreen/UserPromptView.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lockscreen/UserPromptView.cpp b/lockscreen/UserPromptView.cpp index 6afa943c7..43add2157 100644 --- a/lockscreen/UserPromptView.cpp +++ b/lockscreen/UserPromptView.cpp @@ -31,7 +31,7 @@ namespace unity namespace lockscreen { -nux::AbstractPaintLayer* Foo(int width, int height) +nux::AbstractPaintLayer* CrateBackgroundLayer(int width, int height) { nux::CairoGraphics cg(CAIRO_FORMAT_ARGB32, width, height); cairo_t* cr = cg.GetInternalContext(); @@ -80,7 +80,7 @@ UserPromptView::UserPromptView(std::string const& name) GetLayout()->AddSpace(0, 1); - message_ = new unity::StaticCairoText("Invalid password, please try again"); + message_ = new unity::StaticCairoText(_("Invalid password, please try again")); message_->SetFont("Ubuntu 10"); message_->SetTextColor(nux::Color("#df382c")); message_->SetVisible(false); @@ -101,7 +101,7 @@ void UserPromptView::Draw(nux::GraphicsEngine& graphics_engine, bool /* force_dr graphics_engine.PushClippingRectangle(geo); nux::GetPainter().PaintBackground(graphics_engine, geo); - bg_layer_.reset(Foo(geo.width, geo.height)); + bg_layer_.reset(CrateBackgroundLayer(geo.width, geo.height)); nux::GetPainter().PushDrawLayer(graphics_engine, geo, bg_layer_.get()); nux::GetPainter().PopBackground(); |
