-/* Draw the "more" prompt on top of the buffer, after the regular draw event has run */
-gboolean
-pager_on_draw(GtkTextView *textview, cairo_t *cr, winid_t win)
-{
- /* Calculate the position of the 'more' tag */
- gint promptwidth, promptheight;
- pango_layout_get_pixel_size(win->pager_layout, &promptwidth, &promptheight);
-
- int winwidth = gtk_widget_get_allocated_width( GTK_WIDGET(textview) );
- int winheight = gtk_widget_get_allocated_height( GTK_WIDGET(textview) );
-
- /* Draw the 'more' tag */
- cairo_move_to(cr, winwidth - promptwidth, winheight - promptheight);
- pango_cairo_show_layout(cr, win->pager_layout);
-
- return FALSE; /* Propagate event further */
-}
-