Geo
Geo

Reputation: 96987

What signals should I catch for clipboard pasting and character insertion in GTK?

I have a Window with a TextView, and I would like to perform some actions when the user pastes some text.

I would also like to know what signal(s) should I catch in order to perform something when the user presses a key inside the TextView.

Can you tell me what are the signals I must connect?

Upvotes: 1

Views: 474

Answers (1)

unwind
unwind

Reputation: 400129

For paste: Take a look at the paste-done signal of the GtkTextBuffer class, it sounds about right.

For regular character insert: insert-text.

Upvotes: 2

Related Questions