Most of the reference documentation of
gtkmm is copied from gtk+. The documentation of
Gtk::Clipboard::set_can_store() is copied from
gtk_clipboard_set_can_store(). It says This value is reset
when the clipboard owner changes. That's cryptic. It means
that your first call to Gtk::Clipboard::get() cancels the effect
of set_can_store(). (Perhaps all calls to get() cancel the effect
of set_can_store(), I'm not sure.)
It would be possible to add some less cryptic documentation to Gtk::Clipboard::set_can_store(), but it would be much better to have it added to the description of gtk_clipboard_set_can_store() in gtk+, and then copied to gtkmm. Changing the unintuitive dependency between set() and set_can_store() might not be feasible. All running applications share the same clipboard. That imposes some restrictions on what can be done. If it's possible to change the dependency, it must be done in gtk+. Kjell 2013-07-26 13:19, Jiergir Ogoerg skrev:
|