mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-27 03:21:44 +03:00
manager: Fix loading libguestfs OS icons (bz 905238)
This commit is contained in:
parent
4da8c604f8
commit
91a97d439c
@ -1000,12 +1000,14 @@ class vmmManager(vmmGObjectUI):
|
||||
if png_data is None:
|
||||
return None
|
||||
try:
|
||||
pb = GdkPixbuf.PixbufLoader(image_type="png")
|
||||
pb = GdkPixbuf.PixbufLoader()
|
||||
pb.set_size(w, h)
|
||||
pb.write(png_data)
|
||||
pb.close()
|
||||
return pb.get_pixbuf()
|
||||
except:
|
||||
logging.exception("Error loading inspection icon data")
|
||||
vm.inspection.icon = None
|
||||
return None
|
||||
|
||||
def conn_state_changed(self, conn):
|
||||
|
Loading…
Reference in New Issue
Block a user