Re: Simple procedure question



Sorry...still kinda new to this!

Right...I've got a file which sets up all the interface called interface.c.
I've got another file which controls all of the callback functions. I've got
a 3rd file which has a procedure called:

void sortlist(data_to_append)
{
}

A button event in the callback file calls the sortlist function. In the
sortlist function all I'm wanting to do is to append a string to the list.
I've already got my List set up in the interface.c file by:

    GtkWidget * list_file_listing;
    list_file_listing = gtk_list_new();


That's it. I'm wanting to simply add an item into this list from the
sortlist function.

Thanks
Uni


----- Original Message -----
From: "Tristan Van Berkom" <vantr touchtunes com>
To: "Uni" <unimatrix 001 ntlworld com>
Cc: "GTK App Development list" <gtk-app-devel-list gnome org>
Sent: Friday, February 14, 2003 8:10 PM
Subject: Re: Simple procedure question


you're making no sense.

what are you trying to do ?

have you read the API reference at gtk.org ?

do you actually need to know how to
access a list from a different .c file ?

I have a feeling that you left out some
kind of obvious aspect of your question.

Uni wrote:

Hi,

Thanks for your replies everybody...I'm sitll not getting this at all.
I'm using Anjuta and the List has already been created in a seperate
.c file when the program is built. The list is called list_file_list.
Although I don't know how to use this!...Sorry for being daft,
although I really don't have a good idea with this :)

Uni





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]