[gtk+] a11y: Don't advertise ROLE_MENU in submenuitems



commit a82cbf29a2bba36f67f38b6cc919628c1d3d9f2c
Author: Benjamin Otte <otte redhat com>
Date:   Mon Jul 11 02:24:08 2011 +0200

    a11y: Don't advertise ROLE_MENU in submenuitems
    
    We use submenuitems for all menuitems now. So they shouldn't be all
    advertised as menus. For the ones that do have submenus, we still
    advertise ROLE_MENU per the last patch.

 gtk/a11y/gtksubmenuitemaccessible.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/a11y/gtksubmenuitemaccessible.c b/gtk/a11y/gtksubmenuitemaccessible.c
index 1233183..d792957 100644
--- a/gtk/a11y/gtksubmenuitemaccessible.c
+++ b/gtk/a11y/gtksubmenuitemaccessible.c
@@ -46,8 +46,6 @@ gtk_submenu_item_accessible_initialize (AtkObject *obj,
       g_signal_connect (submenu, "add", G_CALLBACK (menu_item_add_gtk), NULL);
       g_signal_connect (submenu, "remove", G_CALLBACK (menu_item_remove_gtk), NULL);
     }
-
-  obj->role = ATK_ROLE_MENU;
 }
 
 static void



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