Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
0abf4995 by wurstsalat at 2024-12-03T18:33:12+01:00
cfix: DataForms: Set image pixel-size in ImageMediaField

- - - - -


1 changed file:

- gajim/gtk/dataform.py


Changes:

=====================================
gajim/gtk/dataform.py
=====================================
@@ -894,6 +894,7 @@ def __init__(self, uri: Uri, form_grid: FormGrid, _options: 
dict[str, Any]) -> N
         texture = get_texture_from_data(data, 170)
         self._image = Gtk.Image.new_from_paintable(texture)
         self._image.set_halign(Gtk.Align.CENTER)
+        self._image.set_pixel_size(170)
         self._image.add_css_class("preview-image")
 
     def add(self, form_grid: FormGrid, row_number: int) -> None:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/0abf4995ad6f6c3b0ebd025419504e81d2a24363

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/0abf4995ad6f6c3b0ebd025419504e81d2a24363
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to