summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-icon-container.c
diff options
context:
space:
mode:
authorLuke Yelavich <[email protected]>2017-01-27 17:32:16 +1100
committerLuke Yelavich <[email protected]>2017-01-27 17:32:16 +1100
commitb2c2794dc0fbefc1a2dd902a0266afe68db7f79a (patch)
tree43c7a702afc0414f7117120925b51061efe8fc3e /libcaja-private/caja-icon-container.c
parentdc5804d64a1f811decab45dabe6867d20d59c577 (diff)
downloadcaja-b2c2794dc0fbefc1a2dd902a0266afe68db7f79a.tar.bz2
caja-b2c2794dc0fbefc1a2dd902a0266afe68db7f79a.tar.xz
Replace other instances of atk_focus_tracker_notify with appropriate atk_set_state calls
Diffstat (limited to 'libcaja-private/caja-icon-container.c')
-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 571c4039..3d234ba2 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -856,10 +856,10 @@ clear_keyboard_focus (CajaIconContainer *container)
}
static void inline
-emit_atk_focus_tracker_notify (CajaIcon *icon)
+emit_atk_focus_tracker_notify (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. */
@@ -882,7 +882,7 @@ set_keyboard_focus (CajaIconContainer *container,
"highlighted_as_keyboard_focus", 1,
NULL);
- emit_atk_focus_tracker_notify (icon);
+ emit_atk_focus_tracker_notify (icon, TRUE);
}
static void
@@ -2542,7 +2542,7 @@ select_range (CajaIconContainer *container,
if (selection_changed && icon2 != NULL)
{
- emit_atk_focus_tracker_notify (icon2);
+ emit_atk_focus_tracker_notify (icon2, TRUE);
}
return selection_changed;
}
@@ -2568,7 +2568,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_tracker_notify (icon_to_select, TRUE);
reveal_icon (container, icon_to_select);
}
return selection_changed;