summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Yelavich <[email protected]>2017-01-27 17:32:16 +1100
committermonsta <[email protected]>2017-02-16 16:56:16 +0300
commit894252758b9da52948c4dddee97ab2dff31ea3da (patch)
treee0946f8fead61d977d9b9dbcfa412abee9a94314
parentf2c26527f2c8b66b86becfebb81dd85cd3976d5b (diff)
downloadcaja-894252758b9da52948c4dddee97ab2dff31ea3da.tar.bz2
caja-894252758b9da52948c4dddee97ab2dff31ea3da.tar.xz
replace atk_focus_tracker_notify with atk_object_notify_state_change
squashed b2c2794dc0fbefc1a2dd902a0266afe68db7f79a + cea24ed35ad7f5a22298fe6d921e30a34476ad11
-rw-r--r--libcaja-private/caja-icon-container.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c
index 73797053..b67ba5a6 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -914,10 +914,10 @@ clear_keyboard_focus (CajaIconContainer *container)
}
static void inline
-emit_atk_focus_tracker_notify (CajaIcon *icon)
+emit_atk_focus_state_change (CajaIcon *icon, gboolean focused)
{
AtkObject *atk_object = atk_gobject_accessible_for_object (G_OBJECT (icon->item));
- atk_focus_tracker_notify (atk_object);
+ atk_object_notify_state_change (atk_object, ATK_STATE_FOCUSED, focused);
}
/* Set @icon as the icon currently selected for keyboard operations. */
@@ -940,7 +940,7 @@ set_keyboard_focus (CajaIconContainer *container,
"highlighted_as_keyboard_focus", 1,
NULL);
- emit_atk_focus_tracker_notify (icon);
+ emit_atk_focus_state_change (icon, TRUE);
}
static void
@@ -2621,7 +2621,7 @@ select_range (CajaIconContainer *container,
if (selection_changed && icon2 != NULL)
{
- emit_atk_focus_tracker_notify (icon2);
+ emit_atk_focus_state_change (icon2, TRUE);
}
return selection_changed;
}
@@ -2647,7 +2647,7 @@ select_one_unselect_others (CajaIconContainer *container,
if (selection_changed && icon_to_select != NULL)
{
- emit_atk_focus_tracker_notify (icon_to_select);
+ emit_atk_focus_state_change (icon_to_select, TRUE);
reveal_icon (container, icon_to_select);
}
return selection_changed;