Hi,
as promised on the perl-gtk mailinglist here is a piece of code that worked for me. If you still have problems you could sent me your full programm ...
### update messages in news ticker sub update_msg { # anti-flicker; msg is a CList... $msg->freeze(); $msg->clear(); my @Loglines = read_log_file(); # setting up the list foreach my $l (@Loglines) { my ($date,$level,$subs,$prg,$code,$text) = split /\s/,$l,6; $date = format_time($date); $text =~ s/\n.*/ [more\.\.\.]/s; $msg->append($text,$prg,$date,$level,$code); } # release $msg->thaw(); }

Another thing that strikes me is that you use

my $recipe_clist = show_recipe_list();
obviously to create the CList and then later use it again:
$recipe_clist = show_recipe_list() || die "..."
which may well lead to confusion if you're not very tricky in show_recipe_list() itself. Sorry if I'm talking like a confused apeman this morning: it's monday and my english circuits are not under full steam yet...

Good Luck!

Regards... Stefan


In reply to Re: refreshing a GTK widget by stefan k
in thread refreshing a GTK widget by melguin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.