mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 01:31:13 +00:00
a11y: Implement get_default_attributes for Text
This commit is contained in:
parent
d9447fd2e7
commit
7e522a8c55
@ -7527,6 +7527,20 @@ gtk_text_accessible_text_get_attributes (GtkAccessibleText *self,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gtk_text_accessible_text_get_default_attributes (GtkAccessibleText *self,
|
||||||
|
char ***attribute_names,
|
||||||
|
char ***attribute_values)
|
||||||
|
{
|
||||||
|
PangoLayout *layout = gtk_text_get_layout (GTK_TEXT (self));
|
||||||
|
char **names, **values;
|
||||||
|
|
||||||
|
gtk_pango_get_default_attributes (layout, &names, &values);
|
||||||
|
|
||||||
|
*attribute_names = names;
|
||||||
|
*attribute_values = values;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_text_accessible_text_init (GtkAccessibleTextInterface *iface)
|
gtk_text_accessible_text_init (GtkAccessibleTextInterface *iface)
|
||||||
{
|
{
|
||||||
@ -7534,6 +7548,7 @@ gtk_text_accessible_text_init (GtkAccessibleTextInterface *iface)
|
|||||||
iface->get_caret_position = gtk_text_accessible_text_get_caret_position;
|
iface->get_caret_position = gtk_text_accessible_text_get_caret_position;
|
||||||
iface->get_selection = gtk_text_accessible_text_get_selection;
|
iface->get_selection = gtk_text_accessible_text_get_selection;
|
||||||
iface->get_attributes = gtk_text_accessible_text_get_attributes;
|
iface->get_attributes = gtk_text_accessible_text_get_attributes;
|
||||||
|
iface->get_default_attributes = gtk_text_accessible_text_get_default_attributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim:set foldmethod=marker expandtab: */
|
/* vim:set foldmethod=marker expandtab: */
|
||||||
|
Loading…
Reference in New Issue
Block a user