[libhandy] avatar: Deprecate hdy_avatar_set_image_load_func()



commit 7f5e6d08a803447264f9bddd200021b42d7d9bd9
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Feb 10 16:14:21 2021 +0500

    avatar: Deprecate hdy_avatar_set_image_load_func()
    
    With loadable icons, there's no reason to use that anymore, let's deprecate
    it.

 src/hdy-avatar.c | 2 ++
 src/hdy-avatar.h | 5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/hdy-avatar.c b/src/hdy-avatar.c
index 9c2476e0..bacbf741 100644
--- a/src/hdy-avatar.c
+++ b/src/hdy-avatar.c
@@ -1081,6 +1081,8 @@ hdy_avatar_set_show_initials (HdyAvatar *self,
  *
  * A callback which is called when the custom image need to be reloaded for some
  * reason (e.g. scale-factor changes).
+ *
+ * Deprecated: 1.1: use hdy_avatar_set_loadable_icon() instead.
  */
 void
 hdy_avatar_set_image_load_func (HdyAvatar              *self,
diff --git a/src/hdy-avatar.h b/src/hdy-avatar.h
index 4cfccfa9..2d3d7cbe 100644
--- a/src/hdy-avatar.h
+++ b/src/hdy-avatar.h
@@ -32,7 +32,10 @@ G_DECLARE_FINAL_TYPE (HdyAvatar, hdy_avatar, HDY, AVATAR, GtkDrawingArea)
  *
  * Returns: (nullable) (transfer full): the #GdkPixbuf to use as a custom avatar
  * or %NULL to fallback to the generated avatar.
+ *
+ * Deprecated: 1.1: use hdy_avatar_set_loadable_icon() instead.
  */
+HDY_DEPRECATED_TYPE_IN_1_1_FOR (hdy_avatar_set_loadable_icon)
 typedef GdkPixbuf *(*HdyAvatarImageLoadFunc) (gint     size,
                                               gpointer user_data);
 
@@ -56,7 +59,7 @@ gboolean     hdy_avatar_get_show_initials   (HdyAvatar              *self);
 HDY_AVAILABLE_IN_ALL
 void         hdy_avatar_set_show_initials   (HdyAvatar              *self,
                                              gboolean                show_initials);
-HDY_AVAILABLE_IN_ALL
+HDY_DEPRECATED_IN_1_1_FOR (hdy_avatar_set_loadable_icon)
 void         hdy_avatar_set_image_load_func (HdyAvatar              *self,
                                              HdyAvatarImageLoadFunc  load_image,
                                              gpointer                user_data,


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