[nautilus] canvas-item: use atk_object_notify_state_change()



commit 3e498fc0c67788f1b8cb4abc2e54cc0e8e66088f
Author: Ernestas Kulik <ernestask src gnome org>
Date:   Thu Apr 28 19:25:20 2016 +0300

    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

 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 576e0a6..9205af4 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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]