summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2009-02-17 05:49:17 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2009-02-17 05:49:17 +0000
commit6aee5c0877bb3d07f4aa058bfaa9219d6002822d (patch)
treeac71319ddff25032d8c4542047bec1bc87964a91
parentb1592824658cf8a49688ea3eeabd2220b3d13f73 (diff)
downloadgdk-pixbuf-6aee5c0877bb3d07f4aa058bfaa9219d6002822d.tar.gz
Set the object name to the page title. Proposed by Eitan Isaacson
* gtk/gtkassistant.c (gtk_assistant_accessible_ref_child): Set the object name to the page title. Proposed by Eitan Isaacson svn path=/trunk/; revision=22345
-rw-r--r--ChangeLog7
-rw-r--r--gtk/gtkassistant.c6
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c953f339c..d3d186a06 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2009-02-16 MatthiasClasen <mclasen@redhat.com>
+ Bug 572040 – GtkAssistant does not expose page titles
+
+ * gtk/gtkassistant.c (gtk_assistant_accessible_ref_child): Set
+ the object name to the page title. Proposed by Eitan Isaacson
+
+2009-02-16 MatthiasClasen <mclasen@redhat.com>
+
Bug 572041 – Focus should change when advancing forward in GtkAssistant
* gtk/gtkassistant.c (set_current_page): Set focus when the current
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index 45748b695..e469b5a28 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -2233,6 +2233,7 @@ gtk_assistant_accessible_ref_child (AtkObject *accessible,
GtkWidget *widget, *child;
gint n_pages;
AtkObject *obj;
+ gchar *title;
widget = GTK_ACCESSIBLE (accessible)->widget;
if (!widget)
@@ -2249,16 +2250,21 @@ gtk_assistant_accessible_ref_child (AtkObject *accessible,
GtkAssistantPage *page = g_list_nth_data (priv->pages, index / 2);
child = page->page;
+ title = gtk_assistant_get_page_title (assistant, child);
}
else if (index == n_pages)
{
child = priv->action_area;
+ title = NULL;
}
else
return NULL;
obj = gtk_widget_get_accessible (child);
+ if (title)
+ atk_object_set_name (obj, title);
+
return g_object_ref (obj);
}