Put text in a textwidget from main.c (using Glade)



Hi.

Im having trouble finding an answer on inserting text in an already
created Textwidget from Main.c
Using Glade.

I have no trouble putting text in the textbox from callbacks.c, but i
want it done when the application starts

i also want to know how to put some text in an entrywidget in the same
manner.

This the code that gets the text wich i want to set in the textbox

FILE *file = fopen("MasqFire-Table", "r");
char buffer[1024];
if (!file] return -1;
while (fgets(buffer,  1024, file)!=NULL)

//printf(  buffer );

fclose ( file );


An example would be nice :)

// Magnus-swe





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