[gnome-db] How to use libgnomedb in a Gnome application



Hi,

I am still writing an application using libgda.
Now I would like to have it in a Gnome application.
The user interface is already written using Gnome.
I just need to put inside the application the widgets coming from
gnome-db.

I have problems here.
In fact, I do not see how to integrate all those *_init() and
*_main_run() inside an existing application (and application window)
created using Gnome.

F.ex.
The actual (Gnome) application uses:

 GnomeProgram *logbook;
 GtkWidget *application;

 logbook = gnome_program_init (....);
 application = gnome_app_new (....);

 /* menu, toolbar, statusbar and window content here */

 gtk_widget_show_all (application);
 gtk_main ();

So far, so good, the problem is that I want to integrate libgda and
libgnomedb :

Where and how do I insert :

 gda_init ();
 gda_main_run ((GdaInitFunc)do_stuff, ...);

 gnome_db_init ();
 gnome_db_main_run ((GdaInitFunc)do_something, ...);

What do I have to insert in the functions "do_stuff" and "do_something"
because everything normally comes in my Gnome application.

Furthermore there is "gnome_db_window_new()" ???

I know that my question is far from precise but I have a big
understanding (philosophy of the system) problem here.

Thanks in advance.

Phil




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