Skip to content

Commit 8b1eacb

Browse files
Nick Ing-Simmonseserte
authored andcommitted
import Tk 800.021 from CPAN
git-cpan-module: Tk git-cpan-version: 800.021 git-cpan-authorid: NI-S git-cpan-file: authors/id/N/NI/NI-S/Tk800.021.tar.gz
1 parent dcc002c commit 8b1eacb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1652
-1113
lines changed

Change.log

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,160 @@
1+
Change 1826 on 2000/04/21 by nick@bactrian
2+
3+
A few more sprintf's converted to return int SVs directly
4+
5+
Change 1825 on 2000/04/21 by nick@bactrian
6+
7+
Fix REFCNT botch which has been plaguing us for so long.
8+
9+
Change 1824 on 2000/04/20 by nick@pluto
10+
11+
Use private handle for reading director for FBox
12+
13+
Change 1823 on 2000/04/20 by nick@pluto
14+
15+
Attempting to debug PERL_DESTRUCT_LEVEL=3 issues.
16+
Seems to SEGFAULT during exit of t/fbox.t (Linux and Solaris2.7,
17+
perl5.005_03).
18+
19+
Two more exit cleanup attempts:
20+
1. Stop using raw sharepvn() for Tk_GetUid() so we
21+
don't get all the refcount issues with string table.
22+
2. Remove (redundant?) self-reference in Tcl_TraceVar* 'U' magic.
23+
24+
Change 1822 on 2000/04/15 by nick@linux
25+
26+
'Too late for INIT hackery for Event.xs'
27+
28+
Change 1821 on 2000/04/15 by nick@bactrian
29+
30+
Re-enable B::C compile (at least with 5.00503)
31+
32+
Change 1820 on 2000/04/10 by nick@bactrian
33+
34+
Fix new Optionmenu to not call callback unless it is
35+
setting value or FBox at least goes into a loop.
36+
Also remove work-round for old Optionmenu behaviour from FBox
37+
38+
Change 1819 on 2000/04/10 by nick@pluto
39+
40+
Add aliases to BrowseEntry config options to make it more like Optionmenu.
41+
Make both Optionmenu and BrowseEntry honour incoming -textvariable
42+
if valid, but re-set it if -options set to list which
43+
does not include it.
44+
45+
Change 1818 on 2000/04/07 by nick@bactrian
46+
47+
Avoid use of undef when Entry part of BrowseEntry gets
48+
ButtonMotion events.
49+
50+
Change 1815 on 2000/04/05 by nick@pluto
51+
52+
Don't hard-code /usr/local/perl
53+
54+
Change 1814 on 2000/04/03 by nick@bactrian
55+
56+
dTHR -> dTHX everywhere (+ fallback to dTHR if not defined).
57+
58+
Change 1813 on 2000/04/02 by nick@bactrian
59+
60+
Fix typo
61+
62+
Change 1812 on 2000/04/02 by nick@bactrian
63+
64+
Increment version to 800.021 for testing
65+
66+
Change 1811 on 2000/04/02 by nick@bactrian
67+
68+
Win32-ish tolerance of (e.g. C:/) as path in Fbox.
69+
70+
Change 1810 on 2000/04/02 by nick@bactrian
71+
72+
Avoid READABLE/readable name clash in Event.xs for VMS.
73+
74+
Change 1809 on 2000/04/01 by nick@bactrian
75+
76+
Merge img1.2.3 builds and passes t/photo.t
77+
78+
Change 1808 on 2000/04/01 by nick@bactrian
79+
80+
Raw merge of img1.2.3
81+
82+
Change 1805 on 2000/04/01 by nick@bactrian
83+
84+
Make patch for XrmOption tidier
85+
86+
Change 1804 on 2000/04/01 by nick@bactrian
87+
88+
Fix Tk::Xrm with multiple mainwindows
89+
90+
Change 1803 on 2000/03/31 by nick@bactrian
91+
92+
VERSION tweaks (I must automate that somehow ...)
93+
94+
Change 1802 on 2000/03/31 by nick@bactrian
95+
96+
- allow ->index in TList
97+
- Exist check in Table's layout method
98+
- Document corner in Scrolled.
99+
100+
Change 1801 on 2000/03/31 by nick@bactrian
101+
102+
Various tweaks from mailbox backlog
103+
- Tiler scroll behaviour
104+
- remove 'use English' from demos/widget.
105+
- rename configspec.pod ConfigSpecs.pod
106+
- Loose MsgBox.pm
107+
108+
Change 1800 on 2000/03/31 by nick@bactrian
109+
110+
Dialog(Box) foreground/background propagation
111+
Add <Control-underscore> as <<Undo>>
112+
Protect Tiler from divide by zero
113+
Avoid gcc options to non gcc.
114+
115+
Change 1799 on 2000/03/31 by nick@bactrian
116+
117+
Fix Tix style issues with multiple MainWindows.
118+
119+
Change 1798 on 2000/03/31 by nick@bactrian
120+
121+
Steve's -labelXxxx patch.
122+
More
123+
124+
Change 1797 on 2000/03/30 by nick@bactrian
125+
126+
Dratted $VERSION again.
127+
128+
Change 1796 on 2000/03/30 by nick@bactrian
129+
130+
Document and attempt to work round the -Bforcearchive issue on OpenBSD.
131+
While in there restrict types of files in t directory that are considered.
132+
133+
Change 1794 on 2000/03/30 by nick@bactrian
134+
135+
Don't create callback for BackgroundError with raw array.
136+
137+
Change 1792 on 2000/03/30 by nick@bactrian
138+
139+
Update versions of patched files.
140+
141+
Change 1791 on 2000/03/30 by nick@linux
142+
143+
Avoid ->Delegate AUTOLOAD scheme if not appropriate
144+
145+
Change 1790 on 2000/03/30 by nick@bactrian
146+
147+
Add README.OpenBSD discussing the -Bforcearchive issue.
148+
Steve's fileevent.t
149+
150+
Change 1788 on 2000/03/27 by nick@bactrian
151+
152+
Steve's tweak to untie issue with Tk::Event::IO
153+
154+
Change 1787 on 2000/03/27 by nick@bactrian
155+
156+
Tk800.020 release prep.
157+
1158
Change 1786 on 2000/03/27 by nick@bactrian_nt
2159

