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



Thanks Rodrigo,

For the answer and for your patience ;-)
I know those questions are quite basic.
Ok, I got something working now.
For the version I need to upgrade ... 0.91.0

Phil

Le lun 05/01/2004 à 13:47, Rodrigo Moya a écrit :
> On Sun, 2004-01-04 at 17:37, Philippe CHARLIER wrote:
> > 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.
> > 
> the gnome_db_init/main functions are just wrappers around the normal
> GNOME app initialization, so you can use one or the other, no need to
> use both, although it doesn't harm at all.
> 
> > F.ex.
> > The actual (Gnome) application uses:
> > 
> >  GnomeProgram *logbook;
> >  GtkWidget *application;
> > 
> >  logbook = gnome_program_init (....);
> >
> this is the same as gnome_db_init
> 
> >  application = gnome_app_new (....);
> > 
> gnome_db_init does not do that
> 
> 
> >  /* 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, ...);
> > 
> no need to. You can either not use this at all, or use it, replacing
> your current gnome_program_init/gtk_main code. You just need to use the
> gnome_db_* functions.
> 
> > 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()" ???
> > 
> this is not anymore in the installed headers. What version are you
> using?
> 
> cheers





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