Re: [gtkmm] Help for clist



Hi,

* Ottavio Campana <ottavio campana vi it> [2002-12-18 11:26:30]:
> I'm trying to develop an application  with gtkmm 1.2.8 (I cannot use the
> new gtkmm2).  I'm quite  expert programming  in C,  but I'm  having some
> troubles with the C++ bindings .

Why can't you use gtkmm2?

> I can't insert a row in a clist. I've tried 
> 
> GMM_CLIST1->rows()->insert(1, "Palla");

rows() doesn't return a pointer. It returns a reference to a RowList -
see http://www.gtkmm.org/docs/gtk/Gtk%3A%3ACList.html. Therefor you
should correct it to:

GMM_CLIST1->rows().insert(1, "Palla");


  - Morten.




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