Combo append



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) ;

Thanks
-- 
   _               
 _ | |__ _ _ _  ___ 
| || / _` | ' \/ _ \ Analista de Sistemas
 \__/\__,_|_||_\___/ BHQuality & Productive Services



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