Deprecation Warning from drawing.py

Bug #1053805 reported by Austin Bowen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Screenlets
Fix Committed
Undecided
Unassigned

Bug Description

Using Screenlets v0.1.5

I get this error when starting some Screenlets from the command line:

/usr/local/lib/python2.6/dist-packages/screenlets/drawing.py:134: DeprecationWarning: use copy pango.FontDescription.set_family instead
  self.p_fdesc.set_family_static(font)

It's only a deprecation warning, but it is annoying and potentially harmful in the future. I simply replaced the lines in screenlets/drawing.py that said "self.p_fdesc.set_family_static(font)" with "self.p_fdesc.set_family(font)" and that fixed the problem, like it says.

Related branches

Märt Põder (boamaod)
Changed in screenlets:
status: New → Fix Committed
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.