- get_window().draw_text (get_style()->get_font(),
- get_style()->get_fg_gc(Gtk::STATE_NORMAL),
- x + 6, y + 6,
- puck->text,
- puck->textlen);
+
+ layout->set_text (puck->text);
+
+ get_window()->draw_layout (get_style()->get_fg_gc (STATE_NORMAL), x+6, y+6, layout);