GTK3 fix. Added missing Gdk import. Colour picker on note editor now works.
svn: r20272
This commit is contained in:
parent
734b6dff3c
commit
9f14e7c7c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user