~canonical-dx-team/unity/unity.fix-ql-losing-focus

« back to all changes in this revision

Viewing changes to src/PlacesView.cpp

  • Committer: Jay Taoko
  • Date: 2011-02-28 06:59:24 UTC
  • mfrom: (884.2.8 unity)
  • Revision ID: jay.taoko@canonical.com-20110228065924-w41kma3ikxkhdzuw
* Improved scrolling performance
* Fixes for keyboard navigation
* TextEntry gets the keyboard focus when dash becomes visible.
* Close Quicklist on mouse down outside
* Properly reset the ScrollView vertical delta to zero (Top) when adding or removing groups.
* Cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
 
65
65
  _layered_layout->SetActiveLayer (_home_view);
66
66
 
67
 
  SetCompositionLayout (_layout);
 
67
  SetLayout (_layout);
68
68
 
69
69
  // Register for all the events
70
70
  UBusServer *ubus = ubus_server_get_default ();
92
92
  nux::Geometry homebutton (0.0f, 0.0f, 66.0f, 24.0f);
93
93
  long ret = TraverseInfo;
94
94
 
95
 
  if (ievent.e_event == nux::NUX_KEYDOWN
96
 
      && ievent.GetKeySym () == NUX_VK_ESCAPE)
 
95
  if ((ievent.e_event == nux::NUX_KEYDOWN) &&
 
96
   (ievent.GetKeySym () == NUX_VK_ESCAPE))
97
97
  {
98
98
    SetActiveEntry (NULL, 0, "");
99
99
    return TraverseInfo;
102
102
  if (ievent.e_event == nux::NUX_MOUSE_RELEASED)
103
103
  {
104
104
    if (homebutton.IsPointInside (ievent.e_x, ievent.e_y))
 
105
    {
105
106
      SetActiveEntry (NULL, 0, "");
 
107
    }
106
108
    return TraverseInfo;
107
109
  }
108
110
 
411
413
  self->SetActiveEntry (NULL, 0, "");
412
414
}
413
415
 
 
416
nux::TextEntry*
 
417
PlacesView::GetTextEntryView ()
 
418
{
 
419
  return _search_bar->_pango_entry;
 
420
}
 
421
 
414
422
//
415
423
// Introspection
416
424
//
450
458
  g_free (id);
451
459
  g_free (search_string);
452
460
}
 
461