Re: Gtk2::Clipboard



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 for the normal
clipboard is not called "GDK_SELECTION_CLIPBOARD" but just "CLIPBOARD".
In C, GDK_SELECTION_CLIPBOARD is a #define for a pre-existing CLIPBOARD
atom.  In Perl, you can access it via Gtk2::Gdk->SELECTION_CLIPBOARD,
but Gtk2::Gdk::Atom->new('CLIPBOARD') works too.

-- 
Bye,
-Torsten




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