Re: [gtkmm] progress bar headache



On Thu, 06 May 2004 08:57:25 +0200
Alberto Paro <alberto paro homeunix org> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> junk siology net wrote:
> 
> |
> | lo, ive got this code.....
> |
> | ive got a timeout event which makes a progress bar pulse() no
> | problem at all, the idea is that let_progress_go (boolean) if true
> | will allow the pulse command to happen, if not it will skip it (i
> | used an if statement for that) -- still no trouble.
> |
> | the problem is that the progress bar isnt started during this block
> | of code, (when i set let_progress_g to true). and even if i put the
> | pulse() call directly in the loop at point A it dosnt work.
> |
> | the code it meant to call a system process, and fill a text buffer
> | with the output. The other problem is that i'd like it to update
> | the display as the output arrives not just at the end, but even if
> | (again at point A) i put the set_text(s) call, it dosnt get
> | updated.
> |
> | any ideas ?
> |
> |
> | _______________________________________________ gtkmm-list mailing
> | list gtkmm-list gnome org
> | http://mail.gnome.org/mailman/listinfo/gtkmm-list
> |
> Popen locks the interface.
> You have to thread the md5 operation. Look at some past message thread
> to thread and interface update.
> 

hmm ok, ive never dealt with threads before :-) do you know of a little example of gtkmm and threading ?




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