Using following code combo box should fill
with values 0,1,2,3 rather it is filling with values is
3,3,3,3(last number)
What could be the problem? please help me in this
regard.
combo = lookup_widget(GTK_WIDGET(button),
"combo1");
GList *list=NULL; char s[0]; int j; for (j=0;j<=3;j++)
{ sprintf(s,"%d",j); list=g_list_append(list,(void *)s); } gtk_combo_set_popdown_strings
(GTK_COMBO (combo),list);
g_list_free(list); Regards
Umesh
|