Re: Storing cut/copy URIs into Gtk::Clipboard
- From: Jiergir Ogoerg <f35f22fan gmail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: Storing cut/copy URIs into Gtk::Clipboard
- Date: Fri, 26 Jul 2013 14:19:31 +0300
While trying to provide you an example I found out by accident what's the problem: you must call clipboard->set_can_store() _after_ clipboard->set(targets, get_slot, clear_slot), which is not mentioned in the documentation and to me is a bug.
Now that I changed from:
Glib::RefPtr<Gtk::Clipboard> clipboard = Gtk::Clipboard::get();
clipboard->set_can_store();
clipboard->set(targets, slot_get, slot_clear);
to:
Glib::RefPtr<Gtk::Clipboard> clipboard = Gtk::Clipboard::get();
clipboard->set(targets, slot_get, slot_clear);
clipboard->set_can_store();
it works. Please either mention this in the gtkmm documentation, or (which is more appropriate) make the clipboard saving data not depend on this obscure and counter intuitive requirement.
In case it matters: running Ubuntu 13.04 amd64 gtkmm-3.0 (which is 3.6 really)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]