~azzar1/unity/proper-reboot

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/nux-area-accessible.cpp

  • Committer: Daniel van Vugt
  • Date: 2012-03-14 06:24:18 UTC
  • mfrom: (2108 unity)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: daniel.van.vugt@canonical.com-20120314062418-nprucpbr0m7qky5e
MergedĀ latestĀ lp:unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
                                                      gboolean focus_in);
84
84
/* private */
85
85
static void          on_focus_changed_cb(nux::Area* area,
 
86
                                         bool has_focus,
 
87
                                         nux::KeyNavDirection direction,
86
88
                                         AtkObject* accessible);
87
89
static void          on_parent_window_activate_cb(AtkObject* parent_window,
88
90
                                                  NuxAreaAccessible* self);
172
174
  area = dynamic_cast<nux::Area*>(nux_object);
173
175
 
174
176
  /* focus support based on Focusable, used on the Dash */
175
 
  area->OnKeyNavFocusChange.connect(sigc::bind(sigc::ptr_fun(on_focus_changed_cb), accessible));
 
177
  area->key_nav_focus_change.connect(sigc::bind(sigc::ptr_fun(on_focus_changed_cb), accessible));
176
178
 
177
179
  atk_component_add_focus_handler(ATK_COMPONENT(accessible),
178
180
                                  nux_area_accessible_focus_handler);
457
459
 
458
460
static void
459
461
on_focus_changed_cb(nux::Area* area,
 
462
                    bool has_focus,
 
463
                    nux::KeyNavDirection direction,
460
464
                    AtkObject* accessible)
461
465
{
462
466
  check_focus(NUX_AREA_ACCESSIBLE(accessible));