pattern-editor: fix some widget issues

Use gtkcolorswatch and gtkiconview as examples.