static void gail_notebook_page_label_map_gtk (GtkWidget *widget,
gpointer data);
-static G_CONST_RETURN gchar* gail_notebook_page_get_name (AtkObject *accessible);
+static const gchar* gail_notebook_page_get_name (AtkObject *accessible);
static AtkObject* gail_notebook_page_get_parent (AtkObject *accessible);
static gint gail_notebook_page_get_n_children (AtkObject *accessible);
static AtkObject* gail_notebook_page_ref_child (AtkObject *accessible,
GailNotebookPage *page;
GtkWidget *child;
GtkWidget *label;
- GList *list;
-
+ GtkWidget *widget_page;
+
g_return_val_if_fail (GTK_IS_NOTEBOOK (notebook), NULL);
child = gtk_notebook_get_nth_page (notebook, pagenum);
page->notebook = notebook;
g_object_add_weak_pointer (G_OBJECT (page->notebook), (gpointer *)&page->notebook);
page->index = pagenum;
- list = g_list_nth (notebook->children, pagenum);
- page->page = list->data;
+ widget_page = gtk_notebook_get_nth_page (notebook, pagenum);
+ page->page = widget_page;
page->textutil = NULL;
atk_object = ATK_OBJECT (page);
G_OBJECT_CLASS (gail_notebook_page_parent_class)->finalize (object);
}
-static G_CONST_RETURN gchar*
+static const gchar*
gail_notebook_page_get_name (AtkObject *accessible)
{
g_return_val_if_fail (GAIL_IS_NOTEBOOK_PAGE (accessible), NULL);