gtkmm 和系统剪贴板
我想知道当系统剪贴板内容更改/有人复制文本时 gtkmm 中的任何位置是否会发出信号。我查看了 gtk 文档,似乎 Gtk::Clipboard 对象发出的唯一信号是owner_changed 信号。更具体地说,我不在乎谁更改了系统剪贴板,无论是我的应用程序(它不会是)还是用户。
我实现此目的的唯一其他选择是循环并不断检查剪贴板是否有更改。希望有一种更有效的方法来实现这一目标。
有谁知道有信号吗?
谢谢。
I am wondering if there is a signal anywhere in gtkmm that is emitted when the system clipboard contents change/someone copies text. I looked into the gtk docs and it seems the only signal emitted by the Gtk::Clipboard object is the owner_changed signal. To be more specific, I don't care who changes the system clipboard whether it be my app (which it wont be) or the user.
My only other option to implement this is to loop and keep checking the clipboard for a change. Was hoping there was a more efficient means of accomplishing this.
Anyone know of a signal?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会看看这个 示例。我没有编译和运行它,但我认为它表明“owner_changed”信号将执行您想要的操作。
I'd take a look at this example. I did not compile and run it, but I think it is indicating that the "owner_changed" signal will do what you want.