diff options
author | Colomban Wendling <cwendling@hypra.fr> | 2023-04-25 12:22:41 +0200 |
---|---|---|
committer | Colomban Wendling <cwendling@hypra.fr> | 2023-04-25 12:22:41 +0200 |
commit | 3ba50db92c23518fb5c0b713e58a8ca21e7994e0 (patch) | |
tree | 9507c19cac86a64c3e5af38c5f684f8757252b10 /atspi/atspi-text.h | |
parent | 758c5830865c1c1b1768cdec099baa140a6c1a25 (diff) | |
download | at-spi2-core-3ba50db92c23518fb5c0b713e58a8ca21e7994e0.tar.gz |
Use const attribute name input in atspi_*_get*_attribute_value()
There is no point in having them mutable, and makes the API look more
awkward and harder to use than it actually is.
Diffstat (limited to 'atspi/atspi-text.h')
-rw-r--r-- | atspi/atspi-text.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/atspi/atspi-text.h b/atspi/atspi-text.h index 61375b18..f8f949bf 100644 --- a/atspi/atspi-text.h +++ b/atspi/atspi-text.h @@ -97,10 +97,10 @@ GHashTable *atspi_text_get_text_attributes (AtspiText *obj, gint offset, gint *s GHashTable *atspi_text_get_attribute_run (AtspiText *obj, gint offset, gboolean include_defaults, gint *start_offset, gint *end_offset, GError **error); #ifndef ATSPI_DISABLE_DEPRECATED -gchar *atspi_text_get_attribute_value (AtspiText *obj, gint offset, gchar *attribute_name, GError **error); +gchar *atspi_text_get_attribute_value (AtspiText *obj, gint offset, const gchar *attribute_name, GError **error); #endif -gchar *atspi_text_get_text_attribute_value (AtspiText *obj, gint offset, gchar *attribute_name, GError **error); +gchar *atspi_text_get_text_attribute_value (AtspiText *obj, gint offset, const gchar *attribute_name, GError **error); GHashTable *atspi_text_get_default_attributes (AtspiText *obj, GError **error); |