Adding a CellRendererCombo to a SimpleList



So far I have:

    Gtk2::Ex::Simple::List->add_column_type(
                            "combo",
                            type        => "Glib::Scalar",
                            renderer    => "Gtk2::CellRendererCombo",
                            attr        => "text"
                           );

But the 'attr' value is wrong. What's more, I don't think there *is* an
attribute I can just 'set' like this, is there? So I need to add a sub
here to walk through the values in the model, testing each one as I go,
and set the correct iter when I get to it. Or am I missing some simpler
approach?

Dan



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