~azzar1/unity/fix-1028810

« back to all changes in this revision

Viewing changes to panel/PanelMenuView.cpp

  • Committer: Andrea Azzarone
  • Date: 2012-08-22 13:14:18 UTC
  • mfrom: (2516.1.92 unity)
  • Revision ID: azzaronea@gmail.com-20120822131418-mrfwx82k39xnvl9e
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
  _titlebar_grab_area->mouse_leave.connect(sigc::mem_fun(this, &PanelMenuView::OnPanelViewMouseLeave));
153
153
 
154
154
  _ubus_manager.RegisterInterest(UBUS_SWITCHER_SHOWN, sigc::mem_fun(this, &PanelMenuView::OnSwitcherShown));
155
 
  _ubus_manager.RegisterInterest(UBUS_SWITCHER_SELECTION_CHANGED, sigc::mem_fun(this, &PanelMenuView::OnSwitcherSelectionChanged));
156
155
 
157
156
  _ubus_manager.RegisterInterest(UBUS_LAUNCHER_START_KEY_NAV, sigc::mem_fun(this, &PanelMenuView::OnLauncherKeyNavStarted));
158
157
  _ubus_manager.RegisterInterest(UBUS_LAUNCHER_END_KEY_NAV, sigc::mem_fun(this, &PanelMenuView::OnLauncherKeyNavEnded));
1552
1551
  QueueDraw();
1553
1552
}
1554
1553
 
1555
 
void PanelMenuView::OnSwitcherSelectionChanged(GVariant* data)
1556
 
{
1557
 
  if (!data || !_switcher_showing)
1558
 
    return;
1559
 
 
1560
 
  const gchar *title = g_variant_get_string(data, 0);
1561
 
  _panel_title = (title ? title : "");
1562
 
 
1563
 
  Refresh();
1564
 
  QueueDraw();
1565
 
}
1566
 
 
1567
1554
void PanelMenuView::OnLauncherKeyNavStarted(GVariant* data)
1568
1555
{
1569
1556
  if (_launcher_keynav)