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

Re: gtk_text_insert problem



On Mon, 30 Aug 1999, Jiang XU wrote:

> I guess you should try this:
>   gtk_text_insert(GTK_TEXT(widget),
>                             NULL,
>                             NULL,
>                             NULL,
>                             HELP_TEXT,
>                             strlen(HELP_TEXT));
> 
> The last parameter of the function must be the length of the string.
> 
> Jiang
> 
> >
> >   /* does not work and don't know why */
> >   gtk_text_insert(GTK_TEXT(widget),
> >                             NULL,
> >                             NULL,
> >                             NULL,
> >                             HELP_TEXT,
> >                             -1);
> >

It doesn't work either. I read in the tutorial that "-1" means "the whole
string".

Thanks very much anyway Jiang, and let me know any additional idea.

Jorge.



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