diff options
Diffstat (limited to 'Master/tlpkg/tlperl/site/lib/auto/Tk/Listbox/clipboardPaste.al')
-rw-r--r-- | Master/tlpkg/tlperl/site/lib/auto/Tk/Listbox/clipboardPaste.al | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Tk/Listbox/clipboardPaste.al b/Master/tlpkg/tlperl/site/lib/auto/Tk/Listbox/clipboardPaste.al new file mode 100644 index 00000000000..a9582d018a8 --- /dev/null +++ b/Master/tlpkg/tlperl/site/lib/auto/Tk/Listbox/clipboardPaste.al @@ -0,0 +1,21 @@ +# NOTE: Derived from ..\blib\lib\Tk\Listbox.pm.
+# Changes made here will be lost when autosplit is run again.
+# See AutoSplit.pm.
+package Tk::Listbox;
+
+#line 880 "..\blib\lib\Tk\Listbox.pm (autosplit into ..\blib\lib\auto\Tk\Listbox\clipboardPaste.al)"
+sub clipboardPaste
+{
+ my $w = shift;
+ my $index = $w->index('active') || $w->index($w->XEvent->xy);
+ my $str;
+ eval {local $SIG{__DIE__}; $str = $w->clipboardGet };
+ return if $@;
+ foreach (split("\n",$str))
+ {
+ $w->insert($index++,$_);
+ }
+}
+
+# end of Tk::Listbox::clipboardPaste
+1;
|