[Tickit-dev] Released: Tickit 0.51

Paul "LeoNerd" Evans leonerd at leonerd.org.uk
Mon Mar 30 14:33:52 BST 2015


Another relatively small release, continuing the theme of deprecation
warnings and removals to eventually support the "windows in C library"
milestone:

 * Die on Widgets that don't have WIDGET_PEN_FROM_STYLE

   This has created a warning for a while now. Removing this is related
   to the next removal,

 * Warn on Pen observers

   Pens only keep an observer list in order to support the idea that
   changing the attributes in a pen would immediately redraw the widget
   using it. This has been entirely replaced by the far more flexible
   Tickit::Style system, and there seems little need for pens to keep
   observers. Once Widgets are no longer using them, they'll be removed
   from both the Perl and the C level APIs.

 * Allow #-style comments in style files

   An easy grammar change, helpful along with the next change,

 * Added Tickit::Style->load_style_from_DATA shortcut

   This handy method uses the caller's *DATA filehandle; the usual
   upshot being that self-contained programs that want to supply widget
   style inline can now do so with the style in the __DATA__ section,
   and simply start the code with a call to this method, to load it
   directly. This seems mildly neater than a HEREDOC.

 * Optional configuration to avoid ALTSCREEN

   Sometimes users want to not use ALTSCREEN, so that the onscreen
   contents are still visible after the application terminates.

 * Bugfix to call SvGETMAGIC() before looking at SvCUR()

   Prior to this fix the Tickit::RenderBuffer->text* methods didn't
   cope with magical strings, such as the likely scenario of passing
   the LVALUE-magical result of substr():

     $rb->text( substr $message, 0, $length );

  This resulted in missing strings in output, and has now been fixed.

Additionally, the Tickit 0.51 distribution is now the last CPAN
distribution that will contain Tickit::Widget, and its various
subclasses and helpers. That entire set has now been moved to the
Tickit-Widgets dist; as previously mentioned.

The upshot here is that once the C library can support windows, the
entire Tickit distribution will effectively be lightweight XS wrappers
around the C library; at which we can declare the "version 0.1"
milestone for it.

-- 
Paul "LeoNerd" Evans

leonerd at leonerd.org.uk
http://www.leonerd.org.uk/  |  https://metacpan.org/author/PEVANS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <http://mail.leonerd.org.uk/pipermail/tickit-dev/attachments/20150330/4ab9e9b9/attachment.sig>


More information about the Tickit-dev mailing list