![]() | ![]() | ![]() | GNOME-DB API reference | ![]() |
---|
void gnome_db_init (constgchar *app_id, constgchar *version, int nargs, char *args[]); void gnome_db_main (GtkFunction ui_create_func); #define gnome_db_main_quit ()
void gnome_db_init (constgchar *app_id, constgchar *version, int nargs, char *args[]);
Initialize the GNOME-DB environment for client UI applications. This includes everything your application needs about GTK/GNOME/Bonobo, so you must avoid calling any of gtk_init, gnome_init*, or bonobo_init when using this function.
app_id : | application name |
version : | application version |
nargs : | number of arguments |
args : | arguments |
void gnome_db_main (GtkFunction ui_create_func);
This function runs the GNOME-DB application making the call, thus entering in the event loop needed for GNOME-DB applications to interact with users. You can pass a pointer to a function to be called for creating the initial UI of your application. That function should have the form:
guint ui_create_func (void)
it should return 0 if all went ok, and any other value if there was any error. This is very important: if you return a non-zero value, the function will be called repeatedly until you do so.
ui_create_func : | function to be called for creating the initial GUI |
<<< libgnomedb basic API | gnome-db-config >>> |