~azzar1/unity/scale-left-padding

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/PanelView.cpp

  • Committer: Andrea Azzarone
  • Date: 2011-12-19 22:18:53 UTC
  • mfrom: (1792 unity)
  • mto: This revision was merged to the branch mainline in revision 1833.
  • Revision ID: azzaronea@gmail.com-20111219221853-wyy8fqwxk78s85ct
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 
55
55
PanelView::PanelView(NUX_FILE_LINE_DECL)
56
56
  :   View(NUX_FILE_LINE_PARAM),
 
57
      _last_width(0),
 
58
      _last_height(0),
57
59
      _is_dirty(true),
58
60
      _opacity(1.0f),
59
61
      _opacity_maximized_toggle(false),
198
200
  AddChild(child);
199
201
}
200
202
 
201
 
const gchar* PanelView::GetName()
 
203
std::string PanelView::GetName() const
202
204
{
203
205
  return "UnityPanel";
204
206
}
205
207
 
206
 
const gchar*
207
 
PanelView::GetChildsName()
 
208
std::string PanelView::GetChildsName() const
208
209
{
209
210
  return "indicators";
210
211
}
362
363
{
363
364
  nux::Geometry geo = GetGeometry();
364
365
 
365
 
  if (geo.width == _last_width && geo.height == _last_height && !_is_dirty)
 
366
  if (!_is_dirty && geo.width == _last_width && geo.height == _last_height)
366
367
    return;
367
368
 
368
369
  _last_width = geo.width;
621
622
}
622
623
 
623
624
void
 
625
PanelView::SetMenuShowTimings(int fadein, int fadeout, int discovery,
 
626
                              int discovery_fadein, int discovery_fadeout)
 
627
{
 
628
  _menu_view->SetMenuShowTimings(fadein, fadeout, discovery, discovery_fadein, discovery_fadeout);
 
629
}
 
630
 
 
631
void
624
632
PanelView::SetOpacityMaximizedToggle(bool enabled)
625
633
{
626
634
  if (_opacity_maximized_toggle != enabled)