Re: Gtk2::Clipboard need store content after exit.

2011-09-17 Thread Emmanuele Bassi
On 2011-09-16 at 23:22, eexpress wrote: > hi, > I want store sth into clipboard after perl script exit, but does not know > how to write $clip->store(...) function. the ->store method doesn't magically "store" stuff into the ether: you'll need a daemon that takes ownership of the clipboard data wh

Gtk2::Clipboard need store content after exit.

2011-09-16 Thread eexpress
hi, 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 targetentry. now i use `echo $out|xsel -i` instead of it. use Gtk2 "-init"; $clip

Re: Gtk2::Clipboard

2005-05-01 Thread Torsten Schoenfeld
On Wed, 2005-04-27 at 16:04 +0200, Jens Luedicke wrote: > my $clipboard = > Gtk2::Clipboard->get_for_display(Gtk2::Gdk::Display->open($ENV{'DISPLAY'}), > Gtk2::Gdk::Atom->new('GDK_SELECTION_CLIPBOARD')); I think this is where your problem is. The atom

Gtk2::Clipboard

2005-04-27 Thread Jens Luedicke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hiya... I wan't to store a string in a Gtk2::Clipboard, so that I can paste it somewhere else (like in an file manager or editor). My code doesn't work as expected and the clipboard remains untouched: my $clipboard = Gtk2: