Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | # NOTE: Derived from ../blib/lib/Tk/Listbox.pm. |
2 | # Changes made here will be lost when autosplit is run again. | |
3 | # See AutoSplit.pm. | |
4 | package Tk::Listbox; | |
5 | ||
6 | #line 511 "../blib/lib/Tk/Listbox.pm (autosplit into ../blib/lib/auto/Tk/Listbox/clipboardPaste.al)" | |
7 | sub clipboardPaste | |
8 | { | |
9 | my $w = shift; | |
10 | my $index = $w->index('active') || $w->index($w->XEvent->xy); | |
11 | my $str; | |
12 | eval {local $SIG{__DIE__}; $str = $w->clipboardGet }; | |
13 | return if $@; | |
14 | foreach (split("\n",$str)) | |
15 | { | |
16 | $w->insert($index++,$_); | |
17 | } | |
18 | } | |
19 | ||
20 | # end of Tk::Listbox::clipboardPaste | |
21 | 1; |