~unity-team/unity/trusty-1066971

« back to all changes in this revision

Viewing changes to panel/PanelView.cpp

  • Committer: Marco Trevisan (Treviño)
  • Date: 2013-11-20 03:13:27 UTC
  • mto: This revision was merged to the branch mainline in revision 3602.
  • Revision ID: mail@3v1n0.net-20131120031327-fo2shr1t1a21ykb2
BackgroundEffectHelper: add new constructor that allows to define owner immediately

And use it in Panel, UnityWindowView and Launcher

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
  , monitor_(0)
69
69
  , stored_dash_width_(0)
70
70
  , launcher_width_(64)
 
71
  , bg_effect_helper_(this)
71
72
{
72
73
  panel::Style::Instance().changed.connect(sigc::mem_fun(this, &PanelView::ForceUpdateBackground));
73
74
  WindowManager::Default().average_color.changed.connect(sigc::mem_fun(this, &PanelView::OnBackgroundUpdate));
126
127
    QueueDraw();
127
128
  });
128
129
 
129
 
  bg_effect_helper_.owner = this;
130
 
 
131
130
  //FIXME (gord)- replace with async loading
132
131
  TextureCache& cache = TextureCache::GetDefault();
133
132
  panel_sheen_ = cache.FindTexture("dash_sheen.png");