Method

GntTextViewattach_pager_widget

Declaration [src]

void
gnt_text_view_attach_pager_widget (
  GntTextView* view,
  GntWidget* pager
)

Description [src]

Setup appropriate hooks so that pressing some keys when the ‘pager’ widget is in focus triggers the PAGER to popup with the contents of the textview in it.

The default key-combination to trigger the pager is a-v, and the default PAGER application is $PAGER. Both can be changed in ~/.gntrc like this:

[pager] key = a-v path = /path/to/pager

Parameters

pager

Type: GntWidget

The widget to trigger the PAGER.

The data is owned by the caller of the function.