diff options
Diffstat (limited to 'main/src/ui/avatar_image.vala')
-rw-r--r-- | main/src/ui/avatar_image.vala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/ui/avatar_image.vala b/main/src/ui/avatar_image.vala index a304f5a2..f348dd4b 100644 --- a/main/src/ui/avatar_image.vala +++ b/main/src/ui/avatar_image.vala @@ -24,7 +24,7 @@ public class AvatarImage : Widget { public AvatarImage() { can_focus = false; - get_style_context().add_class("avatar"); + add_css_class("avatar"); } public override void dispose() { @@ -51,7 +51,6 @@ public class AvatarImage : Widget { } public bool draw(Cairo.Context ctx_in) { - if (conversation == null || jids == null) return false; Cairo.Context ctx = ctx_in; int width = this.width, height = this.height, base_factor = 1; if (use_image_surface == -1) { |