summaryrefslogtreecommitdiff
path: root/gtk/gtkaccessibleattributesetprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-03-19 17:00:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-03-19 17:01:28 -0400
commit3cfe69d71108a47f080819edbc9e884199361d8f (patch)
treef1fcc0ff687d34b6b0685d7886bccefe1137cb75 /gtk/gtkaccessibleattributesetprivate.h
parentb9da74590be6860c55fa2dca7b61d785ae174fe6 (diff)
downloadgtk+-a11y-strdup.tar.gz
a11y: Don't copy attribute names in attribute setsa11y-strdup
We only need these names when serializing a11y information for tests. And copying these strings is entirely unnecessary. So, just pass a callback instead.
Diffstat (limited to 'gtk/gtkaccessibleattributesetprivate.h')
-rw-r--r--gtk/gtkaccessibleattributesetprivate.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkaccessibleattributesetprivate.h b/gtk/gtkaccessibleattributesetprivate.h
index bce94d6876..cb52b7f62a 100644
--- a/gtk/gtkaccessibleattributesetprivate.h
+++ b/gtk/gtkaccessibleattributesetprivate.h
@@ -27,10 +27,11 @@ G_BEGIN_DECLS
typedef struct _GtkAccessibleAttributeSet GtkAccessibleAttributeSet;
+typedef const char *(* GtkAccessibleAttributeNameFunc) (int attribute);
typedef GtkAccessibleValue *(* GtkAccessibleAttributeDefaultFunc) (int attribute);
-GtkAccessibleAttributeSet * gtk_accessible_attribute_set_new (gsize n_attributes,
- const char **attr_names,
+GtkAccessibleAttributeSet * gtk_accessible_attribute_set_new (gsize n_attributes,
+ GtkAccessibleAttributeNameFunc name_func,
GtkAccessibleAttributeDefaultFunc default_func);
GtkAccessibleAttributeSet * gtk_accessible_attribute_set_ref (GtkAccessibleAttributeSet *self);
void gtk_accessible_attribute_set_unref (GtkAccessibleAttributeSet *self);