Strange CList problem



Hello,

I've got a very strange problem with a CList:

In my application, I'm using a CList, which is filled with several
columns. There's also a "modify" button, which is coded the following
way:

 $list->signal_connect(
                        "select_row", sub {
                           my ( $clist, $row, $column, $mouse_event ) = @_;
                           return unless $mouse_event->{type} eq "2button_press";
                           &Edit_MP3_Tag($app,$mmusic,$row,$clist);
                         }
                        );

The subrouting Edit_MP3_Tag should change one or more columns of the
selected row. In that subroutine, the column is updated the following
way:

$list->freeze();
$list->set_text($row,1,$song_id);
...
$list->set_foreground( $row, $color);
$list->thaw();


Everything works perfect at first sight. In the Edit_MP3_Tag subroutine
I can change the contents of the list and the changes are all displayed.
Perfect.

But now, when I modify a row, which I modified before, I do get in
Edit_MP3_Tag all the *former* contents of that row. And those contents
are different from what was displayed....

Has anybody got a clue, what's going one here?

Ciao and thank you very much
  Christoph

P.S.: I'm using Gtk-Perl 0.7008 and Gtk 1.2.10
If anyone is interested in the sourcecode of my problem, feel free to
look at the subroutines &Edit_MP3_Tag and Import_Files on
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gmmusic/gmmusic/gmmusic/lib/mmusic/gmmusic/Attic/files.pm?rev=1.1.2.21&only_with_tag=devel_1_1&content-type=text/vnd.viewcvs-markup
-- 
Christoph Lorenz *** http://ChLorenz.home.pages.de/




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