Re: [gtkmm] TreeModel::foreach_iter



Am 23.08.2004 16:52:39 schrieb(en) David Jensen:
David Jensen wrote:
i have:

so far; calling Config_Update() sets the GDK::Color 'ListStore' column to the value in the Color array[FileType column]. But it does set the first row, all others are updated correctly.

anyone see what i've done wrong?

never mind, the quick cut&paste to test it was;

	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



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