Re: [gnome-db] about gnome-db-grid (probably silly)

On Tue, 08 Mar 2005 21:00:28 +0100, Jacopo Urbani <apo linux it> wrote:
> hi all, that's time that i do not use libgda and i have some problem
> with the new library's version. Using the old version of the libgnomedb
> i could use a method gnome_db_grid_set_model(..) in my little programs.
> So now i've just installed the new version, downloaded with cvs, but i
> cannot find that method. I think that it's very strange that is removed
> (that's very usefull), your ideas about that? Please forget me if it's a
> silly question. Thanks, bye.
> Some other informations...
> CVS string to download (maybe is the wrong branch?):
> cvs -z3 -d :pserver:anonymous anoncvs gnome org:/cvs/gnome co libgnomedb
> and my output:
> ...
> gcc -Wall -g -o bookcase support.o main.o interface.o callbacks.o
> connect.o common.o conf.o -Wl,--export-dynamic -Wl,--export-dynamic
> -L/usr/X11R6/lib -pthread
> -L/home/apo/Desktop/locale_libs/lib /home/apo/Desktop/locale_libs/lib/ /home/apo/Desktop/locale_libs/lib/ /home/apo/Desktop/locale_libs/lib/ /home/apo/Desktop/locale_libs/lib/ /home/apo/Desktop/locale_libs/lib/ /usr/lib/ -lSM -lICE /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ -lpthread -lz /usr/lib/ /usr/lib/ /usr/lib/ -lm /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ -ldl /usr/lib/ -Wl,--rpath -Wl,/home/apo/Desktop/locale_libs/lib -Wl,--rpath -Wl,/home/apo/Desktop/locale_libs/lib
> callbacks.o(.text+0x158): In function `on_button2_clicked':
> /home/apo/Desktop/biblio/src/callbacks.c:72: undefined reference to
> `gnome_db_grid_set_model'

The new GnomeDbGrid widget implements the GnomeDbDataWidget (also
implemented by the GnomeDbForm), so you can use the following method

gnome_db_data_widget_set_gda_model (GnomeDbDataWidget *iface,
                                             GnomeDbDict *dict,
                                             GdaDataModel *model);

where you can give NULL for the 'dict' argument if you don't already
have a GnomeDbDict object.

If it does not work, please fill a bug report using bugzilla
For more information you can browse the documentation in the
doc/C/html directory.



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