widget: Initialize the color palette when the widget is initialized

https://bugzilla.gnome.org/show_bug.cgi?id=728051
(cherry picked from commit f7a3c36cf36371bf0659f76cba6317c15d51a997)