Developing Bond Programs

Bond still needs certain things like coded like callbacks for buttons. And you may find specific widgets in your forms will need special attention because they do something a bit out of the ordinary.

Its a bad idea to use the code generation in glade. Bond was designed to build applications at run time, not compile time. Code generated by glade will not work with bond without great modification. If you need a quick approach its a lot easier to take an already existing bond application and copy makefiles etc than trying to create from the output generated by glade.

You need to call a bond_init(argc,argv); at the start of your to initalise GTK, bond and bonddb. Then call bond_main(); to enter into the main loop. Create the functions for the signals you created in GTK. In these functions make the nesserary calls to the the api functions you wish to use. Please check out the api.c documentation for these callbacks details.

In your Makefile you need to include the bond source directory and link against the right libraries. Applications like libglade-config --cflags and libglade-config --libs will also need to be specified in the makefiles.
-lbond -lbonddb -lpq
For includes, make sure you specify that you specify to right include directories.(its a I as in includes).
-I/usr/local/include/bond