Re: [gtkmm] Help for clist
- From: Ottavio Campana <ottavio campana vi it>
- To: Morten Brix Pedersen <morten wtf dk>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Help for clist
- Date: Wed, 18 Dec 2002 11:43:40 +0100
On Wed, Dec 18, 2002 at 11:31:27AM +0100, Morten Brix Pedersen wrote:
> 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?
easy: I'm working for an exam in my university and there we just have
got the old gtk library. Asking for having new library is only loosing
time.
> > 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");
already tried:
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../low -I../medium -g -O2
-I/usr/lib/gtkmm/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/lib/sigc++-1.0/include
-I/usr/include/sigc++-1.0 -DDEBUG -c window1.cc
window1.cc: In method `void window1::on_connetti1_activate()':
window1.cc:55: no matching function for call to
`Gtk::CList_Helpers::RowList::insert (int, const char[6])'
/usr/include/gtk--/clist.h:611: candidates are: class
Gtk::CList_Helpers::RowIterator
Gtk::CList_Helpers::RowList::insert(Gtk::CList_Helpers::RowIterator,
const Gtk::SArray_Helpers::SArray &)
/usr/include/gtk--/clist.h:612: class
Gtk::CList_Helpers::RowIterator
Gtk::CList_Helpers::RowList::insert(const Gtk::CList_Helpers::Row &,
const Gtk::SArray_Helpers::SArray &)
make: *** [window1.o] Error 1
bott dirac:~/Progetti/nanuccoli/src/trainer >
What could I be missing?
--
Non c'è più forza nella normalità, c'è solo monotonia.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]