Re: Combo append



On Thu, 13 Dec 2001, Jano Crema wrote:

> The object receive test1 e test2 
> 
>    glist = g_list_append(glist, "test1");
>    glist = g_list_append(glist, "test2");
>    gtk_combo_set_popdown_strings( GTK_COMBO(combo), glist) ;
> 
> 
> Why this not works, only appear test2 (two times)
> 
>    sprintf(empresa, "test1");
>    glist = g_list_append(glist, empresa);
> 
>    sprintf(empresa, "test2");
>    glist = g_list_append(glist, empresa);
> 
>    gtk_combo_set_popdown_strings( GTK_COMBO(combo), glist) ;

	Maybe some compiler optimizations? Tried to depth copy the strings
(strdup)?


Ciao,
Mathias
-- 
WWW:           http://www.informatik.hu-berlin.de/~hasselma/
PGP/GnuPG:     1024-Bit DSA: ID 55E572F3, 1024-Bit RSA: ID EAAF7CF1




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