static int
get_index_in_parent (GtkAccessible *accessible)
{
- GtkAccessible *parent = gtk_accessible_get_parent (accessible);
+ GtkAccessible *parent = gtk_accessible_get_accessible_parent (accessible);
return get_index_in(parent, accessible);
}
{
GVariant *res = NULL;
- GtkAccessible *parent = gtk_accessible_get_parent (accessible);
+ GtkAccessible *parent = gtk_accessible_get_accessible_parent (accessible);
if (parent == NULL)
{
}
else
{
- parent = gtk_accessible_get_parent (accessible);
+ parent = gtk_accessible_get_accessible_parent (accessible);
context = gtk_accessible_get_at_context (parent);
gtk_at_context_child_changed (context, change, accessible);
if (child_context == NULL)
return;
- if (gtk_accessible_get_parent (child) != accessible)
+ if (gtk_accessible_get_accessible_parent (child) != accessible)
{
idx = 0;
}
*
* Every accessible implementation is part of a tree of accessible objects.
* Normally, this tree corresponds to the widget tree, but can be customized
- * by reimplementing the [vfunc@Gtk.Accessible.get_parent]
+ * by reimplementing the [vfunc@Gtk.Accessible.get_accessible_parent]
* and [vfunc@Gtk.Accessible.get_child_at_index] virtual functions.
* Note that you can not create a top-level accessible object as of now,
* which means that you must always have a parent accessible object.
}
/*
- * gtk_accessible_get_parent:
+ * gtk_accessible_get_accessible_parent:
* @self: a `GtkAccessible`
*
* Retrieves the parent `GtkAccessible` for the given `GtkAccessible`.
* Returns: (transfer none): the parent `GtkAccessible`, which can not be %NULL
*/
GtkAccessible *
-gtk_accessible_get_parent (GtkAccessible *self)
+gtk_accessible_get_accessible_parent (GtkAccessible *self)
{
g_return_val_if_fail (GTK_IS_ACCESSIBLE (self), NULL);
- return GTK_ACCESSIBLE_GET_IFACE (self)->get_parent (self);
+ return GTK_ACCESSIBLE_GET_IFACE (self)->get_accessible_parent (self);
}
/* propagate changes up from ignored widgets */
if (gtk_accessible_get_accessible_role (self) == GTK_ACCESSIBLE_ROLE_NONE)
- context = gtk_accessible_get_at_context (gtk_accessible_get_parent (self));
+ context = gtk_accessible_get_at_context (gtk_accessible_get_accessible_parent (self));
if (context == NULL)
return;
/* propagate changes up from ignored widgets */
if (gtk_accessible_get_accessible_role (self) == GTK_ACCESSIBLE_ROLE_NONE)
- context = gtk_accessible_get_at_context (gtk_accessible_get_parent (self));
+ context = gtk_accessible_get_at_context (gtk_accessible_get_accessible_parent (self));
if (context == NULL)
return;
GtkAccessiblePlatformState state);
/**
- * GtkAccessibleInterface::get_parent:
+ * GtkAccessibleInterface::get_accessible_parent:
* @self: a `GtkAccessible`
*
* Returns the parent `GtkAccessible` of @self.
* Be sure not to return %NULL, as a top-level `GtkAccessible` which is not a
* top-level window is not supported.
*/
- GtkAccessible * (* get_parent) (GtkAccessible *self);
+ GtkAccessible * (* get_accessible_parent) (GtkAccessible *self);
/**
* GtkaccessibleInterface::get_child_at_index:
GtkAccessiblePlatformState state);
GDK_AVAILABLE_IN_4_10
-GtkAccessible * gtk_accessible_get_parent(GtkAccessible *self);
+GtkAccessible * gtk_accessible_get_accessible_parent(GtkAccessible *self);
GDK_AVAILABLE_IN_4_10
GtkAccessible * gtk_accessible_get_child_at_index(GtkAccessible *self, guint idx);
}
static GtkAccessible *
-gtk_stack_page_accessible_get_parent (GtkAccessible *accessible)
+gtk_stack_page_accessible_get_accessible_parent (GtkAccessible *accessible)
{
GtkStackPage *page = GTK_STACK_PAGE (accessible);
{
iface->get_at_context = gtk_stack_page_accessible_get_at_context;
iface->get_platform_state = gtk_stack_page_accessible_get_platform_state;
- iface->get_parent = gtk_stack_page_accessible_get_parent;
+ iface->get_accessible_parent = gtk_stack_page_accessible_get_accessible_parent;
iface->get_child_at_index = gtk_stack_page_accessible_get_child_at_index;
iface->get_bounds = gtk_stack_page_accessible_get_bounds;
}
}
static GtkAccessible *
-gtk_widget_accessible_get_parent (GtkAccessible *self)
+gtk_widget_accessible_get_accessible_parent (GtkAccessible *self)
{
return GTK_ACCESSIBLE (gtk_widget_get_parent (GTK_WIDGET (self)));
}
{
iface->get_at_context = gtk_widget_accessible_get_at_context;
iface->get_platform_state = gtk_widget_accessible_get_platform_state;
- iface->get_parent = gtk_widget_accessible_get_parent;
+ iface->get_accessible_parent = gtk_widget_accessible_get_accessible_parent;
iface->get_child_at_index = gtk_widget_accessible_get_child_at_index;
iface->get_bounds = gtk_widget_accessible_get_bounds;
}