From 9f14e7c7c745112c22e657b64e9edc1ea1911b0f Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Mon, 27 Aug 2012 12:08:09 +0000 Subject: [PATCH] GTK3 fix. Added missing Gdk import. Colour picker on note editor now works. svn: r20272 --- src/gui/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/utils.py b/src/gui/utils.py index 48b8ebd38..fed3b71a8 100644 --- a/src/gui/utils.py +++ b/src/gui/utils.py @@ -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