It is the vpd->view_create = hello_create; with hello_create being a function defined like this :
![]() | hello_create is defined as a "mstatic" function, this means that it will be static excepted when compiled with Miguel wishes. |
Let's have an example :
Most lines are typical GTK as described in GTK documentation. The interesting lines are : int *id = &(window->id);
record *r;
r = table_first(v->subtable->table, -1);
*id = ( r == NULL ? 0 : r->id );
This sets the record you're currently on to the first record of the table; or
to 0 if the table is empty.
Note that unlike the previous version of the API you don't have to play with lots of gtk_object_get_data in your plug-ins, making them cleaner.