Convert GdkPixmap code to Cairo

Bug #846344 reported by Johannes Sasongko
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Exaile
Confirmed
Medium
Unassigned

Bug Description

Required for gtk3 -- pixmap doesn't exist any more.

grep says we're only using it in xlgui/icons.py (pixbuf_from_text) and plugins/moodbar.

Revision history for this message
Mathias Brodala (mathbr) wrote :

This won’t be easy as it seems. For this to work, cairo surfaces have to be first class citizens within GTK.

The method using GtkPixmap xlgui.icons can be removed as soon as we remove xlgui.oldmenu since that’s the only place where it is used.

There is, however another usage by now: the OSD plugin uses GdkPixmap to create a non-rectangular window shape. To achieve this nowadays, one is supposed to use cairo regions, also not yet usable.

This seems only fixable with GI but cairo still seems to have issues with that since the following will result in an MemoryError:

from gi.repository import cairo
region = cairo.Region()

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.