libgail-util: Fix symbol visibility with meson

Autotools didn't add -fvisibility=hidden to the build of libgail-util-3.
Meson does and produces a library that exports no symbols.

Fix this by adding GDK_AVAILABLE_IN_ALL to all functions in the headers.
This commit is contained in:
Jan Alexander Steffens (heftig) 2019-06-01 05:27:43 +02:00
parent dd25499f1e
commit 0836c28202
No known key found for this signature in database
GPG Key ID: A5E9288C4FA415FA
2 changed files with 13 additions and 0 deletions

View File

@ -24,9 +24,11 @@
G_BEGIN_DECLS
GDK_AVAILABLE_IN_ALL
AtkAttributeSet* gail_misc_add_attribute (AtkAttributeSet *attrib_set,
AtkTextAttribute attr,
gchar *value);
GDK_AVAILABLE_IN_ALL
AtkAttributeSet* gail_misc_layout_get_run_attributes
(AtkAttributeSet *attrib_set,
PangoLayout *layout,
@ -35,10 +37,12 @@ AtkAttributeSet* gail_misc_layout_get_run_attributes
gint *start_offset,
gint *end_offset);
GDK_AVAILABLE_IN_ALL
AtkAttributeSet* gail_misc_get_default_attributes (AtkAttributeSet *attrib_set,
PangoLayout *layout,
GtkWidget *widget);
GDK_AVAILABLE_IN_ALL
void gail_misc_get_extents_from_pango_rectangle
(GtkWidget *widget,
PangoRectangle *char_rect,
@ -50,6 +54,7 @@ void gail_misc_get_extents_from_pango_rectangle
gint *height,
AtkCoordType coords);
GDK_AVAILABLE_IN_ALL
gint gail_misc_get_index_at_point_in_layout
(GtkWidget *widget,
PangoLayout *layout,
@ -59,12 +64,14 @@ gint gail_misc_get_index_at_point_in_layout
gint y,
AtkCoordType coords);
GDK_AVAILABLE_IN_ALL
void gail_misc_get_origins (GtkWidget *widget,
gint *x_window,
gint *y_window,
gint *x_toplevel,
gint *y_toplevel);
GDK_AVAILABLE_IN_ALL
AtkAttributeSet* gail_misc_buffer_get_run_attributes
(GtkTextBuffer *buffer,
gint offset,

View File

@ -62,13 +62,18 @@ struct _GailTextUtilClass
GObjectClass parent_class;
};
GDK_AVAILABLE_IN_ALL
GType gail_text_util_get_type (void);
GDK_AVAILABLE_IN_ALL
GailTextUtil* gail_text_util_new (void);
GDK_AVAILABLE_IN_ALL
void gail_text_util_text_setup (GailTextUtil *textutil,
const gchar *text);
GDK_AVAILABLE_IN_ALL
void gail_text_util_buffer_setup (GailTextUtil *textutil,
GtkTextBuffer *buffer);
GDK_AVAILABLE_IN_ALL
gchar* gail_text_util_get_text (GailTextUtil *textutil,
gpointer layout,
GailOffsetType function,
@ -76,6 +81,7 @@ gchar* gail_text_util_get_text (GailTextUtil *textutil,
gint offset,
gint *start_offset,
gint *end_offset);
GDK_AVAILABLE_IN_ALL
gchar* gail_text_util_get_substring (GailTextUtil *textutil,
gint start_pos,
gint end_pos);