- GdkGC *context = gdk_gc_new(GDK_DRAWABLE(event->window));
- gdk_draw_layout(event->window, context,
- winx + winwidth - promptwidth,
- winy + winheight - promptheight,
- win->pager_layout);
+ cairo_t *cr = gdk_cairo_create(event->window);
+ cairo_move_to(cr,
+ winx + winwidth - promptwidth,
+ winy + winheight - promptheight);
+ pango_cairo_show_layout(cr, win->pager_layout);