[libhandy] avatar: Ignore deprecations in hdy_avatar_set_image_load_func()



commit 209ed791239df324c3d0d2a6d63448cd25e225ea
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Feb 13 19:01:54 2021 +0500

    avatar: Ignore deprecations in hdy_avatar_set_image_load_func()
    
    Don't warn about our own deprecation when including the header.

 src/hdy-avatar.h | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/hdy-avatar.h b/src/hdy-avatar.h
index 851823b6..543b554b 100644
--- a/src/hdy-avatar.h
+++ b/src/hdy-avatar.h
@@ -59,11 +59,15 @@ gboolean     hdy_avatar_get_show_initials   (HdyAvatar              *self);
 HDY_AVAILABLE_IN_ALL
 void         hdy_avatar_set_show_initials   (HdyAvatar              *self,
                                              gboolean                show_initials);
+
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 HDY_DEPRECATED_IN_1_2_FOR (hdy_avatar_set_loadable_icon)
 void         hdy_avatar_set_image_load_func (HdyAvatar              *self,
                                              HdyAvatarImageLoadFunc  load_image,
                                              gpointer                user_data,
                                              GDestroyNotify          destroy);
+G_GNUC_END_IGNORE_DEPRECATIONS
+
 HDY_AVAILABLE_IN_ALL
 gint         hdy_avatar_get_size            (HdyAvatar              *self);
 HDY_AVAILABLE_IN_ALL


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]