Gtk2::Clipboard need store content after exit.

I want store sth into clipboard after perl script exit, but does not know
how to write $clip->store(...) function.
"... (list) of Gtk2::TargetEntry's" here but how can i set those

now i use `echo $out|xsel -i` instead of it.

use Gtk2 "-init";
$clip = Gtk2::Clipboard->get (Gtk2::Gdk->SELECTION_PRIMARY);
$clip->set_text("need keep");
Gtk2->main_iteration while Gtk2->events_pending;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]