SimpleList is designed to give you a list very simply. My standard line is that for somethng like this, your usage is no longer Simple, and you'll want to use TreeView and ListStore directly. To hook into the change of the checkbutton, you need to connect to the "toggled" signal of the CellRendererToggle for the appropiate column. This is something you do as part of setting up editable cells. If you look at the source of SimpleList, you'll see in the setup that the CellRendererToggle's "toggle" signal is set up to modify the model when toggled. You'll need to fetch the cellrenderers for the column and connect your own signal handler. ... Or just create the view for yourself and you'll have the CellRenderer. This isn't really a perl issue at all, it's just a gtk+ thing.

In reply to Re: Gtk2::SimpleList Checkboxes by Anonymous Monk
in thread Gtk2::SimpleList Checkboxes by gnubbs

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.