Hi,
i am just wondering if there is a way to halt a call back till  another one has 
finished using a function?

At present,. i am using a treeview to display a list_store of the contents of a 
directory.

at present i am running into probs when its a large directory, and if i click 
on its parent, it doesnt just
display the contents of the parent or child directory but the  large directory 
also,. if it hasnt completely been read.

        if((dinfo = readdir(dfp)) == NULL) break;
        if ((strcmp(dinfo->d_name,".")!=0) && (strcmp(dinfo->d_name,"..")!=0))  
{
                if (strcmp(ofile->directory,"/")!=0) {
                        
snprintf(filn,1023,"%s/%s",ofile->directory,dinfo->d_name);
                } else {
                        
snprintf(filn,1023,"%s%s",ofile->directory,dinfo->d_name);
                }
                .........
                gtk_list_store_append(ofile->list_store,&iter); 
                gtk_list_store_set(ofile->list_store, 
&iter,FILE_NAME,dinfo->d_name,PREMISSIONS,pro,FULL_PATH,filn,-1);         
                while (gtk_events_pending()) gtk_main_iteration(); 
        }

any ideas?

this is driving me nuts at the moment and its a bug i cant figure out...

regards
Dennis

        
        
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to