3160
An attempt to get 'ActiveWindow' right on Win32

Changes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ release is at the top.
44
Change.log is generated from perforce database, it is therefore
55
complete, but short on detail.
66

7+
Changes in Tk800.021
8+
Steve's patches for fileevent and -labelXxxxx
9+
Fixed the 'Delagate' bug introduced trying to make AUTOLOAD clean.
10+
Tweaks to Optionmenu and BrowseEntry to make them more like each other
11+
and better tolerate changing the options/choices list.
12+
Made B::C* work again for perl5.005_03 (perl5.6.0 has problems).
13+
Use dTHX every where we had dTHR - should build against threaded perl
14+
(STILL NOT THREAD SAFE).
15+
Fix name clash in Event for VMS.
16+
Merge production Img1.2.3
17+
Fix Tk::Xrm and Tix Style with multiple MainWindows
18+
Found and fixed the 'Attempt to free unreferenced scalar' issue.
19+
720
Changes in Tk800.020
821
Various tweaks for perl5.6.0
922
Fix ->itemconfigure of grouped canvas items.

DragDrop/DragDrop.pm

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require Tk::Toplevel;
44
require Tk::Label;
55

66
use vars qw($VERSION);
7-
$VERSION = '3.027'; # $Id: //depot/Tk8/DragDrop/DragDrop.pm#27 $
7+
$VERSION = '3.029'; # $Id: //depot/Tk8/DragDrop/DragDrop.pm#29 $
88

99
use base qw(Tk::DragDrop::Common Tk::Toplevel);
1010

@@ -21,10 +21,10 @@ Construct Tk::Widget 'DragDrop';
2121
use strict;
2222
use vars qw(%type @types);
2323
use Carp;
24-
2524

26-
# There is a snag with having a token window and moving to
27-
# exactly where cursor is - the cursor is "inside" the token
25+
26+
# There is a snag with having a token window and moving to
27+
# exactly where cursor is - the cursor is "inside" the token
2828
# window - hence it is not "inside" the dropsite window
2929
# so we offset X,Y by OFFSET pixels.
3030
sub OFFSET () {3}
@@ -126,7 +126,7 @@ sub event
126126
$w->parent->Tk::bind($value,[$w,'StartDrag']);
127127
}
128128

