GLib-based pattern library