Without knowing what's in %dades, it's hard to say.. But here's a quick rundown on how to use set_row_data() and get_row_data().

These two functions are provided as a way to attach arbitrary data to a CList row.
Their basic use is:
$clist_obj->set_row_data ($row_number, $data_reference); $data_reference = $clist_obj->get_row_data ($row_number);

It's very important to note that the user data must be a reference. It can be any type of reference, hower.

If this little tidbit doesn't help you fix the error, just post a reply with more of the surrounding code.

On a somewhat side note, I realize parts of the Gtk+ and Gnome (and the Gdk, though this shouldn't be much needed) documents for the Perl bindings are rather unclear, or incomplete.... I'm currently (among other things) writing some extended docs. If you find any other parts that are unclear, or incomplete.. please let me know and I'll add that to my TO-DOC list ;)

In the meantime, if you know C, don't hesitate to look at the tutorial and API documentation at Gtk.org (and at developer.gnome.org for the Gnome::* modules).

Update: spelling fix: s/There/Their/

In reply to Re: Gtk-Perl $CList-get_row_data() problems by count0
in thread Gtk-Perl $CList-get_row_data() problems by Lasker

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.