129-
#
129+
#
130130

131131
sub FindSite
132132
{
@@ -144,13 +144,13 @@ sub FindSite
144144
else
145145
{
146146
warn 'No sitetypes';
147-
}
147+
}
148148
my $new = $site || 'undef';
149149
my $over = $token->{'Over'};
150150
if ($over)
151151
{
152152
if (!$over->Match($site))
153-
{
153+
{
154154
$over->Leave($token,$e);
155155
delete $token->{'Over'};
156156
}
@@ -159,7 +159,7 @@ sub FindSite
159159
{
160160
unless ($token->{'Over'})
161161
{
162-
$site->Enter($token,$e);
162+
$site->Enter($token,$e);
163163
$token->{'Over'} = $site;
164164
}
165165
$site->Motion($token,$e) if (defined $site)
@@ -200,7 +200,7 @@ sub NewDrag
200200
}
201201
}
202202
}
203-
}
203+
}
204204

205205
sub Drag
206206
{
@@ -211,7 +211,7 @@ sub Drag
211211
$token = $token->toplevel;
212212
$token->MoveToplevelWindow($X+OFFSET,$Y+OFFSET);
213213
$token->FindSite($X,$Y,$e);
214-
}
214+
}
215215

216216
sub Done
217217
{
@@ -225,7 +225,7 @@ sub Done
225225
$token->withdraw;
226226
delete $w->{'Dragging'};
227227
$w->update;
228-
}
228+
}
229229

230230
sub AcceptDrop
231231
{
@@ -245,13 +245,13 @@ sub HandleLoose
245245
{
246246
my ($w,$seln) = @_;
247247
return '';
248-
}
248+
}
249249

250250
sub InstallHandlers
251251
{
252252
my ($token,$seln) = @_;
253-
my $w = $token->parent;
254-
$token->configure(-selection => $seln) if $seln;
253+
my $w = $token->parent;
254+
$token->configure('-selection' => $seln) if $seln;
255255
$seln = $token->cget('-selection');
256256
if ($token->{InstallHandlers})
257257
{
@@ -307,7 +307,7 @@ sub StartDrag
307307
{
308308
my $dx = $was->[0] - $X;
309309
my $dy = $was->[1] - $Y;
310-
if (sqrt($dx*$dx+$dy*$dy) > $token->cget('-delta'))
310+
if (sqrt($dx*$dx+$dy*$dy) > $token->cget('-delta'))
311311
{
312312
unless ($token->Callback('-startcommand',$token,$e))
313313
{

Entry/Entry.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ package Tk::Entry;
1212
# This program is free software; you can redistribute it and/or
1313

1414
use vars qw($VERSION);
15-
$VERSION = '3.032'; # $Id: //depot/Tk8/Entry/Entry.pm#32 $
15+
$VERSION = '3.033'; # $Id: //depot/Tk8/Entry/Entry.pm#33 $
1616

1717
# modify it under the same terms as Perl itself, subject
1818
# to additional disclaimer in license.terms due to partial
@@ -281,7 +281,9 @@ sub MouseSelect
281281
my $x = shift;
282282
$Tk::selectMode = shift if (@_);
283283
my $cur = $w->index('@' . $x);
284+
return unless defined $cur;
284285
my $anchor = $w->index('anchor');
286+
return unless defined $anchor;
285287
if (($cur != $anchor) || (abs($Tk::pressX - $x) >= 3))
286288
{
287289
$Tk::mouseMoved = 1

Event/Event.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package Tk::Event;
22
use vars qw($VERSION $XS_VERSION @EXPORT_OK);
33
END { CleanupGlue() }
4-
$VERSION = '3.021'; # $Id: //depot/Tk8/Event/Event.pm#21 $
5-
$XS_VERSION = '800.020';
4+
$VERSION = '3.022'; # $Id: //depot/Tk8/Event/Event.pm#22 $
5+
$XS_VERSION = '800.021';
66
require DynaLoader;
77
use base qw(Exporter DynaLoader);
88
@EXPORT_OK = qw($XS_VERSION DONT_WAIT WINDOW_EVENTS FILE_EVENTS

0 commit comments

Comments
 (0)