Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有 TextView 的窗口,我想在用户粘贴一些文本时执行一些操作。
我还想知道当用户在 TextView 中按下一个键时我应该捕获什么信号才能执行某些操作。
你能告诉我我必须连接的信号是什么吗?
对于粘贴:看看类的粘贴完成信号GtkTextBuffer,听起来差不多。
GtkTextBuffer
对于常规字符插入:insert-text。