[clutter] a11y: proper ATK role for ClutterStage



commit c1d43b70c51744dabccfa9040c71a2ea517513aa
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date:   Thu Feb 9 12:32:44 2012 +0100

    a11y: proper ATK role for ClutterStage
    
    ATK_ROLE_CANVAS is not a suitable role, as the user (in general) can't
    draw on the Stage. CallyStage implements AtkWindow, so the proper role
    is ATK_ROLE_WINDOW

 clutter/cally/cally-stage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/cally/cally-stage.c b/clutter/cally/cally-stage.c
index aff7dc0..62e637e 100644
--- a/clutter/cally/cally-stage.c
+++ b/clutter/cally/cally-stage.c
@@ -183,7 +183,7 @@ cally_stage_real_initialize (AtkObject *obj,
   g_signal_connect (stage, "notify::key-focus",
                     G_CALLBACK (cally_stage_notify_key_focus_cb), obj);
 
-  obj->role = ATK_ROLE_CANVAS;
+  atk_object_set_role (obj, ATK_ROLE_WINDOW);
 }
 
 static AtkStateSet*



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