<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Overscaled GtkImage in Wayland"
href="https://bugzilla.gnome.org/show_bug.cgi?id=765421#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Overscaled GtkImage in Wayland"
href="https://bugzilla.gnome.org/show_bug.cgi?id=765421">bug 765421</a>
from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=cedric.bellegarde%40adishatz.org" title="Cédric Bellegarde <cedric.bellegarde@adishatz.org>"> <span class="fn">Cédric Bellegarde</span></a>
</span></b>
<pre>Here code example:
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GdkPixbuf, Gdk
image = Gtk.Image()
pixbuf =
GdkPixbuf.Pixbuf.new_from_file_at_size("/usr/share/icons/Adwaita/256x256/apps/web-browser.png",
100*image.get_scale_factor(), 100*image.get_scale_factor())
surface = Gdk.cairo_surface_create_from_pixbuf(pixbuf, 0, None)
image.set_from_surface(surface)
win = Gtk.Window()
win.connect("delete-event", Gtk.main_quit)
win.add(image)
win.show_all()
Gtk.main()</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>