GTK3 fix. Added missing Gdk import. Colour picker on note editor now works.

svn: r20272
This commit is contained in:
Gary Burton 2012-08-27 12:08:09 +00:00
parent 734b6dff3c
commit 9f14e7c7c7

View File

@ -491,5 +491,6 @@ def color_to_hex(color):
def hex_to_color(hex):
"""Convert hex string to Gdk.Color."""
from gi.repository import Gdk
color = Gdk.color_parse(hex)
return color