Skip to content

avatar: Allow loading custom avatar from GLoadableIcon

Julian Sparber requested to merge jsparber/libhandy:avatar-loadable-icon into master

Setting the GLoadableIcon allows use to handle loading, updating and resizing internally. This is especially useful when using HdyAvatar in combination with libfolks

Vala example:

contact.bind_property("avatar",
                      this.avatar,
                      "loadable-icon",
                      BindingFlags.SYNC_CREATE);

cc: @exalm

Todos:

  • Deprecate set_image_func() (I don't seam to do it correctly)
  • Add hdy_avatar_draw_to_pixbuf_async ()
  • Update docs to the new way of loading an avatar
  • Fix test
Edited by Julian Sparber

Merge request reports