summaryrefslogtreecommitdiff
path: root/gtk/gtkassistant.c
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 /gtk/gtkassistant.c
parentb1592824658cf8a49688ea3eeabd2220b3d13f73 (diff)
downloadgtk+-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
Diffstat (limited to 'gtk/gtkassistant.c')
-rw-r--r--gtk/gtkassistant.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index 45748b6952..e469b5a282 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);
}