diff options
author | Ernestas Kulik <ernestask@src.gnome.org> | 2016-04-28 19:25:20 +0300 |
---|---|---|
committer | Ernestas Kulik <ernestask@src.gnome.org> | 2016-05-03 13:16:56 +0300 |
commit | 3e498fc0c67788f1b8cb4abc2e54cc0e8e66088f (patch) | |
tree | 43e3b2b8f870dfda0d8e09910a11ecf97eb33aed /src | |
parent | f3aabd3d17779258d20ab2acd82ea7cd5f47e886 (diff) | |
download | nautilus-3e498fc0c67788f1b8cb4abc2e54cc0e8e66088f.tar.gz |
canvas-item: use atk_object_notify_state_change()
atk_focus_tracker_notify() has been deprecated since ATK 2.9.4 and using
atk_object_notify_state_change() is recommended.
This commit replaces the call to the deprecated function.
https://bugzilla.gnome.org/show_bug.cgi?id=762236
Diffstat (limited to 'src')
-rw-r--r-- | src/nautilus-canvas-item.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nautilus-canvas-item.c b/src/nautilus-canvas-item.c index 576e0a6fe..9205af4d5 100644 --- a/src/nautilus-canvas-item.c +++ b/src/nautilus-canvas-item.c @@ -338,9 +338,8 @@ nautilus_canvas_item_set_property (GObject *object, } details->is_highlighted_as_keyboard_focus = g_value_get_boolean (value); - if (details->is_highlighted_as_keyboard_focus) { - atk_focus_tracker_notify (accessible); - } + atk_object_notify_state_change (accessible, ATK_STATE_FOCUSED, + details->is_highlighted_as_keyboard_focus); break; case PROP_HIGHLIGHTED_FOR_DROP: |