aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src/ui/contact_details_dialog.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-09-16 11:23:18 +0200
committerfiaxh <git@lightrise.org>2022-09-18 20:30:24 +0200
commit7ad52d9335579d03613036a7da9967fcf0c5d6b3 (patch)
treeda4d394e95b34be9989601d20126eb766cd250c6 /plugins/omemo/src/ui/contact_details_dialog.vala
parentb8e84c83268a11ae41ad1d673999362427fd755c (diff)
downloaddino-7ad52d9335579d03613036a7da9967fcf0c5d6b3.tar.gz
dino-7ad52d9335579d03613036a7da9967fcf0c5d6b3.zip
OMEMO QR code: Switch to paintable, fix css
Diffstat (limited to 'plugins/omemo/src/ui/contact_details_dialog.vala')
-rw-r--r--plugins/omemo/src/ui/contact_details_dialog.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/omemo/src/ui/contact_details_dialog.vala b/plugins/omemo/src/ui/contact_details_dialog.vala
index ab216c58..2de28572 100644
--- a/plugins/omemo/src/ui/contact_details_dialog.vala
+++ b/plugins/omemo/src/ui/contact_details_dialog.vala
@@ -104,9 +104,9 @@ public class ContactDetailsDialog : Gtk.Dialog {
const int QUIET_ZONE_MODULES = 4; // MUST be at least 4
const int MODULE_SIZE_PX = 4; // arbitrary
- var qr_pixbuf = new QRcode(iri, 2)
- .to_pixbuf(MODULE_SIZE_PX * qrcode_image.scale_factor);
- qrcode_image.set_from_pixbuf(qr_pixbuf);
+ var qr_paintable = new QRcode(iri, 2)
+ .to_paintable(MODULE_SIZE_PX * qrcode_image.scale_factor);
+ qrcode_image.paintable = qr_paintable;
qrcode_image.margin_top = qrcode_image.margin_end =
qrcode_image.margin_bottom = qrcode_image.margin_start = QUIET_ZONE_MODULES*MODULE_SIZE_PX;
qrcode_popover.add_css_class("qrcode-container");