user-image: Port to AdwAvatar
This simultaneously allows us to remove a lot of code, and make Malcontent more consistent with the rest of the system. Port MctUserImage to use an AdwAvatar internally. Make it inherit AdwBin since it has a single child now.
This commit is contained in:
parent
d4f219b71e
commit
6cb361efb9
2 changed files with 25 additions and 84 deletions
|
@ -21,14 +21,14 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <adwaita.h>
|
||||
#include <act/act.h>
|
||||
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define MCT_TYPE_USER_IMAGE (mct_user_image_get_type ())
|
||||
G_DECLARE_FINAL_TYPE (MctUserImage, mct_user_image, MCT, USER_IMAGE, GtkImage)
|
||||
G_DECLARE_FINAL_TYPE (MctUserImage, mct_user_image, MCT, USER_IMAGE, AdwBin)
|
||||
|
||||
GtkWidget *mct_user_image_new (void);
|
||||
void mct_user_image_set_user (MctUserImage *image,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue