Re: GtkLabel trouble.



Hi,

Jered Bolton <j bolton elec gla ac uk> writes:

> Why is it that if I use gtk_label_get, I get a seg fault if I then try
> and use gtk_label_set_text ?
> 
> e.g. I want to get the text of a label and use the text to determine
> whether I need to change the text of the same label:
> 
>         gtk_label_get(GTK_LABEL(label_pointer), pText);
> 
>         if ( pText contains something or other)
>                   gtk_label_set_text(GTK_LABEL(label_pointer),
> "something else...");

you don't do anything weird to the pText you get from the label
like modifying or freeing it, do you?


Salut, Sven




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