Re: gobjects, glists and arrays beginners question

2005-05-26 Thread Pavel Syomin
Hi! I think, that better way is (this is example only) : typedef struct _Machine Machine; struct _Machine { gint machine_number; gchar *machine_name; gchar *model; gchar *operator; /* ... */ }; Machine *machine_new(gint machine_number, const gchar

Re: gobjects, glists and arrays beginners question

2005-05-26 Thread Mathias Andre
Hi Kim, You can find a really complete GObjects tutorial at http://www.le-hacker.org/papers/gobject/ If you don't really know where to start have a look at the boilerplate gobject code in this tutorial. Good luck, Mathias ___ gtk-app-devel-list mailin

gobjects, glists and arrays beginners question

2005-05-26 Thread Kim Adil
I have written a fairly comprehensive industrial display program, and would like to rewrite version 2 in a better way. In version 1 I used arrays of structs to manage various portions of the data, for example: struct machine{ gint machineNumber; gchar machineName[30]; gchar model[30];