Changeset 4df918b


Ignore:
Timestamp:
Sep 3, 2009, 6:03:37 PM (12 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
0b2afba
Parents:
65a9870
Message:
Add BarnOwl::redisplay()
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl.pm

    r0b5168d r4df918b  
    1616                    new_command
    1717                    new_variable_int new_variable_bool new_variable_string
    18                     quote);
     18                    quote redisplay);
    1919our %EXPORT_TAGS = (all => \@EXPORT_OK);
    2020
     
    170170which accepts a C<BarnOwl::Message> object and returns a string that
    171171is the result of formatting the message for display.
     172
     173=head2 redisplay
     174
     175Redraw all of the messages on screen. This is useful if you've just
     176changed how a style renders messages.
    172177
    173178=cut
  • perlglue.xs

    rd1b1cf6 r4df918b  
    411411                owl_list_free_all(&l, owl_free);
    412412
     413void
     414redisplay()
     415        CODE:
     416        {
     417                owl_messagelist_invalidate_formats(owl_global_get_msglist(&g));
     418                owl_function_calculate_topmsg(OWL_DIRECTION_DOWNWARDS);
     419                owl_mainwin_redisplay(owl_global_get_mainwin(&g));
     420        }
     421
    413422MODULE = BarnOwl                PACKAGE = BarnOwl::Internal
    414423
Note: See TracChangeset for help on using the changeset viewer.