On Wed, Jun 16, 2010 at 3:56 PM, Ian Liu Rodrigues <ian.liu88@xxxxxxxxx> wrote:
Attached there is an example of usageRegards,Ian L.
On Wed, Jun 16, 2010 at 10:32 AM, Manu Kaul <manu.kaul@xxxxxxxxx> wrote:
Hi Ian,I have already looked at that API but I am just wondering if I can see some sample code to see how it all hangs together and get a better idea?Cheers!--On Wed, Jun 16, 2010 at 2:29 PM, <ian.liu88@xxxxxxxxx> wrote:GNode has a 'data' attribute, which you can set to any structure you want.
Take a look at the GNode API and you will see every function you need to manipulate the tree:
http://library.gnome.org/devel/glib/stable/glib-N-ary-Trees.html
Em , Manu Kaul <manu.kaul@xxxxxxxxx> escreveu:
> Hi All,I am a newbie to this mailing list and I want to implement a n-ary tree and came across "GNode" in glib and wanted to see if there was some good sample code that I could look at to see how I can go about setting up this tree. Also I needed the ability to be able to work upwards from a node all the way to the root by just following the parent pointers. So I was unsure as to how I can do this using GNode. I also wanted to know how I can add additional pointers to the GNode node if I needed them?
>
>
>
> Cheers,
> CBro
>
>
>
>
The greater danger for most of us lies not in setting our aim too high and falling short; but in setting our aim too low, and achieving our mark.
- Michelangelo
--
The greater danger for most of us lies not in setting our aim too high and falling short; but in setting our aim too low, and achieving our mark.
- Michelangelo
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list