Xmms::Remote



Hi all,

I have some strange effect in Xmms:Remote / Gtk-Perl.

I want to keep track of songchanges, so an entry box gets
updated.

I did it with a Gtk->timeout_add(100 ,\&monitor);

sub monitor {
$test = $remote->get_playlist_title;
$entry->set_text("$test");
}


One would expect that this works, but it doesn't.
So I added a print"" to the subroutine:

sub monitor {
$test = $remote->get_playlist_title;
$entry->set_text("$test");
print "";
}

and all works fine.

Can someone try to explain me what is going on,
or have an idea on how to do this somewhat more
fancy (Xmms::SongChange?).

Thanks.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]