Re: gtk_statusbar_push!!



Le vendredi 12 mai 2006 �1:03 +0200, ferri_marllo gva es a �it :
> Hi everyone!!
> I need your help...
> I built a window with glade_gtk,including an statusbar,but the problem is that i
> want to write in the statusbar,different sentences telling me about the
> process...just after click one button of my window.
> Like this...
> first: "processing file...."
> (and after process it)
> "end of process"
> 
> The code i'm using is this:
> 
> gtk_statusbar_push(GTK_STATUSBAR(statusbar1),1,"Procesing...");
> 
> /********now,is my code about the process*****************/
> 
> gtk_statusbar_pop (GTK_STATUSBAR(statusbar1),1);                                
> 
> gtk_statusbar_push(GTK_STATUSBAR(statusbar1),1,"End..); 
> 
> /********************close the process******************/
> 
> The problem is that during the process,the statusbar is empty,and when it
> finished writes in the bar  "End...".

the status bar is updated from the main loop; during a lengthy process,
use:
while (gtk_events_pending ())
    gtk_main_iteration();



> I tried to put sleep(5000) to delay the process(i thought that maybe the process
> is so quikly)but neither happes)
> 
> Can you help me??
> Thanks a lot!!!  
> 
> 
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
> 




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