in reply to refreshing a GTK widget
### 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
obviously to create the CList and then later use it again:my $recipe_clist = show_recipe_list();
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...$recipe_clist = show_recipe_list() || die "..."
Good Luck!
| Regards... | Stefan |
|
|---|