Hi Slaven,
thank you for continuing the great work of Nick...
I applied the patch and Tk now seems to work very
well with my perl-5.8.8 on Linux and Solaris 8.
However, on Solaris 8 (Sparc), I cannot get it
to work OK with XFT - the test dump core,
obviously because some font pointer remains at 0x0,
and this pointer is used :-/
I tried one quick fix in pTk/tkUnixXft.c, around
line 189:
freePattern:
if(charset)
FcCharSetDestroy (charset);
FcPatternDestroy (pattern);
return NULL;
...because charset may be NULL on the goto freePattern;
above. But that just triggers another problem:
tkFont.c:1136: fontPtr->resourceRefCount = 1;
and fontPtr is NULL again...
Do you have any clue what the problem might be? Anything
I can debug further?
Thanks & best regards,
Marek
-----Original Message-----
From: ptk-bounces@xxxxxxxxxxxxxxxxxx
[mailto:ptk-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Slaven Rezic
Sent: Monday, November 20, 2006 9:25 PM
To: ptk@xxxxxxxxxxxxxxxxxx
Subject: ANNOUNCE: Tk-804.027-p3.patch.gz
A compilation of patches to Tk 804.027 may be downloaded from my CPAN
directory
SREZIC/patches/Tk-804.027-p3.patch.gz
(e.g. from
http://www.cpan.org/modules/by-authors/id/SREZIC/patches/Tk-804.027-p3.p
atch.gz
)
Here's a list of changes so far:
----------------------------------------------------------------------
Compiles and passes tests on
FreeBSD 6.1 + perl5.8.8 + xorg 6.9.x + various window managers (fvwm2,
twm, metacity ...)
Linux RedHat 8.0 + perl5.8.0 (one test failure in leak.t)
Linux RedHat 8.0 + perl5.8.7
MSWin32 + Strawberry Perl (5.8.8)
There are some test failures with bleedperl, most of them
Tie::Watch-related, which will be fixed in a next version of the
patch.
Incompatible changes
Return values of some Tk::Wm methods (e.g. aspect, wmGrid,
iconposition, resizable ...) were changed from returning tclish
lists (e.g. "1 2 3 4") to perlish lists (1,2,3,4). I believe the
return values of these methods are rarely used.
Tk::Wm::wmTracing needs argument for setting on/off, without
argument just return the current value.
New features
The newest tkUnixWm.c from Tcl/Tk is now in the Perl/Tk code. This
adds (experimental?) support for wm attributes -topmost, -zoomed,
-fullscreen and other _NET_WM features (iconphoto) under Unix/X11.
Tk::Wm::stackorder was missing in Perl/Tk.
widget demonstration has a Ctrl-Q key binding.
ptksh: x is an alias for d (like in the perl debugger).
ptksh: use bold font for prompt.
Tk::Text: pasting selection with middle mouse sets cursor position
now.
This is consistent with behaviour in other toolkits.
Tk::Widget: translated UnderlineAmpersand etc. functions.
Tk::MsgBox: again in Tk, completely new translation from the Tcl/Tk
original. Looks nicer and behaves better than messageBox through
Tk::DialogBox.
Fixes
Fixed crashes of Perl/Tk applications when Gtk/Gnome applications
were started. See http://rt.cpan.org/Ticket/Display.html?id=16053
ptksh is not slow anymore when popping up history.
ptksh: use fixed font for text area.
Tk::FBox may handle paths with high-bit set.
Image and bitmap filenames with high-bit set work now. See
http://groups.google.com/group/comp.lang.perl.tk/msg/865b56226af23f7c
Minor Tk::TextList fixes, but still most tests fail.
Fixed some menu problems, see
http://rt.cpan.org/Public/Bug/Display.html?id=15677,
http://rt.cpan.org/Ticket/Display.html?id=6166
Title of tearoff menus now set correctly.
ptked may be started without initial filename.
gedi works again.
Fixed some core dumps.
Tk::Listbox insert/delete does not leak memory anymore (well, not
that much). See
http://rt.cpan.org/Ticket/Display.html?id=12466
Building on RedHat systems works now, see
http://rt.cpan.org/Ticket/Display.html?id=6708
Tk::NoteBook fix for pages method, see
http://rt.cpan.org/Ticket/Display.html?id=8567
Tk::Canvas fix for -state => hidden issue, see
http://rt.cpan.org/Ticket/Display.html?id=4677
Documentation
Tk::Widget::Walk is now documented.
Corrected installation path for Tk::Menu::Item.
Fixed invalid Pod syntax.
Tests
Converted some tests from Test to Test::More
Enable unicode tests where possible.
Make all tests working with XFT=1.
New tests, converted from the Tcl counterparts: canvas.t, wm-tcl.t,
text.t (latter not completed yet)
00wmcheck.t: show user's window manager before starting tests.
(Almost) no test should request user positioning windows (for old
window managers like twm).
Some wm-dependent tests were marked as TODO tests.
----------------------------------------------------------------------
Regards,
Slaven
--
Slaven Rezic - slaven <at> rezic <dot> de
tktimex - time recording tool
http://sourceforge.net/projects/ptktools/
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
ptk@xxxxxxxxxxxxxxxxxx
https://mailman.stanford.edu/mailman/listinfo/ptk
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
ptk@xxxxxxxxxxxxxxxxxx
https://mailman.stanford.edu/mailman/listinfo/ptk
|