[gtk+/gtk-3-12] GtkAssistant: don't hide headerbar from a11y



commit 365819be8e19951fa6bd08f47393fbefa90717ab
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 10 14:22:46 2014 -0700

    GtkAssistant: don't hide headerbar from a11y
    
    GtkAssistant has its own accessible implementation, and we forgot
    to update it when we added a headerbar.

 gtk/gtkassistant.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index 8b997c2..fbd12cf 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -2425,7 +2425,7 @@ gtk_assistant_accessible_get_n_children (AtkObject *accessible)
   if (widget == NULL)
     return 0;
 
-  return g_list_length (GTK_ASSISTANT (widget)->priv->pages) + 1;
+  return g_list_length (GTK_ASSISTANT (widget)->priv->pages) + 2;
 }
 
 static AtkObject *
@@ -2461,6 +2461,11 @@ gtk_assistant_accessible_ref_child (AtkObject *accessible,
       child = priv->action_area;
       title = NULL;
     }
+  else if (index == n_pages + 1)
+    {
+      child = priv->headerbar;
+      title = NULL;
+    }
   else
     return NULL;
 


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