Re: [gtkmm] TreeModel::foreach_iter



Martin Schulze wrote:
Am 23.08.2004 16:52:39 schrieb(en) David Jensen:

Color_Config(FT_DIR, "#ff3f3f"); void Config_Update();

odd it worked at all?  deleting 'void' corrects the first row update!


I don't understand! What changes did you make your original code  working:

void
DirList::Config_Update()
{
    ls->foreach_iter(sigc::mem_fun(*this, &DirList::slot_update));
}

bool
DirList::slot_update(const Gtk::TreeModel::iterator& iter)
{
    (*iter)[ls->dlc.color] = Color[(*iter)[ls->dlc.type]];
    return TRUE;
}


Regards,

 Martin

.
no change, it was the call that was bugged, i pasted the return type where i called from. like:

for (i = 0, i < 4; i++)
	void Config_Update();

i don't think i've ever seen that snafu before.

clear?
David Jensen



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