https://bugzilla.gnome.org/show_bug.cgi?id=765421

--- Comment #3 from Cédric Bellegarde <[email protected]> ---
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()

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
wayland-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to