~3v1n0/unity/scale-window-cast-protection

« back to all changes in this revision

Viewing changes to a11y/nux-view-accessible.cpp

  • Committer: Marco Trevisan (Treviño)
  • Date: 2016-03-07 18:51:47 UTC
  • mfrom: (4080 unity)
  • mto: This revision was merged to the branch mainline in revision 4085.
  • Revision ID: mail@3v1n0.net-20160307185147-0p1m89up4tqfb6w1
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
  accessible->role = ATK_ROLE_UNKNOWN;
135
135
 
136
136
  nux_object = nux_object_accessible_get_object(NUX_OBJECT_ACCESSIBLE(accessible));
137
 
  view = dynamic_cast<nux::View*>(nux_object);
 
137
  view = static_cast<nux::View*>(nux_object);
138
138
 
139
139
  view->LayoutAdded.connect(sigc::bind(sigc::ptr_fun(on_layout_changed_cb),
140
140
                                       accessible, TRUE));
187
187
  if (nux_object == NULL) /* state is defunct */
188
188
    return 0;
189
189
 
190
 
  view = dynamic_cast<nux::View*>(nux_object);
191
 
 
 
190
  view = static_cast<nux::View*>(nux_object);
192
191
  layout = view->GetLayout();
193
192
 
194
193
  if (layout == NULL)
216
215
  if (nux_object == NULL) /* state is defunct */
217
216
    return 0;
218
217
 
219
 
  view = dynamic_cast<nux::View*>(nux_object);
220
 
 
 
218
  view = static_cast<nux::View*>(nux_object);
221
219
  layout = view->GetLayout();
222
220
 
223
221
  layout_accessible = unity_a11y_get_accessible(layout);
297
295
    return FALSE;
298
296
 
299
297
  g_signal_emit_by_name(self, "focus_event", self->priv->key_focused);
300
 
  atk_focus_tracker_notify(ATK_OBJECT(self));
 
298
  atk_object_notify_state_change(ATK_OBJECT(self), ATK_STATE_FOCUSED, self->priv->key_focused);
301
299
  self->priv->pending_notification = FALSE;
302
300
 
303
301
  return TRUE;