Skip to content

Commit

Permalink
handle all png formats in gdk pixbuf loader fallback code
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@5903 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 23, 2014
1 parent e10c4db commit 2bb0e20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xpra/client/gtk2/window_backing.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def paint_image(self, coding, img_data, x, y, width, height, options, callbacks)

def paint_pixbuf_gdk(self, coding, img_data, x, y, width, height, options, callbacks):
""" must be called from UI thread """
if coding.startswith("png"):
coding = "png"
loader = gdk.PixbufLoader(coding)
loader.write(img_data, len(img_data))
loader.close()
Expand Down

0 comments on commit 2bb0e20

Please sign in to comment.