Use Gtk.render_layout instead of deprecated Gtk.paint_layout.