ListStore problem
- From: Nietykalny <sciemniacz poczta fm>
- To: gtkmm-list gnome org
- Subject: ListStore problem
- Date: 09 Apr 2006 23:27:45 +0200
>I can't help you anymore with this problem. Try recompiling the whole
>project or check pCellRendererText if it is a null-pointer or something
>weird.
>Good luck,
>Simon
You were right Simon pointer was null, thats program crashed. I've looked to gtkkmm online book and rewrite code in another way:
pCellRendererText=new Gtk::CellRendererText();
pCellRendererText->property_editable()=true;
pCellRendererText->signal_edited().connect(sigc::mem_fun(*this,&GUI::click));
Gtk::TreeViewColumn *pColumn=new Gtk::TreeViewColumn("Nick", itsColumnModel.nick);
pColumn->set_renderer(*pCellRendererText, itsColumnModel.nick);
itsView.append_column(*pColumn);
The column is displayed as I want, signal works fine but cells in this column aren't editable. I tried to do this but it doesn't work.
----------------------------------------------------------------------
Poznaj Stefana! Zmien komunikator! >>> http://link.interia.pl/f1924
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]