~feng-kylin/unity/unityshell-rotated-kylin

« back to all changes in this revision

Viewing changes to a11y/unity-launcher-icon-accessible.cpp

  • Committer: handsome_feng
  • Date: 2015-12-23 01:13:33 UTC
  • mfrom: (3999.2.68 unity)
  • Revision ID: 445865575@qq.com-20151223011333-gm1y3os6xzdzfstb
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
 
246
246
  accessible->role = ATK_ROLE_PUSH_BUTTON;
247
247
 
 
248
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
248
249
  atk_component_add_focus_handler(ATK_COMPONENT(accessible),
249
250
                                  unity_launcher_icon_accessible_focus_handler);
 
251
G_GNUC_END_IGNORE_DEPRECATIONS
250
252
 
251
253
  /* we could do that by redefining ->set_parent */
252
254
  self->priv->on_parent_change_id =
253
255
    g_signal_connect(accessible, "notify::accessible-parent",
254
256
                     G_CALLBACK(on_parent_change_cb), self);
255
257
 
256
 
  icon->QuirksChanged.connect(sigc::bind(sigc::ptr_fun(on_quirks_change_cb), self));
257
 
  icon->WindowsChanged.connect(sigc::bind(sigc::ptr_fun(on_quirks_change_cb), self));
 
258
  icon->quirks_changed.connect(sigc::hide(sigc::hide(sigc::bind(sigc::ptr_fun(on_quirks_change_cb), self))));
 
259
  icon->windows_changed.connect(sigc::hide(sigc::bind(sigc::ptr_fun(on_quirks_change_cb), self)));
258
260
}
259
261
 
260
262
 
384
386
                                   found);
385
387
 
386
388
    g_signal_emit_by_name(self, "focus-event", self->priv->selected, &return_val);
387
 
    atk_focus_tracker_notify(ATK_OBJECT(self));
 
389
    atk_object_notify_state_change(ATK_OBJECT(self), ATK_STATE_FOCUSED, self->priv->selected);
388
390
  }
389
391
}
390
392