>void asignacombo(char *nombarch)
>       {
>       fd=fopen(nombarch,"r");
>       if (fd==NULL)
>               {
>               exit(1);
>               }
>       else
>               {
>               while(!feof(fd))
>                       {
>                       fread(&n1,sizeof(struct nom),1,fd);
>                       if (strcmp(acum,n1.nombre)!=0)
>                               {
>                               strcpy(acum,n1.nombre);
>                               glist = g_list_append (glist, (g_strdup(acum)))
>;
>                               gtk_combo_set_popdown_strings (GTK_COMBO (combo
>1), glist);

you're resetting the combo box popdown strings for every line in the
file. it may have nothing to do with your problem, but it would be
much more efficient to do:

     while (!feof (fd)) {
         fread (...); // check for errors!
         if (strcmp (...)) {
             strcpy (...); // its not clear that this is necessary
             glist = glist_append (glist, g_strdup (...));
         }
     }
     gtk_combo_box_set_popdown_strings (...)
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to