to make the color dropper work on Unix/GTK. OS X still needs fixes. Originally committed to SVN as r3975.