Reputation: 96987
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
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