Re: EuGTK - clipboard?
- Posted by jimcbrown (admin) Sep 13, 2010
- 1534 views
Jerry_Story said...
How can I do something like this in EuGTK?
st = "a bunch of stuff to go to the clipboard" set_clip_text(st) -- to the clipboard
A search for "clip" on testdescriptions.txt finds nothing. In GtkRoutines.e there are some "clipboard" things in control[GtkTextBuffer] but I don't know how to use that.
The GTK clipboard functions (such as the one you want, gtk_clipboard_set_text() ) are documented here: http://library.gnome.org/devel/gtk/stable/gtk-Clipboards.html
Some examples in Python and C: http://www.deskchecked.com/2007/06/27/passing-data-between-gtk-applications-with-gtkclipboard/