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