Re: Connecting GTK application to a database

2010-02-24 Thread Mats Rauhala
Database engines have their own API for connecting. Check the following links. I recommend you start looking at the SQLite library, as in my experience it has the most simplistic tutorial, which can help you get up to speed with sql apis and concepts. Naturally there are differences with different

Re: g_test_trap_fork() fails on g_return_...

2010-02-24 Thread Nicola Fontana
Il giorno Mon, 8 Feb 2010 23:17:52 +0100 Nicola Fontana n...@entidi.it ha scritto: #include glib.h #include stdlib.h static void dummy(void) { g_return_if_reached(); } static void test_trap_fork(void) { if (g_test_trap_fork(0, G_TEST_TRAP_SILENCE_STDERR)) { dummy();

Re: Connecting GTK application to a database

2010-02-24 Thread Daniel Espinosa
Using GDA (www.gnome-db.org) based on GObject/GLib and its GTK+ objects, you can develop applications using a C API to access any supported database backend (postgresql, mysql and sqlite, are some of them). Any application can run simple queries. Exist an application (on development) at